From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: pdf images in html export Date: Thu, 13 Nov 2014 09:11:30 +0000 Message-ID: <87389njwhp.fsf@ucl.ac.uk> References: <84tx24x1r6.fsf@tm6592.fritz.box> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34755) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xor2B-0006AY-9O for emacs-orgmode@gnu.org; Thu, 13 Nov 2014 04:49:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xor23-0003d7-Ig for emacs-orgmode@gnu.org; Thu, 13 Nov 2014 04:49:47 -0500 Received: from mail-db3on0142.outbound.protection.outlook.com ([157.55.234.142]:49260 helo=emea01-db3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xor23-0003c2-BJ for emacs-orgmode@gnu.org; Thu, 13 Nov 2014 04:49:39 -0500 In-Reply-To: (Andreas Leha's message of "Wed, 12 Nov 2014 21:32:40 +0000") 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: Andreas Leha Cc: emacs-orgmode@gnu.org On Wednesday, 12 Nov 2014 at 21:32, Andreas Leha wrote: > Hi John, > > John Hendy writes: [...] >> If the names are always the same, could you just sed or replace-regexp >> all *.pdf for *.png? > > I could. And I would need to do the conversion manually as well. > > But I still want the pdfs to go into the LaTeX export. If the conversions have been done, a simple function that changes all occurrences of [[file:xxx.pdf] to [[file:xxx.png] on export can be written and added to org-export-before-processing-hook. This function could also, if you're adventurous, do the conversion if the png isn't there already... That hook passes the export backend so that you will know if you are exporting to LaTeX or HTML. -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.1, Org release_8.3beta-558-g83d8a2