Wolfgang Schuster wrote:
On Wed, Sep 10, 2008 at 2:31 PM, Hans Hagen
wrote: Marcin Borkowski wrote:
Dnia Wed, Sep 10, 2008 at 01:49:52PM +0200, Steffen Wolfrum napisał(a):
Hi,
I'd like to change the phrase
"if lastskip equals \EinsSignal set vskip to 0pt else ..."
to
"if lastskip equals \EinsSignal set vskip to 0pt else if lastskip equals \\ZweiSignal set vskip to -2pt else ... "
in the following code ...
\newsignal\ZweiSignal \def\EbeneDreibefore {\ifdim\lastskip=\EinsSignal \vskip-0pt \else \blank[20pt]\fi} \setuphead[EbeneDrei][...,before=\EbeneDreibefore,...] What about just that you wrote?
\ifdim ... \else\ifdim ... \fi\fi
Some native (tex)speaker can help me translating? Non-native, but close (OTOH, not so close as Hans;)) ok then, an obscure solution for the natives ... untested:
\setvalue{Ebene:\the\dimexpr 0pt\relax}{1pt} \setvalue{Ebene:\the\dimexpr 1pt\relax}{-2pt}
\vskip\executeifdefined{Ebene:\the\lastskip}{0pt}\relax
But this is newspeak ;-)
newspeak would be using an attribute and postprocessing the node list -) Hans ----------------------------------------------------------------- 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 -----------------------------------------------------------------