我想获取文档中非常严重的水平盒错误(例如 20pt 以上太宽)的列表。有没有办法抑制较小的错误?我的文件非常大,否则查看日志文件会有点麻烦。
我尝试过\hfuzz=50.002pt
,但似乎不起作用 --- 它仍然会出现许多较小的错误,例如:
Overfull \hbox (5.77747pt too wide)...
澄清:该文件有 20,000 行,但根据建议,我开始将其拆分以找到最小的反例。通过这样做,我意识到 \hfuzz=50pt
之前调用了该函数\documentclass{amsart}
,这导致了问题。
答案1
你说你想要被警告超过 20pt,\hfuzz=50pt
会让一切沉默到 50pt,所以你需要
\hfuzz=20pt
请注意,默认值为 .1pt,如果您允许 20pt 而没有警告,最好将文本设置为 raggedright,而不是仅仅允许无法使用的错误对齐。
然而,尽管大多数行都超过 10pt 超额,但并没有发出警告
\documentclass{article}
\hfuzz=20pt
\begin{document}
\noindent X\dotfill X
\noindent X\dotfill X
\mbox{This line is wide}
\mbox{This line is too wide}
\mbox{This line is too wide}
\mbox{This line is too wide}
\mbox{This line is too wide}
\mbox{This line is too wide}
\mbox{This line is too wide}
\mbox{This line is too wide}
\mbox{This line is too wide}
\mbox{This line is too wide}
\mbox{also wide} \mbox{also wide}
\mbox{This line is too wide}
\mbox{also wide} \mbox{also wide}
\mbox{This line is too wide}
\mbox{also wide} \mbox{also wide}
\noindent X\dotfill X
\end{document}