all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Garrido Xavier <garrido@lal.in2p3.fr>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Using different image format given the export backend
Date: Mon, 01 Jul 2013 21:02:43 +0200	[thread overview]
Message-ID: <51D1D253.3010808@lal.in2p3.fr> (raw)

Dear Orgers,

As explain is this forum thread 
http://stackoverflow.com/questions/13611837/how-can-i-use-different-image-formats-for-different-exports-in-org-mode, 
I'd also like to use different image format given the export backend. I 
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 
gives me :

\includegraphics[width=.9\linewidth]{./toto.pdf}

not respecting the latex width attribute nor caption. I am using the new 
exporter and I wonder if I can get something working in the same way.

Thanks a lot for your help,
Xavier
-- 

   |
   |__     GARRIDO Xavier       Laboratoire de l'Accélérateur Linéaire
    /\     NEMO                 Université Paris-Sud 11
   /--\    garrido@lal.in2p3.fr UMR 8607
   |       garrido@in2p3.fr     Batiment 200
   |__     +33 1.64.46.84.28    91898 Orsay Cedex, France

             reply	other threads:[~2013-07-01 19:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-01 19:02 Garrido Xavier [this message]
2013-07-01 19:22 ` Using different image format given the export backend Vincent Beffara
2013-07-02  6:39   ` Xavier Garrido

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51D1D253.3010808@lal.in2p3.fr \
    --to=garrido@lal.in2p3.fr \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.