I have the following longtabu which does not compile and give an error. This example is shorter than my original, but my table just continues with more columns.

\RequirePackage[authoryear]{natbib}% uncomment this for author-year bibliography
\usepackage[utf8]{inputenc} %unicode support
labelsep = space,
justification = raggedright,
font = {footnotesize,singlespacing,sf},
labelfont = {footnotesize,bf,singlespacing,sf},
\usepackage[markup=nocolor,final]{changes} Annehmen der Änderungen
  \begin{longtabu} to \textwidth{XXXX}
  \caption{Questions of online questionnaire}\\
\multicolumn{1}{X}{Question Nr} & \multicolumn{1}{p{5cm}}{Questions} &          \multicolumn{1}{X}{Answer choices (simplified)} & \multicolumn{1}{X}{Conditions}\\
1     & \multicolumn{1}{p{5cm}}{Is your practice part of practice network consisting of practices at different places?} & Yes/No (Y/N) & Madatory for all \\
2     & \multicolumn{1}{p{5cm}}{How many doctors do work in your practice?} & Number & Madatory for all \\

The error is the following:
Argument of \tabu@ has an extra}

Any help is appreciated! Thanks :)

  • \end longtabu should be replaced by \end{longtabu}. – leandriis Jun 15 '18 at 15:56
  • sorry, I had in my code \end{longtabu}. But it gives me the mentioned error. This was just a typing error in the question. – Renata Josi Jun 15 '18 at 15:59
  • Why do you use that many \multicolumn{1} commands? They seem unnecessary to me. Also using the X column type for all 4 columns is not needed. You could for example use {p{1.2cm}Xp{2.5cm}l} instead. – leandriis Jun 15 '18 at 16:00
  • @RenataJosi please don't post code that does not produce the error, no one can help you in that case: edit the example to be a complete small test file that makes the error. – David Carlisle Jun 15 '18 at 16:01
  • I'm sorry. The one above produces the error. Thank you! – Renata Josi Jun 15 '18 at 16:07

I'd suggest the following redesign of your table: Is it des not make much sense, to have four equally wide columns (especially not regarding the contents of the first and second column), I have used an l type column for the first column. Additionally, I have added the l option to all X columns in order to allow for a raggedright alignment in them. I have also added some multipliers (2) and (0.75). In order to make the second column wider. Lastly, I have added the \tabulinesep in order to adjust the spacing:


\begin{longtabu} to \textwidth {lX[2 l]X[l]X[0.75 l]}
\caption{Questions of online questionnaire}\\
Nr & Questions & Answer choices (simplified) & Conditions\\
1     & Is your practice part of practice network consisting of practices at different places? & Yes/No (Y/N) & Madatory for all \\
2     & How many doctors do work in your practice? & Number & Madatory for all \\

enter image description here

| improve this answer | |

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.