[dev-context] Add toggle method to indent

Aditya Mahajan adityam at umich.edu
Sat Oct 22 23:07:42 CEST 2011


Hi Hans,

Can you add a `toggle` key to `\setupindenting`. This will 
allow one to easily write poety where alternative stanzas are to 
be indented.

defineindentingmethod [toggle] {\ifdim\parindent=\zeropoint\relax
                                     \parindent\ctxparindent\relax
                                   \else
 				    \parindent\zeropoint\relax
                                   \fi}

\setuplines
  [inbetween={\blank[preference,line]\setupindenting[toggle]},
   indenting=no]

\startlines
....
\stoplines

Thanks,
Aditya


More information about the dev-context mailing list