From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jacob Gerlach Subject: Escape individual underscore? Date: Tue, 03 Mar 2015 20:08:30 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113535060d3498051067e6a5 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49093) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSt7J-0006yC-D7 for emacs-orgmode@gnu.org; Tue, 03 Mar 2015 15:08:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YSt7I-0006cr-6R for emacs-orgmode@gnu.org; Tue, 03 Mar 2015 15:08:33 -0500 Received: from mail-qc0-x234.google.com ([2607:f8b0:400d:c01::234]:33884) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSt7H-0006cO-Vt for emacs-orgmode@gnu.org; Tue, 03 Mar 2015 15:08:32 -0500 Received: by qcwr17 with SMTP id r17so32461415qcw.1 for ; Tue, 03 Mar 2015 12:08:30 -0800 (PST) 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org-mode --001a113535060d3498051067e6a5 Content-Type: text/plain; charset=UTF-8 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? 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 --001a113535060d3498051067e6a5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi List,

I want to include a literal un= derscore in LaTeX export, like FOO_BAR. Right now I get:
FOO$_{\t= ext{BAR}}$

Contrary to this stackexchange question, if I try to e= scape the underscore with a backslash, I get:
FOO$\backslash$$_{\= text{BAR}}

I've found that I can set=C2=A0org-ex= port-with-sub-superscripts to "{}" to avoid this problem, but I&#= 39;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' t= o
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<= /div>
--001a113535060d3498051067e6a5--