GeneralOverfull \hbox

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
JudMc
Posts: 4
Joined: Mon Feb 04, 2019 6:01 am

Overfull \hbox

Post by JudMc »

I'm getting "Badbox - Overfull \hbox (4.42519pt too wide) in paragraph lines 198--199" on this:

From Example~\ref{origEx2}, with $s = 2^6-6$, we get the following: $T_{58}(2^{2^6}) = (2^6)T_{58}(2) = (2^6)2^{58} = 2^{64}$.

and I can't figure out why, or how to fix it. I've gotten this before when a table was too wide, but I don't see a problem here and it is correct in the PDF.

I thought that the math part was too long. I tried breaking it up into two and then three pieces, but that didn't help.

Is this warning important, and if so, how can it be fixed?

The problem went away. I think it was when I added the amsmath package.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Overfull \hbox

Post by kaiserkarl13 »

The amsmath package wouldn't cause an overfull box. It may have allowed something to break in a different place, but without a Infominimal working example, it's not 100% clear why you got a box like that. It probably means your in-line math was too long and overran the margins, and it probably fixed itself when you edited something or changed the line breaks (perhaps by doing something elsewhere in the document, seemingly unaffiliated with the line causing the overfull box).
Last edited by kaiserkarl13 on Fri Feb 22, 2019 9:53 am, edited 1 time in total.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Overfull \hbox

Post by Stefan Kottwitz »

By the way, \usepackage{microtype} could improve the justification with pdfLaTeX, for example by implicitly using font expansion, so getting rid of overfull horizontal boxes.

Stefan
LaTeX.org admin
Post Reply