[texhax] TeXbook p.29

Rodolfo Medina rodolfo.medina at gmail.com
Mon Jul 2 00:38:43 CEST 2018


Philip Taylor <P.Taylor at Rhul.Ac.Uk> writes:

> 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
> --------


Thanks...  What I was looking for, is to get the same result without using
\hboxes, in a normal text, properly varying proper parameters...  Possible...?
Get to have text shrinked or wided at pleasure, with the same font and font
size, as in the example but without \hboxes...

Rodolfo



> 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.



More information about the texhax mailing list