File r34/lib/redwidth.tex artifact 2082a79eb2 part of check-in f16ac07139


 \relax
 % ---------------------------------------------------------------------
 % Interactive module for retrieving width information for T.R.I.
 % ---------------------------------------------------------------------
 \newbox\testbox\newcount\xxx
 \def\widthof#1{\message{width is: }
 \wwidthof{$\displaystyle#1$}
 \wwidthof{$\scriptstyle#1$}
 \wwidthof{$\scriptscriptstyle#1$}}
 \def\wwidthof#1{\setbox\testbox=\hbox{#1}
 \xxx=\wd\testbox\message{\the\wd\testbox=\the\xxx sp!}}
 \def\endloop{end }\newif\ifOK
 \loop\message{Type in TeX item or say 'end': }
   \read-1 to\answer
   \ifx\answer\endloop\OKfalse\else\OKtrue\fi
   \ifOK\widthof{\answer}
 \repeat
 \end


REDUCE Historical
REDUCE Sourceforge Project | Historical SVN Repository | GitHub Mirror | SourceHut Mirror | NotABug Mirror | Chisel Mirror | Chisel RSS ]