emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Escape individual underscore?
Date: Tue, 03 Mar 2015 15:53:34 -0500	[thread overview]
Message-ID: <87lhjddcq9.fsf@alphaville.usersys.redhat.com> (raw)
In-Reply-To: CAA6UvuEbO3XiutC1w=UdUTbKXdTmXTKVirfeOGWVsY6t8rByFg@mail.gmail.com

Jacob Gerlach <jacobgerlach@gmail.com> writes:

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

I don't think so.

FWIW, I always set

#+OPTIONS: ^:{}

in my files. That allows me to use a_b  for the majority of my use
cases, but still allows {subscripts} in the rare cases when I need them.

I'm not sure how useful it would be but maybe there should be a setting
to accommodate the inverse case: mostly subscripts a_b but allow literal
underscores using some additional markup.

Nick

  reply	other threads:[~2015-03-03 20:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-03 20:08 Escape individual underscore? Jacob Gerlach
2015-03-03 20:53 ` Nick Dokos [this message]
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

  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=87lhjddcq9.fsf@alphaville.usersys.redhat.com \
    --to=ndokos@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).