I am trying to enable "one click" generation of PDF and SVG image files from the standalone class due to having a large number of images. This worked perfectly on my Intel Macintosh computers using the stock MacTeX installation and pdf2svg and TeXShop, however it has apparently stopped on the Apple Silicon installations, throwing 'command not found' errors.
I understand that pdf2svg
has fallen by the wayside, and that dvisvgm
is the preferred solution, however I am trying to work out how to make it a 'one click' solution as I used to have with pdf2svg
.
The 'one click' command I used to use was this:
\documentclass[crop,tikz, convert={outext=.svg,command=\unexpanded{pdf2svg \infile\space\outfile}},multi=false]{standalone}
however despite installing pdf2svg on the new Macs (and remembering to enable shell-escape) I get an error of
sh: pdf2svg: command not foundsystem returned with code 32512
Is there a way to emulate this with dvisvgm
? Or is it always going to be a two-step process - something I'm keen to avoid with many images to manage.
Any advice/expertise would be greatly appreciated.