As can be seen in my MWE below, I'm using tabularx to create a table with alternating colors. For different reasons, I defined three new column types L, C and R that shall automatically fill out the whole \textwidth and are left, center and right-aligned.

However, this MWE constantly fails and I can't figure out a way to get it to work and also don't know what to make of the error messages:

  • Misplaced \noalign. \end{tabularx}
  • Extra alignment tab has been changed to \cr. \end{tabularx}
\documentclass[11pt, oneside, a4paper]{article}
    \setmainfont[BoldFont=Calibri, ItalicFont=CalibriLightItalic]{Calibri Light}
% captions
\usepackage[font={color=red, small}, justification=justified, singlelinecheck=false, tableposition=top]{caption}
% colors
% tables

        \begin{tabularx}{\textwidth}{C C C}
            \textbf{Band No.} & \textbf{Spectral Range} & \textbf{Resolution} \\
            1 & 0.435 & 30 \\
            2 & 0.452 & 30 \\
    \caption{Sensor specifications Landsat 8}

I can get it to work using column definitions like this:

  • 2
    Not quite understood. Besides, you should add \arraybackslash to your definitions of L, C and R. Plus you really shouldn't be using the [H] specifier.
    – daleif
    Feb 18, 2021 at 13:52
  • Using \arraybackslash in the definition solves the whole issue! Whatever this is used for (I have no clue), it works. Great, thanks!
    – s6hebern
    Feb 18, 2021 at 13:58
  • See also: tex.stackexchange.com/a/12712/134144
    – leandriis
    Feb 18, 2021 at 14:11

1 Answer 1


\raggedright and friends redefines \\ so it no longer means new row, \arraybackslash restores the tabular definition of \\. Thus it is better t use


Technically, you only need the redefinition for the right most column, but it doesn't hurt adding it to all.

  • This solves so many issues I always had with tabularx at once, fantastic!
    – s6hebern
    Feb 18, 2021 at 14:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .