I'd like to know how to tag questions regarding the TeXbook contents (i.e. lessons, exercises ...).
Going by the description of texbook.tex:
Questions about texbook.tex, the source of The TeXbook.
it does not seem sensible to misappropriate that tag.
Minor details, like me being unable to create a new tag on my own accord (due to low reputation), aside: what would be the appropriate tag here? Simply use tex-core?
Here is an example question that I'd like to pose on the main page soon, but I refrained from it for now, because of the tagging "issue":
Exercise 5.6 of the TeXbook by Knuth reads:
If you think you understand local and global definitions, here's a little test to make sure: Suppose
\c
stands for\count1=
,\g
stands for\global\count1=
, and\s
stands for\showthe\count1
. What values will be shown?{\c1\s\g2{\s\c3\s\g4\s\c5\s}\s\c6\s}\s
When I tried to follow this in my mind and enter the "expanded" form, I came up with:
{\count1=1\showthe\count1\global\count1=2{\showthe\count1\count1=3\showthe\count1\global\count1=4\showthe\count1\count1=5\showthe\count1}\showthe\count1\count1=6\showthe\count1}\showthe\count1
But this gives me an error. In fact this MWE does as well:
\count1=1
\showthe\count1
What's going on here?
btw: my guess was 1 2 3 4 5 4 6 4, but I cannot verify. I know this is rated two dangerous bends, but I found it intriguing and so decided to give it a try.
(example question ended at the horizontal rule)
tex
and even though it reportsThis is TeX, Version 3.14159265 (TeX Live 2017/Debian) (preloaded format=tex)
it may be modified in some way.