diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-11 23:03:17 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-11 23:03:17 +0000 |
commit | ecf966f305f6aeff2bbdf42c82d8425921aa9eda (patch) | |
tree | db606a57e3619610e4c35cae849d41cf4e0937d5 /Master/texmf-dist/source/eplain/base/test/contents.tex | |
parent | ac3c55a3216b5988f0e48ba9414ddb059f19a699 (diff) |
source 1
git-svn-id: svn://tug.org/texlive/trunk@105 c570f23f-e606-0410-a88d-b1316a301751
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 |