summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/outline/outline.sty
blob: b7600ed1bc04f3049bb7b4d4ca8f7b03fce1c1f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
%% outline.sty
%% Copyright 1991 Peter Halvorson
%% Updates for LaTeX2e copyright 2002 Seth Flaxman
%% Updated for LPPL 1.3c or later by Clea F. Rees (for Seth Flaxman), 2008/10/06.
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
%   http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2005/12/01 or later.
%
% This work has the LPPL maintenance status `unmaintained'.
%
% This work consists of the files outline.sty and outline-sample.tex. 
%
% Save file as: outline.sty     Original Source: FILESERV@SHSU.BITNET  
% outline.sty by Peter Halvorson, Georgia Institute of Technology, 
%    Nuclear Engineering, (404) 894-8710   peter@fission.gatech.edu 
%                                          ne201ph@prism.gatech.edu
% As of January 10, 1991 
% Create six-level list environment {outline} for making outlines; mark
%  each outline topic with \item.  Use of label/ref sequences provided.
%  A direct hack of the enumerate code from latex.tex ( added more depth and
%  outline style numbering).  Use as you would use the enumerate environment.
%
% As of August 23, 2002
%  modified by Seth Flaxman (seth@abisoft.com) for use with LaTeX 2e

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{outline}[2002/08/23 Simple Outline Package]

\@definecounter{@outlndepth}
\newcount\@outlndepth \@outlndepth = 0

\@definecounter{outlni}
\@definecounter{outlnii}
\@definecounter{outlniii}
\@definecounter{outlniv}
\@definecounter{outlnv}
\@definecounter{outlnvi}

\def\outline{\ifnum \@outlndepth >5 \@toodeep\else
      \advance\@outlndepth \@ne
      \edef\@outlnctr{outln\romannumeral\the\@outlndepth}\list
      {\csname label\@outlnctr\endcsname}{\usecounter
	{\@outlnctr}\def\makelabel##1{\hss\llap{##1}}}\fi}

\let\endoutline =\endlist

\def\labeloutlni{\theoutlni.}
\def\theoutlni{\Roman{outlni}}

\def\labeloutlnii{\theoutlnii.}
\def\theoutlnii{\Alph{outlnii}}
\def\p@outlnii{\theoutlni}

\def\labeloutlniii{\theoutlniii.}
\def\theoutlniii{\arabic{outlniii}}
\def\p@outlniii{\p@outlnii\theoutlnii}

\def\labeloutlniv{\theoutlniv.}
\def\theoutlniv{\alph{outlniv}}
\def\p@outlniv{\p@outlniii\theoutlniii}

\def\labeloutlnv{(\theoutlnv)}
\def\theoutlnv{\arabic{outlnv}}
\def\p@outlnv{\p@outlniv\theoutlniv}

\def\labeloutlnvi{(\theoutlnvi)}
\def\theoutlnvi{\alph{outlnvi}}
\def\p@outlnvi{\p@outlnv\theoutlnv}