xltabular and booktabs failing on "(" -- toprule, midrule, bottomrule only on first column
Herbert Voss
Herbert.Voss at fu-berlin.de
Tue Nov 12 18:23:03 CET 2019
Am 12.11.19 um 14:30 schrieb Alexander Krumeich:
> there are two bugs in the booktabs package, that might have been caused
> by the October update to booktabs.
>
> Consider the following example:
>
> \documentclass[a4paper]{article}
>
> \usepackage{xltabular}
> \usepackage{booktabs}
>
> \begin{document}
>
> \begin{tabular*}{\textwidth}{@{}ll@{}}
> \toprule
> Column 1 & Column 2 \\
> \midrule
> (None) & Other \\
> \bottomrule
> \end{tabular*}
>
> \end{document}
>
> The first bug:
> LuaLaTeX crashes with this error:
>
> ! Undefined control sequence.
> <argument> ...al \expandafter \let \cmrsideswitch
> \@tempa \fi \fi
> l.13 (None)
Loading package xltabular and using tabular* will not work. Use
environment xltabular instead or
\documentclass[a4paper]{article}
\usepackage{xltabular}
\usepackage{booktabs}
\begin{document}
\let\xltabular\undefined
\begin{tabular*}{\textwidth}{@{}ll@{}}\toprule
Column 1 & Column 2 \\\midrule\relax
(None) & Other \\\bottomrule
\end{tabular*}
\end{document}
Herbert
More information about the tex-live
mailing list