diff options
Diffstat (limited to 'macros/latex/contrib/cweb/src/test/parts-code.w')
-rw-r--r-- | macros/latex/contrib/cweb/src/test/parts-code.w | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/macros/latex/contrib/cweb/src/test/parts-code.w b/macros/latex/contrib/cweb/src/test/parts-code.w new file mode 100644 index 0000000000..ad24b1e2b2 --- /dev/null +++ b/macros/latex/contrib/cweb/src/test/parts-code.w @@ -0,0 +1,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} |