From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: Choosing image format according to export backend Date: Fri, 9 Aug 2013 12:26:40 +0200 Message-ID: <20130809102640.GB2576@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]:52337) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7juE-0005W2-3y for emacs-orgmode@gnu.org; Fri, 09 Aug 2013 06:26:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V7juA-0000X1-ND for emacs-orgmode@gnu.org; Fri, 09 Aug 2013 06:26:50 -0400 Received: from mail-ea0-x231.google.com ([2a00:1450:4013:c01::231]:50746) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7juA-0000Wi-Hg for emacs-orgmode@gnu.org; Fri, 09 Aug 2013 06:26:46 -0400 Received: by mail-ea0-f177.google.com with SMTP id f15so1936401eak.36 for ; Fri, 09 Aug 2013 03:26:44 -0700 (PDT) Received: from kuru.dyndns-at-home.com ([2001:610:120:3001:f2de:f1ff:fe37:c76c]) by mx.google.com with ESMTPSA id k7sm27418358eeg.13.2013.08.09.03.26.42 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 09 Aug 2013 03:26:43 -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 On Fri, Aug 09, 2013 at 11:49:48AM +0200, Carsten Dominik wrote: > > On 15.5.2013, at 22:21, John Hendy wrote: > > > On Wed, May 15, 2013 at 12:38 PM, Vincent Beffara wrote: > >> Dear list, > >> > >> I would like to have the same org file export to both PDF (through > >> LaTeX) and HTML. The problem I have is images: for printing, PDF images > >> would be best but for display in a browser, it is much better to have a > >> PNG file rather than a link to the PDF. So what I need is for the > >> exporter to choose the image differently according to the backend. > > > > I know this is more of a request for coding help, but just wanted to > > add my vote that this would be great. I don't use html *that* much, > > but having the option would be awesome, and the replacement of all > > *.pdf links with *.png (and typically re-running R code to generate > > .png version, or running imagemagick on the dir to create them) is > > typically too much of a barrier so I just stick with PDF/Beamer. > > > > I'd love something like this. > > I think this should be possible using filters in the exporter. I posted a similar example recently. -- Suvayu Open source is the future. It sets us free.