Ihor Radchenko <[email protected]> writes: >> The cure for it is setting >> (setq org-babel-latex-preamble (lambda (_) >> "\\documentclass[preview]{standalone}")) >> >> and adding =#+header: :headers '("\\usepackage{tikz}")= >> to the block headers so it looks like >> ... >> The latter block execution produces correct output. The former one's >> relevant part of *Org PDF LaTeX Output* log is >> ! Undefined control sequence. >> \pgfsys@beginpicture ...ys@svg@boxmodefalse \EndP >> \HtmlParOff \pgfkeys >> {/pgf... >> So it obviously doesn't like this part of =org-babel-latex-preamble= >> \\def\\pgfsysdriver{pgfsys-tex4ht.def} >> designed specifically for html export and used for some reason in >> imagemagick's one (as well as svg without imagemagick header) > > Probably we should remove it. Or maybe use dvisvgm, not inkscape.
Fixed, on main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=732133771 -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>
