summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/outliner/outline_test.tex
blob: a47159e587f631cd0ae6daa09bc3242f7e523cd3 (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
% A test file for Victor Eijkhout's "outliner.sty".
\documentclass{article}
\usepackage{outliner}

% Page breaks wanted for levels 0 and 1:
\OutlinePageBreaks{1}
% level 0
\OutlineLevelStart0{\section*{#1}}
% level 1
\OutlineLevelStart1{\subsection*{#1}}
% level 2
\OutlineLevelStart2{\begin{itemize}\item#1.}
\OutlineLevelCont2{\item#1.}
\OutlineLevelEnd2{\end{itemize}}
% level 3
\OutlineLevelStart3{\par\noindent{\sl#1:}}

\begin{document}
\title{Test file for Victor's outline macros}
\author{Victor Eijkhout, {\tt victor@eijkhout.net}}
\maketitle

\begin{Outline}
\Level 0 {Outline test}
\Level 1 {First section}
This is just an example, remember?
\Level 2 {A point}
But it should be sufficient.
\Level 2 {Another point}
Even if you just want to copy from this file.
\Level 3 {something} is useful, \Level 3 {another thing} is not.
\Level 1 {Another section, another page}
\Level 2 {This one has this} \Level 2{And that.}

%%% for include files:
\SetBaseLevel{1}
\Level 0 {This could be an included chapter}
by another author.
\Level 1 {This point is level 1 by the author, 2 by inclusion}
Yadah yadah yadah.
\Level 1 {Another level 1 point made level 2}
Note that this time there is no page break.
\Level 0 {Another chapter, by another author}
More text.
% return to the main show:
\SetBaseLevel 0
%%%

\Level 0 {Conclusions}
So, do you like it?
\end{Outline}

\end{document}