I want LaTeX not to give warnings for overfull hboxes up to some maximum of say 2 pts. How to achieve this?
-
4Maybe this answer is helpful to you?– meep.meepMar 17, 2011 at 10:15
-
So is this a duplicate?– Hendrik VogtMar 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.– Martin ScharrerMar 17, 2011 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.meepMar 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– willemMar 17, 2011 at 11:46
1 Answer
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.
-
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
\hfuzz
allows\hbox
to be overfull to the given amount before a warning is raised". Mar 17, 2011 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}
– bersMay 12, 2017 at 8:23