42

I want LaTeX not to give warnings for overfull hboxes up to some maximum of say 2 pts. How to achieve this?

6
  • 4
    Maybe this answer is helpful to you?
    – meep.meep
    Mar 17, 2011 at 10:15
  • So is this a duplicate? Mar 17, 2011 at 10:32
  • Please take a look at the question that meep.meep has suggested as the answers there might help you. If they do, that's great, and we'll probably close this question as a duplicate just to keep the place tidy and to help people find the answers quickly. If they don't, please edit your question here to explain why so that people can better focus their attention to help you. Mar 17, 2011 at 11:07
  • 1
    I don't think it is a duplicate as this question explicitly asks for a solution to manually change the warning whereas the first question is about the general explanation/understanding of this warning. It is right, though, that the answers overlap. Does that qualify as a duplicate?
    – meep.meep
    Mar 17, 2011 at 11:18
  • Not a duplicate: someone searching for an answer to my question will never/not easily find the answer meep.meep provides a link to
    – willem
    Mar 17, 2011 at 11:46

1 Answer 1

36

Tested it, works! See also this Wiki.

\documentclass{article}

\hfuzz=5.002pt 

\begin{document}
looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong
\end{document}

where \hfuzz=length is a parameter that allows hbox's to be overfull by length before an overfull error occurs.

4
  • 4
    Please always add a short explanation to your solutions even if you have added a hyperlink to such explanations. An answer should be properly self-contained. Something like "Using \hfuzz allows \hbox to be overfull to the given amount before a warning is raised". Mar 17, 2011 at 11:06
  • @Martin Scharrer: done.
    – meep.meep
    Mar 17, 2011 at 11:15
  • 1
    Thanks! But the [] are confusing. Mar 17, 2011 at 11:17
  • 2
    This answer does not work in this MWE: \documentclass{article}\hfuzz=100pt\begin{document}\parbox{1em}{Long}\end{document}: "Overfull \hbox (11.8056pt too wide) in paragraph". You would have to use \documentclass{article}\begin{document}\parbox{1em}{\hfuzz=100pt Long}\end{document}
    – bers
    May 12, 2017 at 8:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .