Hello,
I once tried to create a filter (is that the name?) to modify the
function which exports SVG files. Verdict: I suck! Thus, I keep
modifying the ox-latex.el every time that I upgrade (see attached).
Would someone please tell me what is the right way to achieve that
(without modifying the code, please? Thanks!
-------------------------------------------------
ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the
NSA's hands!
$24.95 ONETIME Lifetime accounts with Privacy Features!
15GB disk! No bandwidth quotas!
Commercial and Bulk Mail Options!
*** org-20180103/ox-latex.el 2018-01-07 16:53:43.477464348 -0700
--- plugins/ox-latex.el 2018-01-07 16:39:52.117462098 -0700
***************
*** 2425,2434 ****
(t (format "[%s]" options)))
path))
(when (equal filetype "svg")
! (setq image-code (replace-regexp-in-string "^\\\\includegraphics"
! "\\includesvg"
! image-code
! nil t))
(setq image-code (replace-regexp-in-string "\\.svg}"
"}"
image-code
--- 2425,2437 ----
(t (format "[%s]" options)))
path))
(when (equal filetype "svg")
! (setq image-code
! (format "\\simplesvg%s{%s}"
! (cond ((not (org-string-nw-p options)) "")
! ((string-prefix-p "," options)
! (format "{%s}" (substring options 1)))
! (t (format "{%s}" options)))
! path))
(setq image-code (replace-regexp-in-string "\\.svg}"
"}"
image-code