On 22-10-2011 23:07, Aditya Mahajan wrote:
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
I've added
\defineindentingmethod [\v!toggle] {\parindent\ifdim\parindent=\zeropoint
\ctxparindent
\else
\zeropoint
\fi\relax}
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
_______________________________________________
dev-context mailing list
dev-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/dev-context