[tex-k] Answers to 14.23 and 14.24 in The TeXbook

Ruixi Zhang rzhan56 at uwo.ca
Wed Nov 20 18:35:32 CET 2024


Hi,

There are several lines (in The TeXbook) of interest in this report.

1. (Re-report) p. 311, line -3. '\hfil\vadjust{\vskip\parskip}\break\indent'.
Here, Knuth seems to suggest using the parameter \parskip between paragraphs, instead of just writing, say, \vadjust{\vskip0pt}. Then, wouldn't it be more consistent to say '\unskip\nobreak\hskip\parfillskip\vadjust{\vskip\parskip}\break\indent'? This change could result in one more line for Answer 14.23, but the extra line can easily fit onto the next page (which contains more serious oversights, as follows).

2. p. 312, line 5. Should be '\hangindent=\the\hangindent}%'.
I imagine the intended use of \hangcarryover is something like:
<previous paragraph>
\hangcarryover
<next paragraph>
If so, then there should be a comment char following the closing brace of the \edef\next. Otherwise, there could be two glues at the end of <previous paragraph> and the \par in \hangcarryover can remove only the one introduced by the \edef\next{...} line-end space token.

3. p. 312, line 7. Should be '\edef\next{\prevgraf=\the\prevgraf\space}' or '\edef\next{\prevgraf=\the\prevgraf\relax}'.
If <next paragraph> begins with a string of numerals, the uncorrected \hangcarryover would swallow these numerals and then \prevgraf would be assigned with an unintended value. Example:
<previous paragraph>
\hangcarryover
100 people, 100 voices.

Regards,
Ruixi Zhang

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/tex-k/attachments/20241120/c09f84c9/attachment.htm>


More information about the tex-k mailing list.