I want LaTeX not to give warnings for overfull hboxes up to some maximum of say 2 pts. How to achieve this?
Asked
Active
Viewed 1.9k times
42
-
4Maybe this answer is helpful to you? – meep.meep Mar 17 '11 at 10:15
-
So is this a duplicate? – Hendrik Vogt Mar 17 '11 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. – Martin Scharrer Mar 17 '11 at 11:07
-
1I 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 '11 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 '11 at 11:46
-
@willem is exactly right: this question shows up in the first few results for a search on "suppress overfull hbox warning" and gave me a solution right away. – bstpierre Apr 25 '12 at 22:01
1 Answers
37
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.
meep.meep
- 16,905
-
4Please 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
\hfuzzallows\hboxto be overfull to the given amount before a warning is raised". – Martin Scharrer Mar 17 '11 at 11:06 -
-
1
-
2This 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 '17 at 08:23