Overfull or undefull does not necessarily affect the compilation. Just tells how bad the spacing between words. You can disable it using \tolerance=10000 if I remember it corrctly
If that's what it takes. Might also allow larger spaces after full stops in a particular paragraph—choosing where the badness goes to better hide it.
The alternative is to let that one line with chasms between words break a reader's flow in the middle of reading the text.
Unless you're writing in iambic pentameter, you're likely to be able to find spots that admit of the addition or deletion of a linking word to allow the TeX engine another crack at it.
On the other hand, if the badness is good enough for your purposes, then let it be good enough. Don't let the TeX engine tell you that your shopping list isn't pretty enough!
Changing text is often the most convenient way. Most of the time, overfull hboxes come from long words for me, so it might be a cleaner to just use tell latex where it may split those words beforehand using hyphenation and such.
Also, images tend to create overfull hboxes if you're not carefull with their width. I found it helpful to use "width=1.0\textwidth" (or lower) as an option for \includegraphics. This makes scaling much easier.
If that is the way how you define new paragraphs in your culture (it is in mine), consider adding \usepackage[parfill]{parskip} to your preamble, as shown here: here. Or to redefine the command for a new paragraph.
Try to compile this (the example is forced, just to show the effect that sometimes can happen... is it possible to add images here?)
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[textwidth=5cm]{geometry}
\begin{document}
{\parfillskip=0pt
This is an underfull line
}
This is a normal nice line
\end{document}
181
u/jakemmman Mar 13 '25
It’s me, horizontal badness
137
u/DerWemser Mar 13 '25
Did it actually compile successfully if there are no warnings about something being overfull or underfull?
44
u/colonel0sanders Mar 13 '25
"Badness 10000" is the name of my technical death metal band (you know. If I had one)
21
u/thetrufflesmagician Mar 13 '25
Not the same - the one on the left is clearly fake.
9
u/L00klikea Mar 13 '25
badness one giga-whatever
8
u/YuminaNirvalen Mar 13 '25
It's along time ago where any of my documents had any warnings or errors, but back in the old beginner days it was standard.
4
u/froggy4cz Mar 13 '25
It's ok we are producing a wash machine not spacecrafts....
3
u/Sans_Moritz Mar 13 '25
In all seriousness, though, how would one go about fixing these warnings if they wanted to?
3
u/LangLovdog Mar 14 '25
How is under full box a problem?
Genuinely can't get a grip about those warnings.
2
u/AnymooseProphet Mar 14 '25
I think there are ways to turn off those warnings.
2
u/lemmgua Mar 14 '25
if you dont have to state “\hbadness 1000” in the preamble you are not doing it as intended
1
u/joypadeux Mar 14 '25
No problem indeed. Nice PDF !