Questions tagged [texbook.tex]

Questions about texbook.tex, the source of The TeXbook.

Filter by
Sorted by
Tagged with
4
votes
2answers
386 views

Question about the special rule mentioned after TeXbook exercise 20.5

I don't quite understand the special rule that follows texbook exercise 20.5: A special extension is allowed to these rules: If the very last character of the < parameter text > is #, so that ...
5
votes
1answer
242 views

Question about exercise 21.10 in The TeXbook

This exercise asks how to store expansion of \chapno at the moment when \write is processed, but \the\count0 must be expanded at the moment of \shipout. Here is a full example: \def\chapno{5} \...
2
votes
2answers
280 views

\vrule and \hrule in \leaders

Those questions were came up when I was looking through The TeXbook around page 225 and solving the exercise 21.6 in there: In \leaders, are \vrule and \hrule essentially the same ? On the other ...
26
votes
2answers
2k views

Bo Derek in texbook.tex?

texbook.tex contains a double-dangerous-bend exercise which starts at line 18198 : \ddangerexercise ^{Powers of ten}: The whole \TeX\ language has now been summarized completely. To~demonstrate how ...
3
votes
1answer
120 views

Question about exercise 14.31 in TeXbook

The following example uses \signed macro from page 106 of TeXbook: \tracingonline=1 \tracingparagraphs=1 \def\signed #1 (#2){{\unskip\nobreak\hfil\penalty50 \hskip2em\hbox{}\nobreak\hfil\sl#1\/ \rm(...
6
votes
2answers
172 views

Question about exercise 20.7 in the TeXbook

To which specific examples from answer to exercise 20.7 in TeXbook refers the following part of the answer? Category codes are not shown, but a character of category 6 always appears twice in ...
17
votes
3answers
834 views

The "^'' glyph in the TeXBook

TeX, plain TeX, within the source of the Texbook of Don Knuth, there is use of ^ in different command sequences, and in text bites. Is there a special meaning to ^ in TeX primitives, in plain TeX, ...
33
votes
1answer
603 views

Exercise 17.21 of Knuth’s TeXbook: a (known) error?

Exercise 17.21 of The TeXbook asks a question concerning \delcode: Appendix B defines \delcode‘< so that there is a shorthand notation for angle brackets. Why do you think Appendix B doesn’t ...
11
votes
1answer
282 views

Question about exercise 7.5 in TeXbook

Consider this extract from TeXbook: EXERCISE 7.5 Experiment with TEX to see what \string does when it is followed by an active character like ~. (Active characters behave like control sequences,...
17
votes
2answers
3k views

Why using character ^^ff before every chapter in the TeXBook source

When viewing the source code of the TeXBook, I find that there is a character ^^ff before every chapter in it. I am wondering why using this ^^ff character which seems useless? The following ...
11
votes
1answer
931 views

Contradiction in a TeXbook example?

This might be a little OT, but I'm curious about this: in the TeXbook the excercises 4.1 and 4.2 mention the italic correction needed in some cases. One such case is: {\it f\/} Since TeX is only ...
9
votes
1answer
514 views

Exercise 6.5 Knuth's TeXbook

Running this exercise according to the suggestions on its answer in Appendix B, I got the following result : The following lines can be seen in the log: Loose \hbox <badness 4> ... ...