| 1 |
% $Id: section.w,v 1.6 1995/11/07 14:14:25 schrod Exp $ |
| 2 |
%---------------------------------------------------------------------- |
| 3 |
|
| 4 |
% tests section levels and references. |
| 5 |
|
| 6 |
\documentclass{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 |
@*1 1 title. |
| 37 |
|
| 38 |
Reset counter. |
| 39 |
|
| 40 |
@*2 2 title. |
| 41 |
|
| 42 |
Some text. |
| 43 |
|
| 44 |
@ \label{normal-sec} |
| 45 |
Doc. |
| 46 |
|
| 47 |
@d def foo |
| 48 |
@f def int |
| 49 |
|
| 50 |
@c |
| 51 |
for ( int i=1; i<10; i++ ) |
| 52 |
@< do something @> |
| 53 |
|
| 54 |
@ |
| 55 |
\end{document} |