Re: [O] new exporter, conditional options according to backend

2013-01-27 Thread Nicolas Goaziou
Hello, Jambunathan K kjambunat...@gmail.com writes: Nicolas Goaziou n.goaz...@gmail.com writes: Jambunathan K kjambunat...@gmail.com writes: Nicolas Goaziou n.goaz...@gmail.com writes: #+begin_src emacs-lisp (defun my-options-change-fun (tree backend info) (when

Re: [O] new exporter, conditional options according to backend

2013-01-25 Thread Nicolas Goaziou
Hello, Andreas Leha andreas.l...@med.uni-goettingen.de 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

Re: [O] new exporter, conditional options according to backend

2013-01-25 Thread cberry
Nicolas Goaziou n.goaz...@gmail.com writes: Hello, Ezequiel Birman stormwa...@espiga4.com.ar writes: Is it possible to write something like this with the new exporter? #+OPTIONS: (if (and (boundp 'org-export-current-backend) (eq org-export-current-backend 'e-beamer)) H:1 H:3) There is

Re: [O] new exporter, conditional options according to backend

2013-01-25 Thread Nicolas Goaziou
Hello, cbe...@tajo.ucsd.edu writes: 'backend' is in the scope of transcoding functions like inline-src-block. I am currently taking advantage of this, but it is a shortcut rather than a necessity. Is your advice Don't do that ? I would rather say Don't do that in public code. There's no

Re: [O] new exporter, conditional options according to backend

2013-01-24 Thread Andreas Leha
Hi Nicolas, Nicolas Goaziou n.goaz...@gmail.com writes: Hello, Ezequiel Birman stormwa...@espiga4.com.ar writes: Is it possible to write something like this with the new exporter? #+OPTIONS: (if (and (boundp 'org-export-current-backend) (eq org-export-current-backend 'e-beamer)) H:1

Re: [O] new exporter, conditional options according to backend

2013-01-20 Thread Nicolas Goaziou
Jambunathan K kjambunat...@gmail.com writes: Nicolas Goaziou n.goaz...@gmail.com writes: #+begin_src emacs-lisp (defun my-options-change-fun (tree backend info) (when (org-export-derived-backend-p backend 'e-beamer) (plist-put info :with-author nil)) ;; Don't forget to return tree.

Re: [O] new exporter, conditional options according to backend

2013-01-20 Thread Jambunathan K
Nicolas Goaziou n.goaz...@gmail.com writes: Jambunathan K kjambunat...@gmail.com writes: Nicolas Goaziou n.goaz...@gmail.com writes: #+begin_src emacs-lisp (defun my-options-change-fun (tree backend info) (when (org-export-derived-backend-p backend 'e-beamer) (plist-put info

Re: [O] new exporter, conditional options according to backend

2013-01-19 Thread Nicolas Goaziou
Hello, Ezequiel Birman stormwa...@espiga4.com.ar writes: Is it possible to write something like this with the new exporter? #+OPTIONS: (if (and (boundp 'org-export-current-backend) (eq org-export-current-backend 'e-beamer)) H:1 H:3) There is no `org-export-current-backend' in the new

Re: [O] new exporter, conditional options according to backend

2013-01-19 Thread Ezequiel Birman
Nicolas == Nicolas Goaziou n.goaz...@gmail.com writes: Hello, Ezequiel Birman stormwa...@espiga4.com.ar writes: Is it possible to write something like this with the new exporter? #+OPTIONS: (if (and (boundp 'org-export-current-backend) (eq

Re: [O] new exporter, conditional options according to backend

2013-01-19 Thread Jambunathan K
Nicolas Goaziou n.goaz...@gmail.com writes: #+begin_src emacs-lisp (defun my-options-change-fun (tree backend info) (when (org-export-derived-backend-p backend 'e-beamer) (plist-put info :with-author nil)) ;; Don't forget to return tree. tree) CAVEAT: plist-put can return a

[O] new exporter, conditional options according to backend

2013-01-18 Thread Ezequiel Birman
Is it possible to write something like this with the new exporter? #+OPTIONS: (if (and (boundp 'org-export-current-backend) (eq org-export-current-backend 'e-beamer)) H:1 H:3) From what I read in org-export.el the backend is stored in a plist, not sure how to get it's value when exporting. Or,