summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/cweb/src/test/parts-code.w
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/cweb/src/test/parts-code.w
Initial commit
Diffstat (limited to 'macros/latex/contrib/cweb/src/test/parts-code.w')
-rw-r--r--macros/latex/contrib/cweb/src/test/parts-code.w32
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}