[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Per-backend export options?
From: |
tomas |
Subject: |
Re: [O] Per-backend export options? |
Date: |
Thu, 20 Aug 2015 07:43:57 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wed, Aug 19, 2015 at 11:45:37PM -0400, Jay Dixit wrote:
> 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)
Thanks!
this one has the charm of being a more centralized solution.
While the macro thingie does the trick for me (for now), I'll give
it a try.
Regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAlXVaR0ACgkQBcgs9XrR2kaBCgCeJnYBnUtZmYI9mt7hsKLaPsuv
n50An3o03vZWGIihXhQfM8/e6WFeb5AA
=UY8i
-----END PGP SIGNATURE-----