[tex-k] implementation of \scantokens

Hendri Adriaens spotje at gmail.com
Wed Nov 30 15:14:29 CET 2005


Hi Heiko,

thanks for your idea. I copied an idea by Morten (he had trouble with
e-mail) below. But the main issue stays. I would expect \scantokens to
not cause this kind of trouble.

Best,
-Hendri.

\documentclass{article}
\begin{document}
\long\def\ReinsertTokens#1{%
  \begingroup\endlinechar=-1\everyeof{}%
  \scantokens{\def\next{\endgroup#1}}\next
}

\ReinsertTokens{\begin{verbatim}}
test
\end{verbatim}
\end{document}



More information about the tex-k mailing list