[tex-eplain] enablehyperlinks clobbers toks
Adam Fenn
acwfenn at hotmail.com
Tue Jan 22 18:13:49 CET 2008
In an attempt to debug one of my macros I realised that the problem lay in the contents of
\toks0 and \toks2 goinig AWOL. The example below demonstrates the problem as it only works
if \enablehyperlinks is not used. Once it is enabled \toks0 and \toks2 go missing. Is this behaviour
expected? Moving \definexref to the beginning also solves the problem, as does using \newtoks,
but I'm curious as to what the problem actually is.
Thanks for your trouble,
Adam Fenn.
\def\mymacro#1#2#3#4#5#6#7#8#9{%
#1 #2 #3 #4 #5 #6 #7 #8 #9
\toks0={#1 #2 }%
\toks2={#3 #4 }%
\toks4={#5 #6 }%
\toks6={#7 #8 }%
\toks8={#9 }%
\toks1={#1 #2 }%
\toks3={#3 #4 }%
\toks5={#5 #6 }%
\toks7={#7 #8 }%
\toks9={#9 }%
\definexref{#1}{[marker]}{}%
\the\toks0
\the\toks2
\the\toks4
\the\toks6
\the\toks8
\the\toks1
\the\toks3
\the\toks5
\the\toks7
\the\toks9
}
\mymacro
{One}
{Two}
{Three}
{Four}
{Five}
{Six}
{Seven}
{Eight}
{Nine}
\bye
_________________________________________________________________
Telly addicts unite!
http://www.searchgamesbox.com/tvtown.shtml
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/tex-eplain/attachments/20080122/c3b0a721/attachment.html
More information about the tex-eplain
mailing list