From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Multiple underscores crash org latex export; other exporters survive Date: Wed, 07 Dec 2016 12:21:39 +0100 Message-ID: <87fum0htmk.fsf@nicolasgoaziou.fr> References: <49b70a0c-f81b-660b-e2f5-9921ab488d65@gmail.com> <50e77033-c13c-c0be-5d4a-ec5c107e93ae@gmail.com> <87bmwsatox.fsf@nicolasgoaziou.fr> <87mvg8ipmf.fsf@nicolasgoaziou.fr> <084a9c31-e7b1-72af-8d78-9655dc006d00@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54307) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cEaIB-0003Jw-0z for emacs-orgmode@gnu.org; Wed, 07 Dec 2016 06:21:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cEaI6-0001Su-Sy for emacs-orgmode@gnu.org; Wed, 07 Dec 2016 06:21:43 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:38222) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cEaI6-0001SV-MT for emacs-orgmode@gnu.org; Wed, 07 Dec 2016 06:21:38 -0500 In-Reply-To: <084a9c31-e7b1-72af-8d78-9655dc006d00@gmail.com> (Scott Randby's message of "Tue, 6 Dec 2016 21:06:47 -0500") 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: Scott Randby Cc: emacs-orgmode@gnu.org Hello, Scott Randby writes: > On 12/06/2016 06:50 PM, Nicolas Goaziou wrote: >> I fixed it in maint. Basically, a_b_c is translated as a\(_b\)\(_c\). > > With this solution, "a" will be exported as text while "b" and "c" will > be exported as a single subsrcipt using the math font. Not at all. I simplified the output for clarity but the real generated code is a\(_{\text{b}}\)\(_{\text{c}}\) > I would prefer that a_b_c be translated as \(a_{b_{c}}\). As you pointed out, the string is ambiguous anyway. The point of the fix is to generate valid LaTeX code. You can obtain the above unambiguously with a_{b_c} Regards, -- Nicolas Goaziou