On Wed, Sep 10, 2008 at 2:31 PM, Hans Hagen
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 ;-) Wolfgang