0

The following example gives:

! Package array Error: Illegal pream-token (\AtEndOfPackage): `c' used.

What is wrong?

\documentclass{article}
\usepackage{tabularx}
\newenvironment{mytab}{
  \begin{tabularx}{5cm}{l}
  }{
  \end{tabularx}
}

\begin{document}
\begin{mytab}
  foo \\
  bar
\end{mytab}
\end{document}
ShreevatsaR
  • 45,428
  • 10
  • 117
  • 149
feklee
  • 905

0 Answers0