Emin Martinian <emin.martin...@gmail.com> writes: > Ihor: I tried looking at the link you sent but could not understand how to > use org-persist cache. The conversion program needs an output location to > write a file to. Is there some variable or function which indicates a cache > directory to use? If so, I couldn't figure it out (apologies; I am not an > expert in emacs lisp).
The idea is the following: 1. You check org-persist cache if the .pdf file is already available for a given svg 2. If yes, we are done 3. If not, you generate the .pdf file in temporary directory (see `make-temp-file') 4. You write the generated pdf to cache (see commentary in org-persist.el for examples) > Note: as asked in an earlier comment, rsvg-convert can be used instead of > inkscape. The attached patch tries to use inkscape if installed but if that > is missing and rsvg-convert is available, we use that instead. In > principle, the user could set the org-latex-svg-to-pdf-command and > org-latex-svg-to-pdf-command-options variables to control the conversion > program. I think that rather than inventing something new, we can reuse the existing semantics of `org-latex-pdf-process' and `org-compile-file'. -- 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>