I'm trying to make tex4ht produve svg-pictures instead of the normal png ones. I'm working with MiKTeX 2.9 under Windows 10.
I tried the following tex-file (mwe.tex):
\documentclass{book}
\begin{document}
$$5x - y = 1$$
\end{document}
with the following config-file (myhtml.cfg):
\Preamble{html}
\Configure{Picture}{.svg}
\begin{document}
\EndPreamble
To get svg-images I tried putting
G.svg
Gdvisvgm -n -p %%2 -s %%1 > %%3
into the tex4ht.env as suggested here, and then running
htlatex mwe.tex "myhtml"
When the system call
dvisvgm -n -p 1 -s mwe.idv > mwe0x.svg
is made by htlatex, an error-window pops up, saying that dvisvgm.exe is not working anymore.
But the thing is, when I type 'dvisvgm -n -p 1 -s mwe.idv > mwe0x.svg' directly into the command window, it works just fine.
I also tried using make4ht as suggested here, which didnt work either: it produces an svg of size 0 Bytes.
pdf2svg
during the build process. Example how to do this is here Detailed description of my tex4ht setup this is what I do now and it works very well for me.Make:image("svg$","dvisvgm -n -p ${page} -c 1.4,1.4 -s ${source} > ${output}")
your version withMake:add("dvisvgm","dvisvgm -v1 -n -c 1.15,1.15 -p 1- ${input}.idv")
or even something usingos.execute("dvisvgm -v7 -n -c 1.15,1.15 -p 1- ${input}.idv")
... All the svg files are empty, if any are produced at all. The latter doesn't even print anything on the screen, despite the-v7
\includegraphics
. I've been doing that as well, for example with externalized tikzpictures. My problem lies with the images of displayed math, arrays, matrices and so on. Have I misunderstood something?