Hi Wolfgang,
Am 30.07.10 18:37, schrieb Henning Hraban Ramm:
(latest beta MkIV)
With \setupindenting[yes, medium] there shouldn't be an indent after a \blank IMO.
How can I suppress it? \setupindenting[yes,medium] \starttext \input knuth \blank \noindentation\input ward \stoptext
or you use my fancybreak [1] module:
\usemodule[fancybreak] \setupindenting[yes,medium] \setupfancybreak[indentnext=no] \starttext \input knuth \fancybreak \input ward \stoptext
I'll have a more detailed look at it later (remind me that we need to formalize this \???? namespace for modules issue; we might need \??? for the core soon as we run out of \??'s). I wonder what the side effects of \everyvbox are as the next box content can have vboxes itself (ok, you can do an everyvbox\emptytoks inside the \everyvbox); maybe \dowithnextboxcontent can be used here \def\dodofancybreak {\begingroup \everyvbox {\setupalign[\fancybreakparameter\c!align]% \doifmode\s!mkiv{\dosetfancybreakattributes\c!style\c!color}}% \dowithnextbox {\blank[\fancybreakparameter\c!spacebefore]% \flushnextbox \blank[\fancybreakparameter\c!spaceafter]% \checknextindentation[\fancybreakparameter\c!indentnext]% \dorechecknextindentation \endgroup} \normalvbox} so: \dowithnextboxcontent {\setupalign[\fancybreakparameter\c!align]% \doifmode\s!mkiv{\dosetfancybreakattributes\c!style\c!color}}% {\blank[\fancybreakparameter\c!spacebefore]% \flushnextbox Another convention could be \doifmode\s!mkiv{\let\dosetfancybreakattributes\gobbletwoarguments} so that you then get (less testing): \dowithnextboxcontent {\setupalign[\fancybreakparameter\c!align]% \dosetfancybreakattributes\c!style\c!color}% {\blank[\fancybreakparameter\c!spacebefore]% \flushnextbox As you write nice and clean modules that are perfect examples for others, we should take some time at the context conference and see if we can derive some 'module writing conventions'. I wonder if I should finaly make a definer for \fancybreakparameter like cases. I had one once but it looked quite horrible and there are subtle differences between all cases but I'll give it a try some day soon. Hans ----------------------------------------------------------------- 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 -----------------------------------------------------------------