Graphics, Figures & Tablestabularx, overfull hbox

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
bers
Posts: 6
Joined: Mon Feb 08, 2010 12:33 am

tabularx, overfull hbox

Post by bers »

Hi,
I guess that's a newbie question, but anyway. I used Google, but there are so many hits on hboxes that I can't figure out which ones contain useful information...

Code: Select all

\documentclass{article}
\usepackage{tabularx}
\begin{document}
\begin{tabularx}{\textwidth}{p{3cm}X}
a&b
\end{tabularx} %Overfull \hbox (15.0pt too wide) in paragraph at lines 6--7
\end{document}
What is overfull here? Really, there's enough space for everything!

Look forward to an answer.

bers

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

tabularx, overfull hbox

Post by gmedina »

Hi,

the problem comes from LaTeX indenting the paragraph that contains the table; to prevent it you can use \noindent:

Code: Select all

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

\noindent\begin{tabularx}{\textwidth}{p{3cm}X}
a&b
\end{tabularx}

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply