emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Per-backend export options?


From: Jay Dixit
Subject: Re: [O] Per-backend export options?
Date: Wed, 19 Aug 2015 23:45:37 -0400

I do something similar to change export options between HTML and LaTeX:

(defun my-org-export-change-options (plist backend)
  (cond
   ((equal backend 'html)
    (plist-put plist :with-toc nil)
    (plist-put plist :section-numbers nil))
   ((equal backend 'latex)
    (plist-put plist :with-toc t)
    (plist-put plist :section-numbers t)))
  plist)
(add-to-list 'org-export-filter-options-functions 'my-org-export-change-options)



---
Jay Dixit 
(646) 355-8001
Jay Dixit


On Mon, Jul 6, 2015 at 10:16 AM, <address@hidden> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, Jul 06, 2015 at 11:32:21AM +0200, Rasmus wrote:
[...]
> I'd use a macro for this.  E.g.

Works like a charm now :-)

- -- t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlWaja4ACgkQBcgs9XrR2kaEzgCfbM0McF+Yi3sR1prWI8ix1cpu
pTIAn0PQumh5sUJmE4UBQm9OFd8Nc/CV
=z5tl
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]