[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Exponents / subscripts
From: |
Nicolas Goaziou |
Subject: |
Re: [O] Exponents / subscripts |
Date: |
Thu, 23 Oct 2014 21:16:00 +0200 |
Hello,
Rasmus <address@hidden> 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).
> 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.
>> 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.
Regards,
--
Nicolas Goaziou
- [O] Exponents / subscripts, Fabrice Popineau, 2014/10/19
- Re: [O] Exponents / subscripts, Nicolas Goaziou, 2014/10/19
- Re: [O] Exponents / subscripts, Fabrice Popineau, 2014/10/19
- Re: [O] Exponents / subscripts, Nicolas Goaziou, 2014/10/20
- Re: [O] Exponents / subscripts, Rasmus, 2014/10/20
- Re: [O] Exponents / subscripts, Nicolas Goaziou, 2014/10/21
- Re: [O] Exponents / subscripts, Rasmus, 2014/10/21
- Re: [O] Exponents / subscripts, Nicolas Goaziou, 2014/10/22
- Re: [O] Exponents / subscripts, Rasmus, 2014/10/22
- Re: [O] Exponents / subscripts,
Nicolas Goaziou <=
- Re: [O] Exponents / subscripts, Rasmus, 2014/10/23
- Re: [O] Exponents / subscripts, Nicolas Goaziou, 2014/10/23
- Re: [O] Exponents / subscripts, Fabrice Popineau, 2014/10/22