Thanks Hans for the advice. I use a mac-mini and it seems that mupdf, of which mutools is part off, does not have a macOS version, or I would have to build from source. However it looks like I can use Inkscape with a wee bit thought to do pretty much the same. Thanks again for your help. Keith On 05/04/2018 13:39, Hans Hagen wrote:
On 4/5/2018 1:10 PM, Keith McKay wrote:
Dear Readers,
I have been playing about with METAFUN over the last few days trying to get a feel for it. I was wondering if it is possible to save the graphics produced in a context document for use outside. On looking at the Metapost manual I see you can using the following commands save a graphic as an svg file.
forget about producing svg this way ... (1) it would not work with fonts, and (2) mplib in luatex has svg and png output disabled.
% file: mpsvg.tex
\startMPpage
draw textext("Does it work?") ;
draw boundingbox currentpicture enlarged 2mm withcolor "darkred" ;
\stopMPpage
% process
context mpsvg
mutool convert -o mpsvg.svg mpsvg.pdf
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------