Thanks a lot Henning!

> The epub script works on the exported xml from a previous context run.
> You can apply your mode there.

Ah, it seems I was running context and mtxrun in the wrong order. Thanks
for the pointer!

I tried running:
```
context ./test.tex --mode=show_formula
mtxrun --script epub --images test
```
but it still does not seem to generate the images. Is there another option
I should pass to either context or mtxrun to ensure the right xml file is
generated/used?

> I would also put the export activation in a mode to avoid the overhead
> while you don’t need it.

Good point! Thanks also for that!

Cheers,
Florent


Le jeu. 14 août 2025 à 09:17, Henning Hraban Ramm <te...@fiee.net> a écrit :

> Am 14.08.25 um 10:01 schrieb Florent Michel:
> > Hi,
> >
> > TL;DR: Is there a way to pass a `mode` argument when running `mtxrun --
> > script epub --images`?
>
> The epub script works on the exported xml from a previous context run.
> You can apply your mode there.
>
>
> > ________________
> > \setupbackend[export=yes]
> > \starttext
> > A well-known equation:
> > \startmode[show_formula]
> > \startformula
> >    e = \frac{m c^2}{\sqrt{1 - v^2 / c^2}}
> > \stopformula
> > \stopmode
> > \stoptext
> > ___________________
>
> I would also put the export activation in a mode to avoid the overhead
> while you don’t need it.
>
> Hraban
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>
___________________________________________________________________________________
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