emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Edgar Lux <edgarlux@mailfence.com>
To: Emacs Orgmode <emacs-orgmode@gnu.org>
Subject: Re: [BUG] Warning when creating preview
Date: Tue, 22 Aug 2023 18:29:29 +0200 (CEST)	[thread overview]
Message-ID: <89484759.168944.1692721769762@ichabod.co-bxl> (raw)
In-Reply-To: <87ttsw8hha.fsf@localhost>

On Aug 18, 2023 at 6:04 PM, Ihor Radchenko <yantar92@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


  parent reply	other threads:[~2023-08-22 16:30 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-18 13:20 [BUG] Warning when creating preview Edgar Lux
2023-08-18 16:04 ` Ihor Radchenko
2023-08-19  0:37   ` Edgar Lux
2023-08-22 16:29   ` Edgar Lux [this message]
2023-08-23  7:56     ` Ihor Radchenko
2023-08-26 15:39       ` Edgar Lux
2023-08-26 16:28         ` Ihor Radchenko
2023-08-27 11:13           ` Edgar Lux
2023-08-27 11:28             ` Ihor Radchenko
2023-08-27 17:26               ` Edgar Lux
2023-08-27 17:29                 ` Ihor Radchenko
     [not found]                   ` <1064170796.778390.1693179229311@ichabod.co-bxl>
2023-08-28  9:00                     ` Ihor Radchenko
2023-09-28 14:21                       ` Edgar Lux
2023-09-28 14:53                         ` Edgar Lux
2023-10-02 10:14                           ` Edgar Lux
2023-10-05 14:31                             ` Ihor Radchenko
     [not found]                               ` <1472786502.941.1696851881089@ichabod.co-bxl>
2023-10-09 13:59                                 ` Edgar Lux
2023-10-09 14:17                                   ` Edgar Lux
2023-10-11  9:11 ` Ihor Radchenko

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=89484759.168944.1692721769762@ichabod.co-bxl \
    --to=edgarlux@mailfence.com \
    --cc=emacs-orgmode@gnu.org \
    /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).