For the following simple latex file:
\documentclass{article}
\usepackage{array}
\begin{document}
\begin{tabular}{l p{6cm}}
[1] & abc \\
[2] & def
\end{tabular}
\end{document}
I cannot compile it successfully, and got the following error
! Illegal unit of measure (pt inserted).
<to be read again>
>
l.8 [2]
& def
?
! Illegal unit of measure (pt inserted).
<to be read again>
\advance
l.8 [2]
& def
?
Apparently, the item "[2]" somehow is interpreted as a length or
something. I can't figure it what is wrong with the table. Any idea?
Thanks a lot for your help.
wil.
Last lines are the culprit because latex reads as if it was:
[1] & abc \\[2]
which means newline +2units space and as the units are not there it
complains. Change to:
[1] & abc \\\relax
[2] & def
--
François Patte
Université Paris Descartes
On Oct 20, 2:36 am, François Patte