summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/cweb-latex/src/test/section.w
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/cweb-latex/src/test/section.w')
-rw-r--r--Master/texmf-dist/doc/latex/cweb-latex/src/test/section.w55
1 files changed, 55 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/cweb-latex/src/test/section.w b/Master/texmf-dist/doc/latex/cweb-latex/src/test/section.w
new file mode 100644
index 00000000000..13159e2fc6a
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cweb-latex/src/test/section.w
@@ -0,0 +1,55 @@
+% $Id: section.w,v 1.6 1995/11/07 14:14:25 schrod Exp $
+%----------------------------------------------------------------------
+
+% tests section levels and references.
+
+\documentclass{cweb}
+
+\begin{document}
+
+\tableofcontents
+
+\newpage
+
+@** s title.
+\label{main-sec}
+
+Some text.
+
+@* e title.
+
+Some text.
+And some references: Part~\ref{main-sec} and section~\ref{normal-sec}.
+
+@*0 0 title.
+
+Some text.
+
+@*1 1 title.
+
+Some text.
+
+@*2 2 title.
+
+Some text.
+
+@*1 1 title.
+
+Reset counter.
+
+@*2 2 title.
+
+Some text.
+
+@ \label{normal-sec}
+Doc.
+
+@d def foo
+@f def int
+
+@c
+for ( int i=1; i<10; i++ )
+ @< do something @>
+
+@
+\end{document}