diff options
Diffstat (limited to 'Master/texmf-dist/source/eplain/base/test/contents.tex')
-rw-r--r-- | Master/texmf-dist/source/eplain/base/test/contents.tex | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/eplain/base/test/contents.tex b/Master/texmf-dist/source/eplain/base/test/contents.tex new file mode 100644 index 00000000000..6c3159da810 --- /dev/null +++ b/Master/texmf-dist/source/eplain/base/test/contents.tex @@ -0,0 +1,30 @@ +% This file is public domain. +% +\input eplain + +\newcount\subsectionno + +\def\tocsubsectionentry#1#2#3{\leftline{Subsection #2.~#1\dotfill#3}} +\let\tocentry = \tocsubsectionentry + +\readtocfile + +\subsectionno = 13 + +\writetocentry{chapter}{beginning} +\writetocentry{section}{subbeginning $\sin$} + +\advance\subsectionno by 1 +\writenumberedtocentry{subsection}{Subsection $\cos$ \#14} + {\the\subsectionno} + +\advance\subsectionno by 1 +\writenumberedtocentry{subsection}{Subsection \#15}{\the\subsectionno} + +% This doesn't expand \the\subsectionno -- only the first token gets +% expanded. Its output line starts with \tocentry. +\writenumberedtocentry{}{A toc entry}{1{\the\subsectionno}} + +%\loggingall + +\bye |