[texhax] tabu* and LuaTeX

Philipp Stephani p.stephani2 at googlemail.com
Tue Nov 15 01:42:26 CET 2011


2011/11/14 Arno Trautmann <Arno.Trautmann at gmx.de>:
> Hi all,
>
> I have troubles using the tabu* environment from the tabu package to typeset
> verbatim material using LuaLaTeX. The following example:
>
> \documentclass{minimal}
> \usepackage{tabu}
>
> \begin{document}
>
> \begin{tabu*}{Xl}
> \verb+\test+
>  & test \\
> \end{tabu*}
> \end{document}
>
> results in an error:
>
> ./test.tex:10: Extra }, or forgotten $.
> <recently read> \egroup
>
> l.10 \end{tabu*}

Here is a more minimal example:

\documentclass{minimal}
\begin{document}
\begingroup
\obeylines%
\endlinechar=10 %
\global\toks0{
}%
\endgroup%
$\scantokens\expandafter{\expandafter$\the\toks0$}$
\end{document}

Interestingly, it breaks for LuaLaTeX, but works for plain LuaTeX.



More information about the texhax mailing list