Date: 13 Jan 1994 16:42:27 -0500 (EST) From: Michael Downes Subject: Around the Bend #16 To: info-tex@shsu.edu X-ListName: TeX-Related Network Discussion List ************************************************************************ *** 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{|}~