Re: The org--math-p advice around texmathp

2024-03-16 Thread Tony Zorman
On Sat, Mar 16 2024 10:07, Ihor Radchenko wrote: > In Org mode, there is a significant difference between \alpha and > \(\alpha\). The former is natively fontified (with `org-pretty-entities' > set to t) and natively exported to HTML/ASCII/ODT/etc. In contrast, > \(\alpha\) is very generic and Org

Re: The org--math-p advice around texmathp

2024-03-16 Thread Ihor Radchenko
Tony Zorman writes: >> For example, something like \alpha is a valid Org mode entity. >> Without `org--math-p' advice, if you do "`a" in Org buffer with >> org-cdlatex-mode, you will see $\alpha$ inserted. With the advice, just >> \alpha will be inserted. > ... > > For example, I would think it's

Re: The org--math-p advice around texmathp

2024-03-15 Thread Tony Zorman
On Fri, Mar 15 2024 14:14, Ihor Radchenko wrote: > Tony Zorman writes: > >>> Because Org mode syntax is not LaTeX and `texmathp' assumes that we are >>> inside >>> LaTeX buffer. So, we first check using Org syntax whether the point is >>> inside latex fragment in Org sense. >> >> But isn't what O

Re: The org--math-p advice around texmathp

2024-03-15 Thread Ihor Radchenko
Tony Zorman writes: >> Because Org mode syntax is not LaTeX and `texmathp' assumes that we are >> inside >> LaTeX buffer. So, we first check using Org syntax whether the point is >> inside latex fragment in Org sense. > > But isn't what Org calls LaTeX math pretty equivalent to what would > coun

Re: The org--math-p advice around texmathp

2024-03-14 Thread Tony Zorman
On Wed, Mar 13 2024 12:58, Ihor Radchenko wrote: > Tony Zorman writes: > >> I recently stumbled upon the fact that Org has some around advice for >> texmathp: org--math-p. For reasons that aren't entirely clear to me, >> this has some special handling for cdlatex-math-symbol, and recognises >> dis

Re: The org--math-p advice around texmathp

2024-03-13 Thread Ihor Radchenko
Tony Zorman writes: > I recently stumbled upon the fact that Org has some around advice for > texmathp: org--math-p. For reasons that aren't entirely clear to me, > this has some special handling for cdlatex-math-symbol, and recognises > display and inline maths environments on its own, only call

The org--math-p advice around texmathp

2024-03-12 Thread Tony Zorman
Hi, I recently stumbled upon the fact that Org has some around advice for texmathp: org--math-p. For reasons that aren't entirely clear to me, this has some special handling for cdlatex-math-symbol, and recognises display and inline maths environments on its own, only calling out to texmathp if it