| 1 |
% $Id: parts-code.w,v 1.1 1995/09/16 17:02:10 schrod Exp $ |
| 2 |
%------------------------------------------------------------ |
| 3 |
|
| 4 |
% test of `cwebparts' package: |
| 5 |
% code parts to be included in a LaTeX document |
| 6 |
% no sections |
| 7 |
|
| 8 |
\documentclass{cweb} |
| 9 |
|
| 10 |
\usepackage{rcs} |
| 11 |
|
| 12 |
\begin{document} |
| 13 |
|
| 14 |
\title{Believe it} |
| 15 |
\author{Coogar} |
| 16 |
|
| 17 |
\maketitle |
| 18 |
|
| 19 |
@ Some explanation of the code below. It's very hairy, isn't it? |
| 20 |
|
| 21 |
@( foo.h@>= |
| 22 |
@< some |code| @>@; |
| 23 |
@< more code @> |
| 24 |
|
| 25 |
@ @< some ...@>= |
| 26 |
for ( int i=1; i<10; i++ ) |
| 27 |
@< more... @> |
| 28 |
|
| 29 |
@ @< more... @>= |
| 30 |
|
| 31 |
@ |
| 32 |
\end{document} |