From: James Harkins <jamshark70@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Buffer-specific export filter?
Date: Wed, 21 Aug 2013 01:27:43 +0000 (UTC) [thread overview]
Message-ID: <loom.20130821T032624-819@post.gmane.org> (raw)
In-Reply-To: 20130820130202.GC19436@kuru.dyndns-at-home.com
Suvayu Ali <fatkasuvayu+linux <at> gmail.com> writes:
> 1. Is it possible to set filters as buffer local? Okay the help string
> says: "This variable may be risky if used as a file-local variable.",
> so I guess the answer is no.
>
> 2. Otherwise you could have used a lisp source block in the buffer. You
> could still do that, just add a conditional that checks for the
> buffer name. This way modifying a global filter would still affect
> current buffer export.
I see... that seems awkward. Maybe a valid feature request.
But maybe there's a better solution for my specific case. The problem is
that I'm using the colloquial <<'em>> for "them." The preceding space causes
org to export this as `em. Normally a single quote after a space would
correctly be an opening single quote, but here it's for a contraction and
should be an apostrophe.
Possible solutions:
- Use a LaTeX \specialCharName, if it exists. I couldn't find anything like
this. All the LaTeX documentation says to use '.
- Hacky approach which I tried last night: Define a filter to turn "<>" into
a non-breaking space "~"; then org doesn't treat it as an opening single quote.
- Better approach which I just thought of: Define a filter recognizing
<<'em>> as a special case, which I could also extend for other special cases
later.
Related question: If I wanted to force a non-breaking space in LaTeX export,
how would I do that without a filter? ~ exports, reasonably, as \textasciitilde.
hjh
next prev parent reply other threads:[~2013-08-21 1:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-20 11:45 Buffer-specific export filter? James Harkins
2013-08-20 13:02 ` Suvayu Ali
2013-08-20 13:56 ` Eric Abrahamsen
2013-08-21 1:27 ` James Harkins [this message]
2013-08-21 7:41 ` Nicolas Goaziou
2013-08-21 9:45 ` James Harkins
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=loom.20130821T032624-819@post.gmane.org \
--to=jamshark70@gmail.com \
--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 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).