[tex-eplain] Contents hyperlinks
Philip Taylor
P.Taylor at Rhul.Ac.Uk
Tue Aug 2 19:37:22 CEST 2016
Rodolfo Medina wrote:
> Thanks. I used your macros in the following example it but the link doesn't seem to work... Why?
Not enough code !
> \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
>
** Phil.
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/tex-eplain/attachments/20160802/166918df/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 12104 bytes
Desc: not available
URL: <http://tug.org/pipermail/tex-eplain/attachments/20160802/166918df/attachment-0001.jpe>
More information about the tex-eplain
mailing list