TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have the following problem: I would like to use the m column type in a longtable. But if I typeset

\documentclass{minimal}
\usepackage{longtable}
\begin{document}
    \begin{longtable}{p{5cm}m{5cm}}
        skdlbf & asljkdh\\
    \end{longtable}
\end{document}

I get an error about an Illegal character in array arg in the line of \begin{longtable}{..}. If I change the m to a p, all runs well.

So why does longtable not support the m (and b) column type? Am I missing a package?

share|improve this question
up vote 7 down vote accepted
\usepackage{array}

That's the solution.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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