* org-latex-preview symlink handling
@ 2024-05-29 8:44 Andrew Berger
2024-05-29 13:25 ` Ihor Radchenko
0 siblings, 1 reply; 2+ messages in thread
From: Andrew Berger @ 2024-05-29 8:44 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1440 bytes --]
Long listener, first time caller
org-latex-preview was failing with: org-compile-file: File
"/private/var/folders/5b/m1bt7sss2n19dwg1d62h_hrw0000gn/T/orgtexGt3N0x.dvi"
wasn’t produced. Please adjust ‘dvipng’ part of
‘org-preview-latex-process-alist’.
Root cause was that on my system ~/org is a symlink to some icloud auto
sync directory (for beorg).
After much stumbling (despite my 10+ years of daily emacs use I haven't
much explored the lispy bowels!) I landed on the following solution:
(setq org-preview-latex-process-alist
'((dvipng :programs ("latex" "dvipng")
:description "dvi > png"
:message "You need to install the programs: latex and
dvipng."
:image-input-type "dvi"
:image-output-type "png"
:image-size-adjust (1.0 . 1.0)
:latex-compiler ("latex -interaction nonstopmode
-output-directory %o %f")
:image-converter ("dvipng -D %D -T tight -o %o/%b.png
%o/%b.dvi"))))
(defun my/org-latex-preview ()
(let ((find-file-visit-truename t)
(vc-follow-symlinks t))
(org-latex-preview)))
(defun my/org-latex-preview-buffer ()
(let ((find-file-visit-truename t)
(vc-follow-symlinks t))
(org-latex-preview-buffer)))
Could the default symlink behavior be improved?
A
[-- Attachment #2: Type: text/html, Size: 1843 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-05-29 13:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-29 8:44 org-latex-preview symlink handling Andrew Berger
2024-05-29 13:25 ` Ihor Radchenko
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).