On Wed, 18 Jun 2025, mf wrote:

> Thanks Hraban and Wolfgang.
> 
> \ignorepars is what I was looking for, though I realized it must be the last
> thing in the paragraph.
> 
> Currently it does not work with my xml setup for paragraphs:
> 
> \startxmlsetups xml:Para
>   \dontleavehmode\xmlflush{#1}\resetcharacterkerning\strut\par
> \stopxmlsetups
> 
> \resetcharacterkerning can be put after the \par.
> 
> \strut prevents the last line from having no depth in case there are no
> letter with descendants.
> I think that could be set globally... but how?

Wouldn't something like this be simpler and more in spirit of separating intent 
from presentation? (I don't remember the XML syntax, so just conveying the 
high-level idea)

<Para> ... </Para> is normal paragraph while
<Para par="false"> is the paragraph where you don't want to insert a para.

Then you can do something like:
\startxmlsetups xml:Para
  ... \xmlflush{#1}%
  check if attribute par is not false
  ... insert \par
\stopxmlsetups

Aditya
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to