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 this # is
immediately followed by {, TEX will behave…
I'm trying to understand how the \answer command from Donald Knuth's TeXbook works to do the same in LaTeX. Please explain how it works. Is it possible to implement exercises in the likeness of this idea so that the text of the exercise occurs…
On p.412 of TeXbook there is this text:
The author has extended these macros to a more elaborate format that includes special features for listing the members of the orchestra and for program notes,
etc.; in this way it becomes fairly easy to…
If I put the answer to exercise 18.5 from Knuth's TeXbook,
i.e.
$${n\choose k}\equiv{\lfloor n/p\rfloor\choose
\lfloor k/p\rfloor}{n\bmod p\choose k\bmod p}\pmod p.$$
into my pdftex,
pdfTeX 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian),
I get…