On Aug 18, 2023 at 6:04 PM, Ihor Radchenko <yanta...@posteo.net> wrote:
> May you try to install the latest stable Org first, following > https://orgmode.org/manual/Installation.html? You should get M-x > org-version printing Org 9.6.7. > Then, let us know if the warning keeps appearing. * What happens When I type some equations and get the preview, I get this warning * Steps to reproduce 1. Type this equation #+begin_quote \begin{gather} t = 0 \end{gather} #+end_quote 2. Ask for preview =C-c C-x C-l= with point on the equation 3. Ask to remove preview (without moving point) =C-c C-x C-l= 4. You get the message (below) If you repeat 1--3, the message is gone. It comes back if you remove the =./ltximg/<file>.svg= * My "system" #+begin_src emacs-lisp (setq org-latex-pdf-process '("xelatex -file-line-error -no-pdf -interaction nonstopmode -shell-escape -output-directory %o %f" ;; Check this too: https://tex.stackexchange.com/a/455164 "[[ -f %o/%b.idx ]] && texindy %o/%b.idx" ;; https://stackoverflow.com/a/57734531 ;; "latexmk -pdfxe -bibtex %F") ; gives issues with silly errors "latexmk -shell-escape -f -pdfxe -bibtex %F") ;; https://emacs.stackexchange.com/a/33172 org-preview-latex-process-alist (quote ((dvisvgm :programs ("xelatex" "dvisvgm") :description "dvi > svg" :message ((concat "you need to install the programs: " "xelatex and dvisvgm.")) :use-xcolor t :image-input-type "xdv" :image-output-type "svg" :image-size-adjust (1.3 . 1.5) :latex-compiler ("xelatex -no-pdf -interaction nonstopmode -output-directory %o %f") :image-converter ("dvisvgm %o%b.xdv -n -b min -c %S -o %O")) )) org-preview-latex-default-process 'dvisvgm) #+end_src #+begin_src emacs-lisp (format "%s\n%s" (org-version) (emacs-version)) #+end_src #+RESULTS: : 9.7-pre : GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.36, cairo version 1.17.6) : of 2023-01-03 Org commit: 3cbd9f423385bf725dc964a5cff573bba17db3ff * The message #+begin_example Warning (org-element-cache): org-element--cache: Org parser error in t.org::189. Resetting. The error was: (error "Invalid search bound (wrong side of point)") Backtrace: " backtrace-to-string(nil) org-element-at-point() org-element-context() org-latex-preview(nil) funcall-interactively(org-latex-preview nil) call-interactively(org-latex-preview nil nil) command-execute(org-latex-preview) " Please report this to Org mode mailing list (M-x org-submit-bug-report). Disable showing Disable logging #+end_example -- Sent with https://mailfence.com Secure and private email