From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Exponents / subscripts Date: Thu, 23 Oct 2014 23:32:36 +0200 Message-ID: <878uk6jwuj.fsf@gmx.us> References: <87zjcs0yxw.fsf@nicolasgoaziou.fr> <87k33v13g5.fsf@nicolasgoaziou.fr> <8761fenzxi.fsf@gmx.us> <87y4s9mlef.fsf@nicolasgoaziou.fr> <87fveh89wi.fsf@gmx.us> <87ppdkmppl.fsf@nicolasgoaziou.fr> <87d29kjuod.fsf@gmx.us> <87lho6mwb3.fsf@nicolasgoaziou.fr> 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]:53707) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XhPzy-0001Ah-NO for emacs-orgmode@gnu.org; Thu, 23 Oct 2014 17:32:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XhPzt-0006BB-9N for emacs-orgmode@gnu.org; Thu, 23 Oct 2014 17:32:46 -0400 Received: from mout.gmx.net ([212.227.15.15]:55391) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XhPzs-0006Aj-VJ for emacs-orgmode@gnu.org; Thu, 23 Oct 2014 17:32:41 -0400 Received: from W530 ([217.130.110.20]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0Lxgt9-1YAJTA02zj-017DGN for ; Thu, 23 Oct 2014 23:32:39 +0200 In-Reply-To: <87lho6mwb3.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Thu, 23 Oct 2014 21:16:00 +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: emacs-orgmode@gnu.org Nicolas Goaziou writes: > Hello, > > Rasmus writes: > >> An external library is ideal (had it existed), but where to stop? Are >> entities wrapped in math "supported syntax"? >> E.g. "$\alpha\beta\gamma\delta$". > > No. What is inside a math snippet/environment is a black box for Org. > Entities are a different beast that do not require a math environment > (e.g., "\alpha" is not considered to be LaTeX code). Bur surely the fact that $\beta$ is displayed $=CE=B2$ is a consequence of org-entities.el? Whether desirable or not. >> So your strategy would be to disable fontification within math (since >> the syntax is not org), and delegate it to a separate library, say >> tex-fold.el (which also doesn't work out-of-the-box in Org-buffers)? >> In theory it's ideal, but consistency (e.g. supported entities) and >> comparability is probably issues. > > I don't think so. No fontification at all on LaTeX code is a decent > default in an Org buffer. Additional, exact, fontification for it is > a nice bonus. I would like to agree, but I get too much joy from the current imprecise implementation. From a practical perspective the current state is OK and much preferable over the alternative. IOW and IMO, let's not touch it unless we've got something better! >>> This doesn't solve the leak of Org's fontification on math snippets and >>> environments. >> >> But it would if you can delegate parsing of math to a separate >> library, no? > > No it wouldn't, because Org would still have to fontify sub/superscript > outside math snippets. Of course, dedicated fontification could override > leaked one, but I think this would be troublesome in some occasions. > > At some point, I hope to introduce the parser in the fontification > process, which would some the problem. Just out of curiosity, can you mention a couple of (org) function to look at to see how fontification works? =E2=80=94Rasmus --=20 m-mm-mmm-mmmm bacon!