> AFAIK you need \startimage … \stopimage around everything that should > become a SVG.
Ah, good point! I tried adding \startimage … \stopimage around \sttartformula ... \stopformula , with no luck, unfortunately. However, after looking at mtx-epub.lua and experimenting, I realised that running context test.tex --mode=show_formula --exportimages=true generates a pdf with (if I am not mistaken) the correct image, or one image per page when the input tex has several of them. I should thus be able to use mutools to convert it to svgs and save them to `test-export/images` manually, using mtx-epub.lua as reference. Thanks again for your help! Le jeu. 14 août 2025 à 13:00, Henning Hraban Ramm <te...@fiee.net> a écrit : > Am 14.08.25 um 13:32 schrieb Florent Michel: > > Thanks a lot Henning! > > You’re welcome. > > > 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? > > AFAIK you need \startimage … \stopimage around everything that should > become a SVG. > > I’m not uptodate on the details of the current epub script, but must try > soon… > > 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 ___________________________________________________________________________________