[tex-eplain] Contents hyperlinks
Philip Taylor
P.Taylor at Rhul.Ac.Uk
Tue Aug 2 20:46:43 CEST 2016
\input eplain
\enablehyperlinks
\def \tocentry #1#2{\noindent #1\dotfill $\mkern 2 mu$#2\endgraf}
\def \addtocentry #1{\immediate \write \toc {\string \tocentry \space {#1}
{\string \hlidxpage {}{\the \pageno}}}}
\newread \toc
\immediate \openin \toc = \jobname.toc
\ifeof \toc \closein \toc \else \closein \toc \input \jobname.toc \fi
\newwrite\toc
\immediate \openout \toc = \jobname.toc
\addtocentry {Section 1}
Hallo.
\immediate \closeout \toc
\end
More information about the tex-eplain
mailing list