I often see output from TeX with the warning overfull hbox, badness 10000
. What does this message mean?
[Tex/LaTex] What does “overfull hbox” mean? (Why is there a black mark at the end of a line?)
boxesline-breakingwarnings
boxesline-breakingwarnings
I often see output from TeX with the warning overfull hbox, badness 10000
. What does this message mean?
Best Answer
Quoting Phil Miller answer, for completeness:
These warnings can also happen by manually breaking works with
-
as commented by Sebastian. This can be fixed by importing the package\usepackage{hyphenat}
and using its command\hyp{}
to break words, i.e.,hyphenated\hyp{}word
instead ofhyphenated-word
. But as can be easily noted, typing\hyp{}
all the time can be quite annoying. Here come in thebabel
package shorthands. See the question How to create an alternative to shortcut "= or \hyp{}?, to learn about the usage of the~=
shorthand. So you can write likehyphenated~=word
, instead ofhyphenated\hyp{}word
.Badboxes warnings can also be caused by breaking lines with
\\
and\hbox
as demonstrated on this other question: How to stop \newsavebox giving me bad boxes warnings or how to use better names with \setbox?You can control how the
overfull hbox, badness
work configuring these latex parameters explained on:On these questions there are more related information about line breaking:
Hyphenation:
Bad boxes:
Table of Contents:
Miscellaneous: