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 found
system 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.

  • 1
    Does it work if you compile from terminal? Commented Oct 31, 2023 at 14:02
  • Frustratingly that's creating another error. "Dimension too large"; Log file claims the page is more than 18feet tall... This is rather beyond my ken at this point Commented Oct 31, 2023 at 14:13
  • OK, so two problems :) The one with the command not found sounds like a problem path, which is not automatically set for gui applications in mac. Can you try with the full path in texshop? /insert your full path here/pdf2svg \infile\space\outfile Commented Oct 31, 2023 at 14:18
  • thank you :-D Rookie error in assuming that HomeBrew installs to the right place... I've only been using latex for 15 years... :$ the 18foot page? My silting preamble I've been copy/pasting for most of that 15 years! Clean that up, compilation works just fine. Commented Oct 31, 2023 at 14:26
  • 1
    Homebrew does install to the right place, mac just makes it difficult to set paths for gui apps Commented Oct 31, 2023 at 14:31

1 Answer 1


Successful was at mine:

% arara: pdflatex: {  shell: yes }  

\documentclass[crop,tikz, convert={
outext=.svg, command=\unexpanded{dvisvgm --pdf \infile\space\outfile}},multi=false,

The log-file says then:

Executing command:
dvisvgm --pdf svgtest01.pdf svgtest01.svg

A complete example:

enter image description here

% arara: pdflatex: {  shell: yes }  

\documentclass[crop,tikz, convert={
outext=.svg, command=\unexpanded{dvisvgm --pdf \infile\space\outfile}},multi=false,
\begin{tikzpicture}% Example:
\node[align=center, draw, rounded corners=1pt, inner sep=1pt,
minimum width=0.5*6ex, minimum height=0.5*9ex,
]{A \\ $\clubsuit$};
  • Wouldn't it be much easier to use latex and directly get a .dvi? (in particular for somebody how keeps complaining about compilation times? :P) Commented Apr 18 at 13:40
  • I don't know. But we want svg-files (not dvi).
    – cis
    Commented Apr 18 at 14:17
  • Try % arara: latex: { shell: yes } \documentclass[crop,tikz, convert={ outext=.svg, command=\unexpanded{dvisvgm \infile\space\outfile}},multi=false, ]{standalone}. Commented Apr 18 at 14:18
  • You want a dvi file as input for dvisvgm. Your current hack to create a pdf file first, then convert it to dvi and from there to svg seems unnecessarily complicate. Commented Apr 18 at 14:19
  • If you have a better automatic "standalone-convert-options" method, I'll use it.
    – cis
    Commented Apr 18 at 14:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .