[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] parameterizing keyword values during a #+call
From: |
Greg Minshall |
Subject: |
Re: [O] parameterizing keyword values during a #+call |
Date: |
Fri, 26 Apr 2013 07:46:11 -0400 |
Eric,
thanks!
> Something like the following should work.
>
> #+call: disc[:file (if (and (boundp org-export-current-backend) (equal
> org-export-current-backend 'html)) "foo.svg" "foo.tex")]() :results file
in fact, with the new exporter, org-export-current-backend has
bit the dust, but apparently the non-architected "backend" exists. the
following works great!!
----
#+call: discs[:file (if (and (boundp 'backend) (equal backend 'html)) "fox.svg"
"fox.pdf")]() :results file
----
(note the tick in the (boundp 'backend)).
now to wedge it into some init code.
cheers, Greg