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: Sun, 11 Dec 2016 01:05:24 +0100 Message-ID: <878trncou3.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> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39885) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cFrdu-0007rA-8k for emacs-orgmode@gnu.org; Sat, 10 Dec 2016 19:05:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cFrdq-0007sr-TQ for emacs-orgmode@gnu.org; Sat, 10 Dec 2016 19:05:26 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:35333) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cFrdq-0007pZ-Ma for emacs-orgmode@gnu.org; Sat, 10 Dec 2016 19:05:22 -0500 In-Reply-To: (Scott Randby's message of "Sat, 10 Dec 2016 18:24:20 -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: > First, a_b_c and a_bc give nearly identical results when processed > except that the spacing between letters in the subscript coming from > a_b_c is wider than that in the subscript coming from a_bc. The spacing > issue can be seen more clearly by comparing the processed versions of > a_b_c_d and a_bcd. The wider spacing looks funny when compared to > surrounding text. > > Second, I've been considering the issue of what the primary meaning of > a_b_c should be when it is used in a file. Since underscores are used in > LaTeX to designate subscripts in mathematical expressions, it is clear > to me that a_b_c should mean a_(b_c) instead of a_(bc). Similarly, a^b^c > should mean a^(b^c) instead of a^(bc). I really can't think of any case > when I would type in a_b_c in order to get a_(bc). I chose this translation because 1. It was the easiest to implement; 2. It is the closest to what Org (unlike to LaTeX) really sees; 3. It doesn't matter since it is a pathological case. > Finally, I question the use of text style instead of math style when > a_b, a^b, or similar expressions are exported to LaTeX. TeX was designed > to produce beautiful typeset mathematics, and the math style is an > essential part of that beauty. Math style is also the expected way of > presenting mathematical expressions in all of the professional journals > that I read and use. New users may not be aware of professional > standards, but we could help them be aware by translating a_b_c as > \(a_{b_{c}}\) exactly. Similarly a^b^c would be translated as > \(a^{b^{c}}\) exactly. I strongly disagree. Org is not a front-end to LaTeX. LaTeX is but one of its export output formats. In most of the others, sup/superscript doesn't force math mode on the user. In Org, if you want to enter math mode, you need to explicitly request it, e.g., with: a_{$1 + 1$} > However, the translation of a_b_c doesn't matter a whole lot to me since > I always use \(a_{b_{c}}\) or $a_{b_{c}}$ in my Org documents. Exactly. Regards, -- Nicolas Goaziou