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

2013-01-27 Thread Nicolas Goaziou
Hello, Jambunathan K writes: > Nicolas Goaziou writes: > >> Jambunathan K writes: >> >>> Nicolas Goaziou 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-a

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".

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

2013-01-25 Thread cberry
Nicolas Goaziou writes: > Hello, > > Ezequiel Birman 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-back

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

2013-01-25 Thread Nicolas Goaziou
Hello, 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-back

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

2013-01-24 Thread Andreas Leha
Hi Nicolas, Nicolas Goaziou writes: > Hello, > > Ezequiel Birman 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

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

2013-01-20 Thread Jambunathan K
Nicolas Goaziou writes: > Jambunathan K writes: > >> Nicolas Goaziou 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

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

2013-01-20 Thread Nicolas Goaziou
Jambunathan K writes: > Nicolas Goaziou 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-

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

2013-01-19 Thread Jambunathan K
Nicolas Goaziou 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 different list, at

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

2013-01-19 Thread Ezequiel Birman
> "Nicolas" == Nicolas Goaziou writes: > Hello, Ezequiel Birman 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")

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

2013-01-19 Thread Nicolas Goaziou
Hello, Ezequiel Birman 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 exporter. Besides, what

[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.