From: Ihor Radchenko <yantar92@posteo.net>
To: Jacob Fong <jacobcfong@gmail.com>,
Timothy <orgmode@tec.tecosaur.net>,
Karthik Chikmagalur <karthikchikmagalur@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [BUG] org-format-latex not respecting org-format-latex-options :matchers
Date: Sat, 03 Feb 2024 21:56:55 +0000 [thread overview]
Message-ID: <87o7cxxlco.fsf@localhost> (raw)
In-Reply-To: <CACA2kSOfmuZAEm5VMd7Bqw23UMy0HCyX+Ed10mde=-6Ys_djug@mail.gmail.com>
[ 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>
prev parent reply other threads:[~2024-02-03 21:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-03 20:43 [BUG] org-format-latex not respecting org-format-latex-options :matchers Jacob Fong
2024-02-03 21:56 ` Ihor Radchenko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87o7cxxlco.fsf@localhost \
--to=yantar92@posteo.net \
--cc=emacs-orgmode@gnu.org \
--cc=jacobcfong@gmail.com \
--cc=karthikchikmagalur@gmail.com \
--cc=orgmode@tec.tecosaur.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).