Use M-x inkscape
(or M-x ink
) to
- Query for a file name to edit from the figure directory (
./figures/
by default) - If the file does not exist, create it from the template (stored in
inkscape-plain-svg-template
, by default the contents oftemplate.svg
) - Open Inkscape (asynchronically) on the file
- Once the process exits, compile the file to
pdf_tex
by default (controlled byinkscape-compilation-args
) - Check that the target file exists. If it does, copy the include string
(
\def\svgwidth{0.7\textwidth} \input{./figures/%s.pdf_tex}
by default).
Doom Emacs recipe:
(package! inkscape
:recipe (:host github
:repo "ymarco/inkscape.el"
:files ("*.el" "*.svg")))
Installation via use-package and straight (https://github.com/radian-software/straight.el):
(use-package inkscape
:straight (:host github
:repo "ymarco/inkscape.el"
:files ("*.el" "*.svg")))