emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: tomas@tuxteam.de
To: Jay Dixit <dixit@aya.yale.edu>
Cc: tomas@tuxteam.de, org-mode <emacs-orgmode@gnu.org>,
	Rasmus <rasmus@gmx.us>
Subject: Re: Per-backend export options?
Date: Thu, 20 Aug 2015 07:43:57 +0200	[thread overview]
Message-ID: <20150820054357.GC23355@tuxteam.de> (raw)
In-Reply-To: <CAGE7GqDcZM38erV6vge9n7_9Vi2=pF84peJaYsOzA4iXxc6ieQ@mail.gmail.com>

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

      reply	other threads:[~2015-08-20  5:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-06  8:58 Per-backend export options? tomas
2015-07-06  9:32 ` Rasmus
2015-07-06 10:07   ` tomas
2015-07-06 14:16   ` tomas
     [not found]     ` <CAE+_6TzaTv0COwEkPrOrB8K_4sTFrU2rT7mxBHjhJ5iRRTPLrA@mail.gmail.com>
2015-08-20  3:45       ` Jay Dixit
2015-08-20  5:43         ` tomas [this message]

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=20150820054357.GC23355@tuxteam.de \
    --to=tomas@tuxteam.de \
    --cc=dixit@aya.yale.edu \
    --cc=emacs-orgmode@gnu.org \
    --cc=rasmus@gmx.us \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).