From mboxrd@z Thu Jan 1 00:00:00 1970 From: Garrido Xavier Subject: Using different image format given the export backend Date: Mon, 01 Jul 2013 21:02:43 +0200 Message-ID: <51D1D253.3010808@lal.in2p3.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36279) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UtjN6-0000FD-Cb for emacs-orgmode@gnu.org; Mon, 01 Jul 2013 15:02:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UtjMz-0006Qo-CY for emacs-orgmode@gnu.org; Mon, 01 Jul 2013 15:02:44 -0400 Received: from smtp1.lal.in2p3.fr ([134.158.88.100]:56319) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UtjMz-0006PH-39 for emacs-orgmode@gnu.org; Mon, 01 Jul 2013 15:02:37 -0400 Received: from [192.168.1.41] (60.58.67.86.rev.sfr.net [86.67.58.60]) by smtp1.lal.in2p3.fr (Postfix) with ESMTP id 25F842FC14B for ; Mon, 1 Jul 2013 21:02:35 +0200 (CEST) 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" Dear Orgers, As explain is this forum thread=20 http://stackoverflow.com/questions/13611837/how-can-i-use-different-image= -formats-for-different-exports-in-org-mode,=20 I'd also like to use different image format given the export backend. I=20 have used the answer provided in the forum to have something like that #+CAPTION: Toto figure #+NAME: fig::toto #+ATTR_LATEX: :width 0.38\textwidth #+BEGIN_SRC emacs-lisp :exports results :results value raw (case (and (boundp 'backend) backend) (nil "") (latex "[[file:./toto.pdf]]" (html "[[file:./toto.png]]")) #+END_SRC While the export is fine with html, when I export to latex->pdf, it=20 gives me : \includegraphics[width=3D.9\linewidth]{./toto.pdf} not respecting the latex width attribute nor caption. I am using the new=20 exporter and I wonder if I can get something working in the same way. Thanks a lot for your help, Xavier --=20 | |__ GARRIDO Xavier Laboratoire de l'Acc=E9l=E9rateur Lin=E9a= ire /\ NEMO Universit=E9 Paris-Sud 11 /--\ garrido@lal.in2p3.fr UMR 8607 | garrido@in2p3.fr Batiment 200 |__ +33 1.64.46.84.28 91898 Orsay Cedex, France