bug#62692: 28.2; org-latex-preview has a bug when using dvisvgm with reg
From:
Nicolas Shu
Subject:
bug#62692: 28.2; org-latex-preview has a bug when using dvisvgm with regards to the path, when drive is mounted
Date:
Wed, 5 Apr 2023 17:43:23 -0400
I don't have the logs because I already fixed it via another method, but I'll try to give as much insight as possible.
When using org-latex-preview, it normally should work when using dvisvgm to then convert DVI -> SVG. My issue I was having was that it was not being able to read the generated DVI file, thus no SVG file was being created. The reason it could not find it was specifically because my hard drive is mounted onto my OS drive. In other words:
Let's say I have my OS drive and a larger hard drive which I was mounting on /mnt/drive, and I had a Dropbox folder (/mnt/drive/Dropbox) symlinked to ~/Dropbox. When I was working on /home/user/Dropbox/myfile.org and trying to generate previews, it was generating a temporary DVI file at /tmp/orgtexABCD.dvi, but then, dvisvgm was looking for ../../../tmp/orgtexABCD.dvi, but this then resulted in /mnt/tmp/orgtexABCD.dvi, which was not there.
I would suggest one to instead of passing in relative paths, to obtain absolute paths.
Sorry for the inconvenince.
In GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.36, cairo version 1.17.6) of 2023-01-02 built on 2 Windowing system distributor 'The X.Org Foundation', version 11.0.12101008 System Description: Arch Linux
Important settings: value of $LC_MONETARY: en_US.UTF-8 value of $LC_NUMERIC: en_US.UTF-8 value of $LC_TIME: en_US.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix
Major mode: Org
Minor modes in effect: eval-sexp-fu-flash-mode: t flycheck-pos-tip-mode: t global-flycheck-mode: t show-smartparens-global-mode: t show-smartparens-mode: t text-scale-mode: t evil-org-mode: t org-superstar-mode: t evil-escape-mode: t global-display-line-numbers-mode: t display-line-numbers-mode: t org-roam-db-autosync-mode: t all-the-icons-completion-mode: t shell-dirtrack-mode: t async-bytecomp-package-mode: t projectile-mode: t global-org-modern-mode: t org-modern-mode: t org-xournalpp-mode: t org-indent-mode: t winner-mode: t winum-mode: t pupo-mode: t volatile-highlights-mode: t global-vi-tilde-fringe-mode: t vi-tilde-fringe-mode: t vertico-mode: t global-undo-tree-mode: t undo-tree-mode: t spaceline-info-mode: t spaceline-helm-mode: t save-place-mode: t savehist-mode: t persp-mode: t marginalia-mode: t global-hl-todo-mode: t purpose-mode: t eyebrowse-mode: t evil-mc-mode: t global-anzu-mode: t anzu-mode: t editorconfig-mode: t clean-aindent-mode: t which-key-mode: t override-global-mode: t evil-mode: t evil-local-mode: t windmove-mode: t spacemacs-leader-override-mode: t global-spacemacs-leader-override-mode: t global-hl-line-mode: t xterm-mouse-mode: t global-auto-revert-mode: t recentf-mode: t ido-vertical-mode: t global-page-break-lines-mode: t page-break-lines-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t visual-line-mode: t transient-mark-mode: t