I'm trying to include newlines inside a tabular environment.
Following StefanK's answer to this problem here:
http://tex.stackexchange.com/questions/ ... table-cell
I tried the pbox package http://www.ctan.org/pkg/pbox.
But I get an 'Undefined control sequence' error.
MWE:
Code: Select all
Code, edit and compile here:
\documentclass[a4paper,10pt]{article}\usepackage{calc}\usepackage{ifthen}\usepackage{pbox}\begin{document}\pbox{2cm}{one two three}\end{document}
Code: Select all
$ latex spr.texThis is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)entering extended mode(./spr.texLaTeX2e <2009/09/24>Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, nohyphenation, ukenglish, loaded.(/usr/share/texmf-texlive/tex/latex/base/article.clsDocument Class: article 2007/10/19 v1.4h Standard LaTeX document class(/usr/share/texmf-texlive/tex/latex/base/size10.clo))(/usr/share/texmf-texlive/tex/latex/tools/calc.sty)(/usr/share/texmf-texlive/tex/latex/base/ifthen.sty)(/usr/share/texmf-texlive/tex/latex/pbox/pbox.sty) (./spr.aux)! Undefined control sequence.\pb@xiii ...1]{\pb@xlen }{#2}\ifthenelse {\equal{\pb@xargi }{}} {\parbox {...l.12 \pbox{2cm}{one two three}?Underfull \hbox (badness 10000) in paragraph at lines 12--12[]\OT1/cmr/m/n/10 one twoUnderfull \hbox (badness 10000) in paragraph at lines 12--12[]\OT1/cmr/m/n/10 one two[1] (./spr.aux) )Output written on spr.dvi (1 page, 292 bytes).Transcript written on spr.log.$
Interestingly, the output file has TWO boxes side-by-side containing "one two three".
If the content of the pbox is shorter than the max width (2cm)
eg
Code: Select all
\pbox{2cm}{one two}
According to the documentation (http://mirror.ctan.org/macros/latex/con ... x/pbox.pdf), pbox requires the calc and ifthen packages, which I have included. But, commenting them out gives the same error and the same results!