From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: File-local export filters
Date: Mon, 23 Sep 2013 11:19:59 +0200 [thread overview]
Message-ID: <87pprzuc74.fsf@gmx.us> (raw)
In-Reply-To: 4D2D5EF0-F2CD-4B54-8562-488E43824596@gmail.com
Hi Carsten,
Carsten Dominik <carsten.dominik@gmail.com> writes:
> Have I overlooked an easy way to do this, or would this be
> something others would like to use as well.
Can't you identify it by the folder name? Or with a
special #+DESCRIPTION or #+KEYWORDS?
Like this:
#+TITLE: MySpecialFile.org
#+begin_src emacs-lisp
(defun rasmus/match-buffer (text backend info)
"Match only some buffers identified by "
(if (and
(string-match "MySpecialFile" (plist-get info :input-file))
(org-export-derived-backend-p backend 'latex))
"Match!" text))
(add-to-list 'org-export-filter-final-output-functions
'rasmus/match-buffer)
#+end_src
Otherwise I'd also bind the value locally and maintain the code in a
SETUPFILE or in a * lisp :noexport: heading.
–Rasmus
--
I almost cut my hair, it happened just the other day
prev parent reply other threads:[~2013-09-23 9:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-21 11:19 File-local export filters Carsten Dominik
2013-09-21 11:45 ` Nicolas Goaziou
2013-09-21 12:14 ` Carsten Dominik
2013-09-21 12:44 ` Nicolas Goaziou
2013-09-21 12:54 ` Carsten Dominik
2013-09-21 22:16 ` Summary: " Carsten Dominik
2013-09-23 9:19 ` Rasmus [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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pprzuc74.fsf@gmx.us \
--to=rasmus@gmx.us \
--cc=emacs-orgmode@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.