Debian Codegraph @

texmf-dist/doc/latex/cweb-latex/src/test/flat.w

raw
1 % $Id: flat.w,v 1.1 1995/08/25 19:12:40 schrod Exp $
2 %----------------------------------------------------------------------
3
4 % tests section levels and references for flat structure documents.
5
6 \documentclass[structure=flat]{cweb}
7
8 \begin{document}
9
10 \tableofcontents
11
12 \newpage
13
14 @** s title.
15 \label{main-sec}
16
17 Some text.
18
19 @* e title.
20
21 Some text.
22 And some references: Part~\ref{main-sec} and section~\ref{normal-sec}.
23
24 @*0 0 title.
25
26 Some text.
27
28 @*1 1 title.
29
30 Some text.
31
32 @*2 2 title.
33
34 Some text.
35
36 @ \label{normal-sec}
37 Doc.
38
39 @d def foo
40 @f def int
41
42 @c
43 for ( int i=1; i<10; i++ )
44 @< do something @>
45
46 @
47 \end{document}