Several years ago I was impressed with this post from Gilles Castel, but personally I find Inkscape too much for what I need. I discover ipe a short time ago.
This org package offer the ability to create and modify drawing with IPE, that is obviously a dependency.
I usually export my document with org-latex backend, in order to correctly export svg
you must include:
#+LATEX_HEADER: \usepackage[inkscapelatex=false]{svg}
and then make sure that you have -shell-escape
in your org-latex-pdf-process
command. Like this:
(setq org-latex-pdf-process
'("pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f"
"pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f"))