A custom ~org-num-format-function~ causes ~org-latex-preview~ warn when it is called.
* Exact "Warning" I'm getting. ⛔ Warning (org-element-cache): org-element--cache: Org parser error in ask.org::648. Resetting. The error was: (error "Invalid search bound (wrong side of point)") Backtrace: nil
* Info about when this Warning comes: - Warning comes up when equation change from "previewed-state (image)" back to "text-state" - Warning only comes when the equation is changed.
1. Change the org-num-format-function as written above 2. (In org-file) Turn-on ~org-num-mode~ 3. (In org-file) On any equation, change it. 4. run ~org-latex-preview~ to preview the equation image.
5, run ~org-latex-preview~ go back to text mode. (here warning comes)
(If warning doesn't appear try from step 3 again)
(When org-num-mode turned off, it doesn't produce warning)
$\alpha$
Emacs : GNU Emacs 29.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41, cairo version 1.18.0) Package: Org mode version 9.6.15 (release_9.6.15 @ /usr/share/emacs/29.3/lisp/org/)