ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* verify if you are already postponing notes
@ 2021-02-15 18:14 mf
  2021-02-15 18:21 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: mf @ 2021-02-15 18:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear list,
I'm typesetting XHTML and there is a couple of cases (tables and math), 
where I use \postponenotes ... \flushnotes in both their XML setups.

The problem arises when I have math inside the cell of a table, so I get 
those commands nested:

\postponenotes % <table> element

\postponenotes % <span class="math"> element inside a cell

\flushnotes % </span> closing math

\flushnotes % </table> closing table

With CSS selectors or XML machinery I can find those corner cases, but 
something like this would be better because more general:

\doifnotpostponingnotes{\postponenotes}

\dofipostponingnotes{\flushnotes}

Is there a way to define those \doif... macros?

Massi
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-02-15 18:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-15 18:14 verify if you are already postponing notes mf
2021-02-15 18:21 ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).