[texhax] TeXbook p.29

Philip Taylor P.Taylor at Rhul.Ac.Uk
Mon Jul 2 00:10:29 CEST 2018


Something like the following, but I couldn't be bothered to go beyond the first two ...

> \def \text #1 {The badness of this line is #1.}
>
> \setbox 0 = \hbox {\text 0 }
>
> \hbadness = -1
>
> \hbox to 1,02655792237 \wd 0 {\text 100 }
>
> \hbox to 1,0135 \wd 0 {\text 12 }
>
> \end
>

In reality, the badness of the first box is 99, not 100 as it should be.  Someone else can fix that if they like !
Philip Taylor
--------

Rodolfo Medina wrote:
> Hi.
>
> I'm trying to reproduce the increasing line badness shown at p.29 of the
> TeXbook but don't manage to, even changing in many ways the values of
> \hbadness, \tolerance, \looseness...  Please help.
>
> Thanks,
>
> Rodolfo



More information about the texhax mailing list