I'd like to be able to convert a TikZ picture written in LaTeX, into an SVG file which I could load up in Inkscape, for some "tweaking". I have read the threads
How can I produce a .svg file from a TikZ diagram?
Maintaining layout of Tikz diagrams with TeX4ht (converting as single pictures)
but I have been unable to get a solution working. In particular, the following solution code to get TikZ to produce an svg file itself via the "tex4ht" option doesn't work for me:
\documentclass{article}
\def\pgfsysdriver{pgfsys-tex4ht.def}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\path (0,0) node[draw] (A) {A};
\path (2,0) node[draw] (B) {B};
\draw (A) -- (B) node[midway,above = 0 em] {via};
\end{tikzpicture}
\end{document}
I get the following error from pdfLaTeX:
Undefined control sequence.
\pgfsys@beginicture -> EndP \HtmlParOff ...
tikz
command to produce apdf
file and then you can open it with Inkscape. – Sigur Feb 1 '14 at 15:01cmr
(Computer Modern Roman). – Sigur Feb 1 '14 at 16:14.ps
which I think Inkscape should open just fine. – Jānis Lazovskis Feb 2 '14 at 4:15