Hi Floris,
directly generating SVG with ConTeXt LMTX is not possible.
But, using LMTX to generate SVGs has some advantages over MPOST.
You can use ConTeXt's advanced color management (transparency and more) and you can use the very nice font management.
So my "metapost" file is:
\startMPpage
% metapostcode
\stopMPpage
To get a nice SVG I used to key:
context metapost.tex
and
mutool convert -o metapost.svg -O text=path metapost.pdf
Hope it helps a little
Greetings Lutz
Am 5. November 2023 17:57:15 MEZ schrieb vm via ntg-context
With the latest lmtx installed, what would be the correct cli command to generate a svg outputfile from a metapost source?
.Floris ___________________________________________________________________________________ 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 ___________________________________________________________________________________