From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: Switch for exported file types when evaluating code blocks Date: Thu, 18 Jul 2013 04:02:06 +0200 Message-ID: <20130718020206.GB24529@kuru.dyndns-at-home.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45714) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzdXr-00062J-JS for emacs-orgmode@gnu.org; Wed, 17 Jul 2013 22:02:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UzdXo-0005od-3c for emacs-orgmode@gnu.org; Wed, 17 Jul 2013 22:02:15 -0400 Received: from mail-wg0-x22f.google.com ([2a00:1450:400c:c00::22f]:63140) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzdXn-0005oT-UA for emacs-orgmode@gnu.org; Wed, 17 Jul 2013 22:02:12 -0400 Received: by mail-wg0-f47.google.com with SMTP id l18so2361334wgh.26 for ; Wed, 17 Jul 2013 19:02:11 -0700 (PDT) Received: from kuru.dyndns-at-home.com (sd44012d5.adsl.online.nl. [212.64.18.213]) by mx.google.com with ESMTPSA id a6sm13310662wib.10.2013.07.17.19.02.09 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 17 Jul 2013 19:02:10 -0700 (PDT) Content-Disposition: inline In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hello again Malcolm, On Thu, Jul 18, 2013 at 12:45:36AM +0000, 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 going to be. > > I think I need an approach that auto converts svg to png on-demand/on-the-fly during export. In that case just use another source block with shell source. In that block you can call inkscape to do the conversion. For an example, see here: Hope this helps, -- Suvayu Open source is the future. It sets us free.