Org-mode mailing list
 help / color / mirror / Atom feed
From: Nicolas Goaziou <>
To: Andreas Leha <>
Subject: Re: new exporter, conditional options according to backend
Date: Fri, 25 Jan 2013 14:23:41 +0100
Message-ID: <> (raw)
In-Reply-To: <> (Andreas Leha's message of "Thu, 24 Jan 2013 21:32:52 +0100")


Andreas Leha <> writes:

> Sorry for hijacking this thread.  But I am also interested in backend
> specific options.  Could you give an example of how to achieve something
> like this with the new exporter:
> #+begin_src R :results graphics :file (if (and (boundp 'org-export-current-backend) (eq org-export-current-backend 'e-latex)) "foo.pdf" "foo.png")
>   plot(1:10)
> #+end_src

You need to process the buffer being exported before Babel blocks are
expanded. You could use `org-export-before-processing-hook' for that.

For example, you could define a specific extension for :file values,
like "", process the buffer and and replace "xxx" with an
appropriate extension according to the current back-end (the argument of
the function).


Nicolas Goaziou

  reply	other threads:[~2013-01-25 13:24 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-18 15:47 Ezequiel Birman
2013-01-19 22:48 ` Nicolas Goaziou
2013-01-20  4:38   ` Ezequiel Birman
2013-01-20  5:35   ` Jambunathan K
2013-01-20  9:28     ` Nicolas Goaziou
2013-01-20 16:22       ` Jambunathan K
2013-01-28  7:12         ` Nicolas Goaziou
2013-01-24 20:32   ` Andreas Leha
2013-01-25 13:23     ` Nicolas Goaziou [this message]
2013-01-25 17:37   ` cberry
2013-01-25 17:50     ` Nicolas Goaziou

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:

  List information:

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

  git send-email \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Org-mode mailing list

This inbox may be cloned and mirrored by anyone:

	git clone --mirror list/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 list list/ \
	public-inbox-index list

Example config snippet for mirrors.
Newsgroups are available over NNTP:

AGPL code for this site: git clone