From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Exponents / subscripts Date: Wed, 22 Oct 2014 11:13:58 +0200 Message-ID: <87ppdkmppl.fsf@nicolasgoaziou.fr> References: <87zjcs0yxw.fsf@nicolasgoaziou.fr> <87k33v13g5.fsf@nicolasgoaziou.fr> <8761fenzxi.fsf@gmx.us> <87y4s9mlef.fsf@nicolasgoaziou.fr> <87fveh89wi.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57228) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xgryq-0006ds-Qj for emacs-orgmode@gnu.org; Wed, 22 Oct 2014 05:13:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xgryi-00089M-Nw for emacs-orgmode@gnu.org; Wed, 22 Oct 2014 05:13:20 -0400 Received: from relay6-d.mail.gandi.net ([2001:4b98:c:538::198]:33964) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xgryi-00087v-HH for emacs-orgmode@gnu.org; Wed, 22 Oct 2014 05:13:12 -0400 In-Reply-To: <87fveh89wi.fsf@gmx.us> (rasmus@gmx.us's message of "Tue, 21 Oct 2014 22:06:53 +0200") 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: Rasmus Cc: emacs-orgmode@gnu.org Hello, Rasmus writes: > Had preview-latex supported Org I'd maybe agree, but I disagree > strongly at this time. Patch welcome. > sub/superscript works well with entities and makes it very easy to > edit math and get approximate live feedback. Unfortunately, some users complain about the approximation. OTOH, I'm pretty sure that most LaTeX users can parse sub/superscript LaTeX code without any fontification at all. > IOW and IMO, the "bug", if any, is the fontification of superscript in > math. This is not Org's job since you're talking about a non-compatible syntax. I think it should be done in a different library (i.e., not "org.el"), if at all. You want to implement a subset of Auctex. Either you delegate it to that major mode (=C3=A0 la Babel), at the price of some slowdown, or you duplica= te code from it (i.e., `font-latex-match-script'). In both cases, you need to know when point is on a math snippet or environment, which should rely on `org-element-context' if you're serious about it. This doesn't solve the leak of Org's fontification on math snippets and environments. Regards, --=20 Nicolas Goaziou