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