From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Escaping an underscore in LaTeX export Date: Tue, 27 Aug 2013 17:48:09 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55574) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VES3e-0001Dh-Ep for emacs-orgmode@gnu.org; Tue, 27 Aug 2013 18:48:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VES3d-0001ND-J1 for emacs-orgmode@gnu.org; Tue, 27 Aug 2013 18:48:18 -0400 Received: from mail-ob0-x236.google.com ([2607:f8b0:4003:c01::236]:40760) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VES3d-0001N6-Dk for emacs-orgmode@gnu.org; Tue, 27 Aug 2013 18:48:17 -0400 Received: by mail-ob0-f182.google.com with SMTP id wo10so5806339obc.41 for ; Tue, 27 Aug 2013 15:48:09 -0700 (PDT) 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: emacs-orgmode 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 If this is the best/only way, that's okay. However, if others believe that it should be passed through as \_ to LaTeX, perhaps that's the best way? After all, just passing along _ works to subscript whenever and wherever with my tex:t and latex:t options... perhaps escaping it should also work? An analog might be the use of \$, which escapes the dollar sign and passes it through to appear as a dollar sign in the final document. I suppose I'd make the case that if that's interpreted to be escaping (vs. converting it to $\backslash$$), then perhaps escaping an underscore should be treated the same. Fringe use that I just stumbled on and isn't a critical issue, but I thought I'd mention it.