[texhax] Heading question

Philip TAYLOR Philip-and-LeKhanh at Royal-Tunbridge-Wells.Org
Wed Feb 27 23:10:07 CET 2008

Will this suffice, Doc ?

\newtoks \Knuthsoutput
\Knuthsoutput = \output
\output =
         \message {[\meaning \topmark]}
         \message {[\meaning \botmark]}
         \message {[\meaning \firstmark]}
         \edef \Topmark {\topmark}
         \edef \Botmark {\botmark}
         \edef \Firstmark {\firstmark}
         \ifx \Topmark \Botmark \message {Top and Bot are the same; }\fi
         \ifx \Topmark \Firstmark \message {Top and First are the same; }\fi
         \ifx \Firstmark \Botmark \message {First and Bot are the same; }\fi
         \the \Knuthsoutput

\line {1: \mark {1}}
\line {2: \mark {2}}
\line {3: \mark {3}}
\line {4: \mark {4}}



D. R. Evans wrote:

> It seems like that should be dead easy. But since \ifx doesn't expand
> \topmark and \botmark, I can't see how to do it.

More information about the texhax mailing list