Ihor Radchenko <[email protected]> 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/[email protected]/

With the new patch, we have decided that :matchers should not affect
the LaTeX preview. They are limited to fontification only.

Given that this feature never worked to start with, I view this report
rather as feature request. Let me know if this kind of feature is still
something you are interested in (especially with the new preview system
which should be more featureful compared to org-fragtog mentioned in
stackexchange question).

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
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