emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Switch for exported file types when evaluating code blocks


From: Cook, Malcolm
Subject: Re: [O] Switch for exported file types when evaluating code blocks
Date: Fri, 19 Jul 2013 15:19:25 +0000

Suvayu,

This is splendid news!  I will try it immediately upon return from "gone 
fishin" in a week...

 (erhm, that is, right after I figure out haw to migrate my orgmode SETUPFILE 
to comport with new export backend I just upgraded to.... my fancy TOC and 
org-export-html-table-tag javascript have "gone missin")

Future is looking bright!,

~ address@hidden

________________________________________
From: address@hidden address@hidden on behalf of Suvayu Ali address@hidden
Sent: Friday, July 19, 2013 5:23 AM
To: address@hidden
Subject: Re: [O] Switch for exported file types when evaluating code blocks

On Thu, Jul 18, 2013 at 09:02:41PM -0400, Nick Dokos wrote:
>
> #+BEGIN_LaTeX
> \includesvg{foo}
> #+END_LaTeX

I believe even this can be integrated with Org using a filter.  How
about something like this:

(defun my-svg-graphics (contents backend info)
  (when (eq backend 'latex)
    (replace-regexp-in-string "\\`\\\\includegraphics.+\\({.+\.svg}\\)"
       "\\\\includesvg\1" contents)))

(add-to-list 'org-export-filter-link-functions 'my-svg-graphics)

Of course the above ignores the options since I do not know if
\includesvg takes the same options.  But that is a detail that can be
fixed by changing the regexp.

What do you think?


--
Suvayu

Open source is the future. It sets us free.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]