blob: b2b3bfdf2707f4ab3cad9dacb7568478475d2bb4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
Date: 13 Jan 1994 16:42:27 -0500 (EST)
From: Michael Downes <MJD@MATH.AMS.ORG>
Subject: Around the Bend #16
To: info-tex@shsu.edu
X-ListName: TeX-Related Network Discussion List <INFO-TeX@SHSU.edu>
************************************************************************
*** Exercise 16:
Predict the messages that will be produced by plain TeX for the
following test file.
\catcode`\@=11 \newcount\m
\def\msg#1{\advance\m 1 \message{(\number\m): #1}}
\def\T{\msg{T}}\def\F{\msg{F}}
\mag=1728 \hfuzz=1pt \tabskip=1pt \baselineskip=12pt
\topskip=10pt \lineskiplimit=1pt \lineskip=1pt
\setbox0\vbox{%
\mag=\time \ifnum\mag>1500 \T\else\F\fi % (1)
\mag=\number\year \ifnum\mag>1500 \T\else\F\fi % (2)
\hfuzz=99pt \ifdim\hfuzz=99pt \T\else \F\fi % (3)
\tabskip=\z@ \ifdim\tabskip<\p@\T\else\F\fi % (4)
\tabskip=\p@ minus2pt \ifdim\tabskip>\z@\T\else\F\fi % (5)
\baselineskip=-\prevdepth \ifdim\baselineskip=12pt \T\else\F\fi % (6)
\advance\baselineskip 2\topskip % (7)
\ifdim\baselineskip>\@m\p@ \T\else\F\fi %
\lineskiplimit=\z@ \ifnum\lineskiplimit>0 \T\else\F\fi % (8)
\lineskip=\z@skip \ifdim\lineskip>\lineskiplimit \T\else\F\fi % (9)
\kern2pc\ifdim\lastkern=2pc \T \else\F\fi % (10)
\hskip1em
\ifvmode\T\else\ifdim\lastskip>\z@\msg{FT}\else\msg{FF}\fi\fi % (11)
\font\cmrtest=cmr10 \ifx\cmrtest\tenrm \T\else\F\fi % (12)
}
\end
Where should \relax be inserted?
************************************************************************
Answers will be posted circa January 27, 1994.
Michael Downes %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
mjd@math.ams.org (Internet) ASCII 32--54,55--126: !"#$%&'()*+,-./0123456
789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
|