Wolfgang Schuster wrote:
Am 10.09.2008 um 17:15 schrieb Hans Hagen:
newspeak would be using an attribute and postprocessing the node list -)
How could I write this in newspeak:
\newsignal\yesnosignal
\def\yesno{\scratchdimen\lastskip\ifdim\scratchdimen=\yesnosignal YES \else NO\fi}
in traditional speak: \def\YesNo{\relax\ifdim\lastskip=\yesnosignal YES\else NO\fi}
\starttext
text \hskip\yesnosignal \yesno\ text \hskip\yesnosignal text \yesno\ text
\stoptext
Wolfgang
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
-- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------