[NTG-context] arbitrary context commands in xml file

denis.maier at ub.unibe.ch denis.maier at ub.unibe.ch
Mon Mar 8 11:20:54 CET 2021


> -----Ursprüngliche Nachricht-----
> Von: Hans Hagen <j.hagen at xs4all.nl>
> Gesendet: Freitag, 5. März 2021 23:17
> An: mailing list for ConTeXt users <ntg-context at ntg.nl>; Maier, Denis
> Christian (UB) <denis.maier at ub.unibe.ch>;
> wolfgang.schuster.lists at gmail.com
> Betreff: Re: [NTG-context] arbitrary context commands in xml file


[...]

> >
> > Here, I was thinking if something like this could be easier:
> >
> > <?context-directive raw-tex-injector \testpage[4]?>
> you can also do this:
> 
> <testpage n="4"/>
> 
> \startxmlsetups xml:testpage
>    \testpage[\xmlatt{#1}{n}]
> \stopxmlsetup
> 
> and register that one (as in previous examples)

Thanks,. That's a good idea, but it will also make the XML invalid.

Denis


More information about the ntg-context mailing list