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

[-- Attachment #1: Type: text/plain, Size: 962 bytes --]

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
jaydixit.com
(646) 355-8001
Jay Dixit


On Mon, Jul 6, 2015 at 10:16 AM, <tomas@tuxteam.de> 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-----
>
>
>

[-- Attachment #2: Type: text/html, Size: 2628 bytes --]

  parent reply	other threads:[~2015-08-20  3:46 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 [this message]
2015-08-20  5:43         ` tomas

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='CAGE7GqDcZM38erV6vge9n7_9Vi2=pF84peJaYsOzA4iXxc6ieQ@mail.gmail.com' \
    --to=dixit@aya.yale.edu \
    --cc=emacs-orgmode@gnu.org \
    --cc=rasmus@gmx.us \
    --cc=tomas@tuxteam.de \
    /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).