xltabular and booktabs failing on "(" -- toprule, midrule, bottomrule only on first column

Axel E. Retif axel.retif at gmail.com
Thu Nov 14 11:11:32 CET 2019


On 11/14/19 3:52 AM, Alexander Krumeich wrote:

> Sorry, I meant to use xltabular, not tabularx. It's the same result, though:
> 
> \documentclass[a4paper]{article}
> 
> \usepackage{xltabular}
> \usepackage{booktabs}
> 
> \begin{document}
> 
> \begin{xltabular}{\textwidth}{@{}ll@{}}
>    \toprule
>    Column 1 & Column 2 \\
>    \midrule
>   (None) & Other \\
        ^
        |

I think it's because booktabs uses parentheses for the trimming option:

    The trimming commands, if used at all, go in parentheses (like this)...
    [booktabs Manual, p. 3]

Look how Herbert Voss added \relax in his code example:

    \midrule\relax


Best

Axel


More information about the tex-live mailing list