emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: rsykora@disroot.org
Cc: emacs-org list <emacs-orgmode@gnu.org>
Subject: Re: meaning for _ (and perhaps ^) temporalily changed
Date: Wed, 12 Dec 2018 13:55:10 -0500	[thread overview]
Message-ID: <CAFyQvY284__Ow+0RMHTLiEmH9wNMokJjZ30PWnXXNfQgs-aaqA@mail.gmail.com> (raw)
In-Reply-To: <87va41eko6.fsf@odin.troja.mff.cuni.cz>

On Mon, Dec 10, 2018 at 5:34 AM Rudolf Sykora <rsykora@disroot.org> wrote:
>
> Dear list,
>
> is there a way to *temporalily* disable the default interpretation
> of _ as a subscript?
>
> I use filenames which include _ , while I have
> many other places where I want the default behaviour
> (I don't want to rewrite these with explicit {} and changing
> org-use-sub-superscripts variable to {}).

If you set this in your Emacs config:

(setq org-export-with-sub-superscripts '{})

The subscripts and superscripts will be parsed only when the
to-be-subscripted/superscripted is enclosed in _{..} and ^{..}
respectively.

If you don't want to set this option globally,add this to the top of
your Org file:

#+options: ^:{}

From Org manual (org) Export Settings:

‘^’
     Toggle TeX-like syntax for sub- and superscripts.  If you write
     ‘^:{}’, ‘a_{b}’ is interpreted, but the simple ‘a_b’ is left as it
     is (‘org-export-with-sub-superscripts’).

      parent reply	other threads:[~2018-12-12 18:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-10 10:32 meaning for _ (and perhaps ^) temporalily changed Rudolf Sykora
2018-12-10 17:54 ` Julius Dittmar
2019-02-04  9:15   ` Rudolf Sykora
2018-12-12 18:55 ` Kaushal Modi [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

  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=CAFyQvY284__Ow+0RMHTLiEmH9wNMokJjZ30PWnXXNfQgs-aaqA@mail.gmail.com \
    --to=kaushal.modi@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=rsykora@disroot.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).