Am 13.11.2008 um 20:52 schrieb Alan STONE:

> Hi,
>
> With \definelayout[myLayout][...], how do you test whether one of  
> its parameters has a certain value, is greater than 0, etc... ?

\definelayout
   [mylayout]
   [backspace=3cm,
    width=12cm]

\starttext

\doifdimensionelse{\namedlayoutparameter{mylayout}{width}} % width  
could be 'fit'
   {\ifdim\namedlayoutparameter{mylayout}{width}<10cm
      ...
    \else
      ...
    \fi}
   {\processaction
      [\namedlayoutparameter{mylayout}{width}]
      [fit=>...,
       unknown=>...]}

\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
___________________________________________________________________________________

Reply via email to