[NTG-context] arbitrary context commands in xml file

Duncan Hothersall dh at capdm.com
Mon Mar 8 14:05:50 CET 2021


On Mon, 8 Mar 2021 at 12:46, Hans Hagen <j.hagen at xs4all.nl> wrote:

> > I'd like to second Denis' request for support for XML processing
> > instructions to execute ConTeXt code, rather than elements which can
> > cause big problems if one is working to a fixed schema. It would be a
> > boon to be able to drop in <?context \whatever{fdfd}?> in an XML source.
> one of the things that can already be done ...
>
> \def\xmltexdirective#1#2{\doif{#1}{command}{#2}}
>
> \xmlinstalldirective{tex}{xmltexdirective}
>
>          <?context-directive tex command \inframed{xxx} ?>
>          <?context-directive tex command \page ?>
>
> (the #2 is something without spaces btu one can work around that)
>

Aha. Useful, thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20210308/7510e3ee/attachment.htm>


More information about the ntg-context mailing list