summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/cweb/src/test/parts-code.w
blob: ad24b1e2b291b4e16c26ff54c396db91c397101d (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
% $Id: parts-code.w,v 1.1 1995/09/16 17:02:10 schrod Exp $
%------------------------------------------------------------

% test of `cwebparts' package:
% code parts to be included in a LaTeX document
% no sections

\documentclass{cweb}

\usepackage{rcs}

\begin{document}

\title{Believe it}
\author{Coogar}

\maketitle

@ Some explanation of the code below. It's very hairy, isn't it?

@( foo.h@>=
@< some |code| @>@;
@< more code @>

@ @< some ...@>=
for ( int i=1; i<10; i++ )
    @< more... @>

@ @< more... @>=

@
\end{document}