From: Jacob Gerlach <jacobgerlach@gmail.com>
To: Org-mode <emacs-orgmode@gnu.org>
Subject: Escape individual underscore?
Date: Tue, 03 Mar 2015 20:08:30 +0000 [thread overview]
Message-ID: <CAA6UvuEbO3XiutC1w=UdUTbKXdTmXTKVirfeOGWVsY6t8rByFg@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 884 bytes --]
Hi List,
I want to include a literal underscore in LaTeX export, like FOO_BAR. Right
now I get:
FOO$_{\text{BAR}}$
Contrary to this stackexchange question
<http://stackoverflow.com/a/12753930/3371623>, if I try to escape the
underscore with a backslash, I get:
FOO$\backslash$$_{\text{BAR}}
I've found that I can set org-export-with-sub-superscripts to "{}" to avoid
this problem, but I'd rather escape individual underscores on a case by
case basis. Is this possible?
As an aside, section 11.7.2 of the org info says "Configure the variable
`org-use-sub-superscripts' to
change this convention." Fortunately the docstring for
org-use-sub-superscripts points out that display and export functionality
are now controlled by separate variables. I would propose a patch to update
the info to clarify that two variables are used, but I'm not currently set
up to do so.
Regards,
Jake
[-- Attachment #2: Type: text/html, Size: 1130 bytes --]
next reply other threads:[~2015-03-03 20:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-03 20:08 Jacob Gerlach [this message]
2015-03-03 20:53 ` Escape individual underscore? Nick Dokos
2015-03-03 21:02 ` Nicolas Goaziou
2015-03-04 9:27 ` Sebastien Vauban
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='CAA6UvuEbO3XiutC1w=UdUTbKXdTmXTKVirfeOGWVsY6t8rByFg@mail.gmail.com' \
--to=jacobgerlach@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 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.