From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Re: meaning for _ (and perhaps ^) temporalily changed Date: Wed, 12 Dec 2018 13:55:10 -0500 Message-ID: References: <87va41eko6.fsf@odin.troja.mff.cuni.cz> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37789) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gX9fi-0005c0-V6 for emacs-orgmode@gnu.org; Wed, 12 Dec 2018 13:55:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gX9fi-0000u5-7G for emacs-orgmode@gnu.org; Wed, 12 Dec 2018 13:55:50 -0500 Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]:35515) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gX9fg-0000sp-Vl for emacs-orgmode@gnu.org; Wed, 12 Dec 2018 13:55:49 -0500 Received: by mail-lj1-x233.google.com with SMTP id x85-v6so17259520ljb.2 for ; Wed, 12 Dec 2018 10:55:48 -0800 (PST) In-Reply-To: <87va41eko6.fsf@odin.troja.mff.cuni.cz> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: rsykora@disroot.org Cc: emacs-org list On Mon, Dec 10, 2018 at 5:34 AM Rudolf Sykora 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: =E2=80=98^=E2=80=99 Toggle TeX-like syntax for sub- and superscripts. If you write =E2=80=98^:{}=E2=80=99, =E2=80=98a_{b}=E2=80=99 is interpreted, but th= e simple =E2=80=98a_b=E2=80=99 is left as it is (=E2=80=98org-export-with-sub-superscripts=E2=80=99).