Emin Martinian <emin.martin...@gmail.com> writes: > Briefly speaking, the current latex export of SVG files does not work out > of the box and requires adding --shell-escape to the latex args and also > installing inkscape. Even with those, I found the process brittle. If we > are going to require inkscape for SVG handling, it seems cleaner to me to > just use inkscape to convert SVG to PDF and then use \includegraphics > instead of relying on something like \includesvg > <https://github.com/bzg/org-mode/blob/b6dbf8881076191e1351d7cd15e26547a2531fea/lisp/ox-latex.el#L2879>. > Also, if we go with the path of converting SVG to PDF, we can allow/support > other conversion programs like rsvg-convert. Finally, if other backend > exporters want to support SVG, converting SVG to PDF (or other formats) can > support that in a similar way.
In other words, should we try to go around \usepackage{svg} and instead convert svg->pdf ourselves, without forcing users to provide --shell-escape? Even in LuaLaTeX, where --shell-escape is not neccesary, svg may not render correctly without inkscape. -- 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>