From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Escaping an underscore in LaTeX export Date: Fri, 30 Aug 2013 21:49:37 -0500 Message-ID: References: <87k3j6pvyr.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36754) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VFbFs-0006pb-3n for emacs-orgmode@gnu.org; Fri, 30 Aug 2013 22:49:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VFbFr-0001Au-DI for emacs-orgmode@gnu.org; Fri, 30 Aug 2013 22:49:40 -0400 Received: from mail-oa0-x230.google.com ([2607:f8b0:4003:c02::230]:55006) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VFbFr-0001Al-7j for emacs-orgmode@gnu.org; Fri, 30 Aug 2013 22:49:39 -0400 Received: by mail-oa0-f48.google.com with SMTP id o17so3125956oag.7 for ; Fri, 30 Aug 2013 19:49:37 -0700 (PDT) In-Reply-To: <87k3j6pvyr.fsf@gmail.com> 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: Nicolas Goaziou Cc: emacs-orgmode On Tue, Aug 27, 2013 at 6:14 PM, Nicolas Goaziou wrote: > Hello, > > John Hendy writes: > >> LaTeX recommends \_ as an "escaped" underscore. In other words, >> "really use the underscore, not a subscript." When I do this in >> Org-mode and export via =C-e l p=, I don't get that behavior. >> >> Here's my options header: >> >> #+OPTIONS: *:t TeX:t LaTeX:t >> >> a\_b -> a$\backslash$$_{\text{b}}$ >> a$\_$b -> a\$\_\$b >> a $\_$ b -> a $\_$ b >> >> What *does* work, is this: >> >> a\(\_\)b -> a\_b > > You can use the entity : \under{}, e.g. > > a\under{}b > > or limit subscript to _{...} constructs., e.g., > > #+options: ^:{} > a_b I'll look into this. I probably should have sooner, and it wouldn't bother me *that* much to have to specify underscore and superscript LaTeX entities with {} vs. having them picked up automatically. Thanks for the tip! John > > > Regards, > > -- > Nicolas Goaziou