1

After tabu package update X[-1] produces error when xcolor package is used:

\documentclass{article}

\usepackage{tabu}
\usepackage{xcolor}

\begin{document}

\begin{tabu} to \linewidth {X[-1]X[1]}
    cell 1 & cell 2 \\
    cell 3 & cell 4
\end{tabu}

\end{document}

error code:

Missing } inserted. \end{tabu}

X[-1] is usefull to produce fixed width tables with variable column width according to the content width. The code compiles without error when x[1] is used instead or when xcolor package is removed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.