Skip to content

Latest commit

 

History

History
28 lines (25 loc) · 1.03 KB

README.org

File metadata and controls

28 lines (25 loc) · 1.03 KB

inkscape.el

Use M-x inkscape (or M-x ink) to

  1. Query for a file name to edit from the figure directory (./figures/ by default)
  2. If the file does not exist, create it from the template (stored in inkscape-plain-svg-template, by default the contents of template.svg)
  3. Open Inkscape (asynchronically) on the file
  4. Once the process exits, compile the file to pdf_tex by default (controlled by inkscape-compilation-args)
  5. 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")))