From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniele Pizzolli Subject: buggy subscripts and superscripts escape with latex export Date: Sun, 06 Oct 2013 13:50:36 +0200 Message-ID: <52514E8C.3070906@toel.it> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37719) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VSmrM-0007GZ-HQ for emacs-orgmode@gnu.org; Sun, 06 Oct 2013 07:51:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VSmrE-0007Wu-Oy for emacs-orgmode@gnu.org; Sun, 06 Oct 2013 07:50:52 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:44674) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VSmrE-0007Qr-IV for emacs-orgmode@gnu.org; Sun, 06 Oct 2013 07:50:44 -0400 Received: from mfilter17-d.gandi.net (mfilter17-d.gandi.net [217.70.178.145]) by relay3-d.mail.gandi.net (Postfix) with ESMTP id 9C226A8088 for ; Sun, 6 Oct 2013 13:50:39 +0200 (CEST) Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by mfilter17-d.gandi.net (mfilter17-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id eK7VFnm5dk1z for ; Sun, 6 Oct 2013 13:50:37 +0200 (CEST) Received: from [10.0.0.211] (host159-38-static.38-79-b.business.telecomitalia.it [79.38.38.159]) (Authenticated sender: me@toel.it) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id A8F92A80B9 for ; Sun, 6 Oct 2013 13:50:37 +0200 (CEST) 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 Hello all, my original problem was how to get "a_b" exported literal using the latex exporter. I explored a bit the sub/superscript options and I think that there are some buggy behaviors. The following code: * test - subscript a_b - subscript escaped a\_b - superscript a^b - superscript escaped a\^b Will produce with Org-mode version 7.9.4: \begin{itemize} \item subscript a$_b$ \item subscript escaped a\_b \item superscript a$^b$ \item superscript escaped a\^b \end{itemize} And will produce with Org-mode version 8.2.1 (release_8.2.1-75-g45d81d ...) \begin{itemize} \item subscript a$_{\text{b}}$ \item subscript escaped a$\backslash$$_{\text{b}}$ \item superscript a$^{\text{b}}$ \item superscript escaped a$\backslash$$^{\text{b}}$ \end{itemize} According to the manual http://orgmode.org/manual/Subscripts-and-superscripts.html#Subscripts-and-superscripts - The subscript escape is working correctly in 7.9.4 - The subscript escape is not working correctly in 8.2.1 - The superscript escape is not working correctly in 8.2.1. - I do think that superscript escape is not working correctly in 7.9.4. It produces something like a LATIN SMALL LETTER B WITH CIRCUMFLEX instead of the expected b with "^" before. I did not have any success following the suggestion in the manual, eg: (setq org-use-sub-superscripts "{}") But at the end writing: #+OPTIONS: ^:{} and a plain "a_b" solved the issue for me. Regards, Daniele