我使用 WinEdt8.1 创建 TeX 文件,我更喜欢 PDFTeX,而不是 TeX 或 LaTeX。我注意到,当我创建一个未满的框(水平或垂直)时,不良值始终为 10000。例如,在该代码中
\hbox to250pt{\hskip0pt minus50pt\vrule height1pt width249pt}
不良值应为 0.0008 [97]:
L= 249 . . . l=250 => D=-1 < 0
r=-(D/Y)=1/50 => badness = min(100*r^3,10000)=0.0008
但它始终是 10000。我相信您可以说些什么......
答案1
盒子内的胶水没有可拉伸性,但材料没有覆盖规定的宽度。胶水拉伸率r因此是无限的,并且显示的不良程度为 10000。
如果增加可拉伸性,则不良程度就会降低:
\count255=0
\loop
\hbox to20pt{\hskip0pt plus \count255 pt\vrule height1pt width1pt}
\ifnum\count255<20
\advance\count255 by 1
\repeat
\bye
这是终端输出:
Underfull \hbox (badness 10000) detected at line 6
|
Underfull \hbox (badness 10000) detected at line 6
|
Underfull \hbox (badness 10000) detected at line 6
|
Underfull \hbox (badness 10000) detected at line 6
|
Underfull \hbox (badness 10000) detected at line 6
|
Underfull \hbox (badness 5475) detected at line 6
|
Underfull \hbox (badness 3168) detected at line 6
|
Underfull \hbox (badness 1997) detected at line 6
|
Underfull \hbox (badness 1337) detected at line 6
|
前九个箱子被认为是未满的。