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: Mon, 12 Dec 2016 08:46:26 +0100 Message-ID: <87bmwhbne5.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> <87fum0htmk.fsf@nicolasgoaziou.fr> <878trncou3.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60503) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGLKX-0006Mp-OS for emacs-orgmode@gnu.org; Mon, 12 Dec 2016 02:47:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cGLKJ-0004f2-Sa for emacs-orgmode@gnu.org; Mon, 12 Dec 2016 02:47:25 -0500 Received: from [2001:4b98:c:538::196] (port=35643 helo=relay4-d.mail.gandi.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cGLKJ-0004bP-NH for emacs-orgmode@gnu.org; Mon, 12 Dec 2016 02:47:11 -0500 In-Reply-To: (Scott Randby's message of "Sun, 11 Dec 2016 22:37:37 -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: > It seems odd to me that Org would see multiple subscripts as being > really one subscript. It doesn't. LaTeX does. Org clearly translates a_b_c as two consecutive subscript components. Then LaTeX visually merges them. > I realize that Org is not a front-end to LaTeX. But the standards of > other output formats are not the standards of LaTeX. Different output > formats have different purposes. In this case, one could view Org as > forcing text mode on the user when math mode is appropriate. Who knows what mode is appropriate? Certainly not Org. >> In Org, if you want to enter math mode, you need to explicitly request >> it, e.g., with: >> >> a_{$1 + 1$} > > If this was true, then a_b would be exported to a\_b instead of > a\(_\text{b}\). Of course note, a\_b is not even a subscript. a\(_\text{b}\) is a robust way to get "textual" subscript, which is the default for Org. > Math mode is entered any time \(...\) is used, and in the a_b case, > the user did not explicitly request it. AFAIK, there is no way in LaTeX to get subscript without entering, temporarily in this case, in math mode. Anyway, per \text{}, "b" is not really in math mode, as you noticed. Regards, -- Nicolas Goaziou