[Tex/LaTex] How to use silence package to silence “underfull” and “overfull” warnings

boxescompilingsilencewarnings

I can't figure out how to get rid of the "underfull" and "overfull" warnings using the silence package (I am able to use it to hide some other warnings, but not these). What should be the correct syntax? Currently, this is what I have in my prologue:

\usepackage{silence}
\WarningFilter{latex}{Underfull}
\WarningFilter{latex}{Overfull}
\WarningFilter{latex}{Text page}
\WarningFilter{pdfcolmk}{Nothing to fix}

But I still get warnings like the following:

Underfull \hbox (badness 4940) in paragraph at lines 150--170
Overfull \hbox (3.50006pt too wide) in paragraph at lines 196--197
Underfull \vbox (badness 3690) has occurred while \output is active []
Underfull \vbox (badness 10000) has occurred while \output is active []
Underfull \vbox (badness 3039) has occurred while \output is active []
Underfull \hbox (badness 5490) in paragraph at lines 222--2
Underfull \vbox (badness 3039) has occurred while \output is active []
Underfull \vbox (badness 10000) has occurred while \output is active []

thanks, Jorge.

Best Answer

The over/underfull box warnings are from TeX - not LaTeX. As silence's manual notes,

TeX’s messages are left untouched. (p. 1)

You can tell they aren't LaTeX warnings because LaTeX tells you when it is the source of the warning.

LaTeX Warning: Float too large for page by 1056.17519pt on input line 28.

[The effect of putting 10 paragraphs of Kant's first critique (in translation) into a float.]

In contrast, TeX warnings don't say this.

Overfull \hbox (0.79013pt too wide) in paragraph at lines 25--25