How to fix the error

Package array Error: Illegal pream-token (\ecolumn): `c' used. \end{tabularx}

when using the column specifier O for the following?







            OY{1} Y{1} Y{1} Y{1}}
        Question & Marks   & Score & \makecell[c]{Instructor\\ Signature}  \\
        1\textsuperscript{st} & 30 & & \\
        2\textsuperscript{nd} & 30 & & \\
        3\textsuperscript{rd} & 30 & & \\
        Total & 90 & &\\


  • 3
    Did you try with O{Y{1}} ? – leandriis Jan 14 at 22:48
  • @leandriis No, I haven't before your comment :). You post it as an answer for the future readers. – Diaa Jan 14 at 22:50

The cellspace documentation states

To improve the spacing of your tables, you must change the table preamble and prepend S to the column types l, c, r. Thesame holds for the paragraph columns p, m, and b, except that they must be surrounded by an extra pair of braces.

Since your ney column type Y is an altered version of tabularx's X type columns, which in turn is derived from the p column type, You will also have so surround your Y column with an extra set of braces as follows:

            O{Y{1}} Y{1} Y{1} Y{1}}
|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.