[OS X TeX] tabularx and textwidth

Cameron Hooper chooper at umich.edu
Wed Apr 27 18:32:54 CEST 2005


Hi

I'm trying to create a multicolumn table of width = \textwidth with one 
column allowing multirow text. I expected this should work:

\begin{tabularx}{\textwidth}{lX}
Stuff
\end{tabularx}

However, this produces a table that is clearly wider than the main text 
block. Here is a simple example:

----- Begin LaTeX file ----

\documentclass{article}
\usepackage{tabularx}
\begin{document}

Lorem ipsum est aliquip sensibus ex, omnesque instructior an vix. Ea 
elitr detraxit sea, at modo offendit detraxit nec, lucilius repudiandae 
ut mel. Ex per minim prompta delicatissimi, vero inani ea vel. An 
recteque evertitur reprimique per, postea instructior sit eu.

\begin{tabularx}{\textwidth}{lX}
pericula &
Viris qualisque laboramus no mel, ea habeo definiebas qui. Iusto 
patrioque hendrerit te vix. Id sea feugait consetetur, ut quis lucilius 
electram sea.
\end{tabularx}

Eos et quot meliore pertinax. Eam ut assum nostrum omittantur, elit 
consequat cu eos, vel apeirian repudiandae ei. Eirmod praesent ad cum, 
eam cu scripta appellantur. Cibo pericula eum no. Ei mei ridens iisque 
concludaturque, meliore aliquando ei est.
\end{document}

---- End LaTeX file -----

Typesetting this file shows the text in the tabularx environment 
extending into the right margin. What am I doing wrong? Any suggestions 
on how to do it right?

Thanks,

Cameron

--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>





More information about the macostex-archives mailing list