I am getting overfull warning (Overfull \hbox (17.10379pt too wide) in alignment
) when using longtable
enviroment (See MWE below) The warnings are on \begin{longtable}
and \end* lines
. The pdf filellooks fine, but I would like to get rid of the warning message. Any suggestions on how to get rid of those warning by formatting the table?
\documentclass{article}
\usepackage{longtable}
\usepackage{lipsum}
\begin{document}
\begin{longtable}{*2{p{0.49\textwidth}}}
Title & Column 2 \\
\hline
\endfirsthead
Title & Column 2 \\
\hline
\endhead
\multicolumn{2}{r}{Continued}\\
\endfoot
\hline
\endlastfoot
\lipsum[1] & \lipsum[2]\\
\end{longtable}
\end{document}
Best Answer
You're not taking correctly into account the
\tabcolsep
, a space that is added in front and after all columns:Or, with the
calc
package,