On 2/15/2021 7:14 PM, mf wrote:
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?
mkiv:
\ifconditional\postponingnotes
\else
\fi
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________