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

2013-07-19 Thread Cook, Malcolm
riday, July 19, 2013 5:23 AM To: emacs-orgmode@gnu.org 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 wit

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

2013-07-19 Thread Cook, Malcolm
, July 18, 2013 8:02 PM To: emacs-orgmode@gnu.org Subject: Re: [O] Switch for exported file types when evaluating code blocks "Cook, Malcolm" writes: > Hi Nick, I'm not sure how to use this ctan package in concert with > orgmode's export to tex->pdf. > Here's a

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

2013-07-19 Thread Suvayu Ali
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-re

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

2013-07-18 Thread Nick Dokos
-- > >From: emacs-orgmode-bounces+mec=stowers@gnu.org > [mailto:emacs-orgmode-bounces+mec=stowers@gnu.org] On > >Behalf Of Nick Dokos > >Sent: Wednesday, July 17, 2013 11:02 PM > >To: emacs-orgmode@gnu.org > >Subject: Re: [O] Switch for exported file types wh

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

2013-07-18 Thread Cook, Malcolm
ge- >From: emacs-orgmode-bounces+mec=stowers@gnu.org >[mailto:emacs-orgmode-bounces+mec=stowers@gnu.org] On >Behalf Of Nick Dokos >Sent: Wednesday, July 17, 2013 11:02 PM >To: emacs-orgmode@gnu.org >Subject: Re: [O] Switch for exported file types when evaluat

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

2013-07-17 Thread Nick Dokos
Suvayu Ali writes: > Hello again Malcolm, > > On Thu, Jul 18, 2013 at 12:45:36AM +, Cook, Malcolm wrote: >> >> I tend to work with org-export-babel-evaluate set to nil. Thus, my >> code blocks are not evaled in the context of an export. Thus at >> eval time there is no way of knowing what

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

2013-07-17 Thread Suvayu Ali
Hello again Malcolm, On Thu, Jul 18, 2013 at 12:45:36AM +, Cook, Malcolm wrote: > > I tend to work with org-export-babel-evaluate set to nil. Thus, my code > blocks are not evaled in the context of an export. Thus at eval time there > is no way of knowing what the eventual backend is goin

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

2013-07-17 Thread Cook, Malcolm
>I want graphics files which are exported by evaluated code blocks to be >generated in a format best suited to their intended use. For HTML I >want either PNG or SVG. For LaTeX/PDF I almost always want PDF. For >inline viewing in emacs I want either PNG or SVG. > >To that end I went a'googl

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

2013-07-17 Thread Brett Viren
Hi, I'm hitting on an old theme in a new way here. I want graphics files which are exported by evaluated code blocks to be generated in a format best suited to their intended use. For HTML I want either PNG or SVG. For LaTeX/PDF I almost always want PDF. For inline viewing in emacs I want ei