Hi Florent, On Thu, Aug 14, 2025 at 2:40 PM Florent Michel <florent....@gmail.com> wrote: > > > 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!
We have some kind of working setup at the moment (here I have some lua file that compiles lectures in different files to different xhtml files, exporting svg files for formulas automatically, and so on), but this is something that will be discussed further during the meeting, and that probably needs some polishing. /Mikael ___________________________________________________________________________________ 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 ___________________________________________________________________________________