emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [BUG] org-format-latex not respecting org-format-latex-options :matc


From: Ihor Radchenko
Subject: Re: [BUG] org-format-latex not respecting org-format-latex-options :matchers
Date: Sat, 03 Feb 2024 21:56:55 +0000

[ CCing Timothy and Karthic ]

Jacob Fong <jacobcfong@gmail.com> writes:

> It appears that the math-matching regexes are hard-coded in
> `org-format-latex`, as seen in this line:
>
> ```
> (let* ((math-regexp "\\$\\|\\\\[([]\\|^[ \t]*\\\\begin{[A-Za-z0-9*]+}")
> ```
>
> As a result of this, :matchers does not work as documented, for
> example with `org-latex-preview`. This is confirmed in some places
> (https://emacs.stackexchange.com/questions/78093/removing-certain-latex-preview-matchers-from-org-mode).
>
> Is there any way this can be fixed to accord with the
> org-format-latex-options documentation?

Confirmed.
But we are soon to commit major changes to latex preview system.
I believe that this issue will be addressed.
See https://list.orgmode.org/orgmode/87lek2up0w.fsf@tec.tecosaur.net/

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]