From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id UHUHAS7rVmabCgAAe85BDQ:P1 (envelope-from ) for ; Wed, 29 May 2024 10:45:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id UHUHAS7rVmabCgAAe85BDQ (envelope-from ) for ; Wed, 29 May 2024 10:45:34 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Y+WpNET9; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1716972333; a=rsa-sha256; cv=none; b=cCUJe1cyUzc8D1rnzIk4cY7n/iqliqm+lrCXDJMDguDESVJC00TJd/Mfj0cJUsHNUjLy8u 5RDIRvJ/YzEy4QBiFM/NUlbFFApG1uGsCR0Otp1+VVe16LJ139vp+7CGqL6rgsOW91xY5G ApCaBB5UK2YkS66JI13uz56be08twXEK4EJ2nwKlRgb0esrtjdVu+Ch/k/mY6j73UwDxQs jNYqdZte49wjp397EmQwSbTqMeJBp74ZEZPW8CwIMzwLCt0g1osn9oaUZCx7VMxtoRDqt2 fk402pp6OZFrlwYhi9VWJDb5IzMgcO1RxwFXV3C5sWSA8Rf7Ipe9I8Yno4Ujmw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Y+WpNET9; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1716972333; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=IZp+JdSRtjsh8vXdq9ZxKB8sG876KapicFVDaE7shwU=; b=FtcykdaP7JLb8+Aq5g9CBwXa+f726a1WlnLiw0ZrOWQht0dsy0hF3FNpCWlQcpLCz61OUO QRfdhnEDKVUjquoNwxHO1DRa4hV12HSQj/LIpdPJkWDVHWoGo7i2hDZ4rzh27xGjh3VONK GgkmB89a4LWY24WuKB9tbWpuS1VPMtg+5dQ4dCRePq2nqFVPwMIk80DSHEuSzEwdjWN3+T APPp11ekfFXs4z7Ch7Qb9TKRj+RzY1EWtXKTgMrAnGn117Oj5JozqNPaoQAT1QZo5XeI4B UOh8hUb7f4SDGYR/o5XXt0sggo7BtJI8A8mDq42pT0bIMkUwxtPE0HirNmkMeA== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B5B3B10216 for ; Wed, 29 May 2024 10:45:33 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sCEvH-00068A-Ie; Wed, 29 May 2024 04:44:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sCEvF-000671-Ux for emacs-orgmode@gnu.org; Wed, 29 May 2024 04:44:37 -0400 Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sCEvD-0008IM-6E for emacs-orgmode@gnu.org; Wed, 29 May 2024 04:44:37 -0400 Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-52b6ccfdf28so99340e87.2 for ; Wed, 29 May 2024 01:44:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716972271; x=1717577071; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=IZp+JdSRtjsh8vXdq9ZxKB8sG876KapicFVDaE7shwU=; b=Y+WpNET9QGlZFUtG9nLYeJwHlWl0Vdt6BRKQSf6Gu9dVKgaeA9eXb6Yj2f0+QS13eD 3rMOEhINK8/9oc2S0Y4QJ48Aq0SbaNmXzg/PZdPP9XFWOp0M9EhplZBzHCt4/S4+FoP1 +u0ToIHbuDwwcwjyjG2RZOI/rGi691HnxJIcugHdfYVxrUcn3djdyjxAo/f7j6RhVpHG 67wM3e4UY4yG8P/TAjJgD4jnvq5Nk6BztPuG6yy7hYO/OVNHR1ItILsBpcFlFmyjiG3L k5W/R3nocgy4rbAtJOzHiC72X393jBSqTLBngYuK9eECdJi6/rbu2nb/9tcel5EC1b59 D+fQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716972271; x=1717577071; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=IZp+JdSRtjsh8vXdq9ZxKB8sG876KapicFVDaE7shwU=; b=HDRPpXQflEyrEkLyhKdYsxNUbKv9yGhIxAp613eZVrG4oegnSFT7coziuH5Z9yXyyk JtOYMEJQNwge8tw9ymx4tnj3+OyKrXW/t7cbtihuVDtus6sBE/YDL+MkOXXkQ+/7zNJP uCLDs4AbK7oI8MwUfO+MTjLt20j6b+h+kDaaJW/qT1eWQ2AEt7737bbCF2Jv8IdGQrrw +siXLt+eVwHEBGr0Q3EIJpMCIYz5R7D8ntU1P9dtwJuGLqFOUPXvrZb4m+OKXwB63AMf yCl/7vhgdP6E7xErDbzq3kYbwoWJUZVIFIHZSeI+NxiwgyNgs5KLHxJ/1WyAdKP3xSLK 1u9Q== X-Gm-Message-State: AOJu0Yz+hiwbgW0M/C5UN1kLBCf4kFoU8n7UxPdlpjBKmyzXDu84WWgq Gb9lBuc2A1Zywy/Ug4FqgDIM7hb2JiuubPO10eqibK3giCd2jvx8FMP3Z6IqpPa6rk4bwI6wlNh NpEXyD6H0ZXWCU+ePXtAfv4XfFQznMy4B X-Google-Smtp-Source: AGHT+IGIjTE5V8e9fR8tL0TE2vgd1e7AsryPKcNM+fRETCqTAK83npKvNedY2GHtIbNawrT/s0LlzBGpG6L7IOnji+E= X-Received: by 2002:ac2:5a5a:0:b0:520:36ab:10b9 with SMTP id 2adb3069b0e04-52966ca87e9mr7707980e87.61.1716972271358; Wed, 29 May 2024 01:44:31 -0700 (PDT) MIME-Version: 1.0 From: Andrew Berger Date: Wed, 29 May 2024 01:44:19 -0700 Message-ID: Subject: org-latex-preview symlink handling To: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="00000000000052db2f061993c2bf" Received-SPF: pass client-ip=2a00:1450:4864:20::12a; envelope-from=andbberger@gmail.com; helo=mail-lf1-x12a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: B5B3B10216 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -6.91 X-Spam-Score: -6.91 X-TUID: nL3CAFaPL9NH --00000000000052db2f061993c2bf Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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=E2=80=99t produced. Please adjust =E2=80=98dvipng=E2=80=99 part of =E2=80=98org-preview-latex-process-alist=E2=80=99. 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 --00000000000052db2f061993c2bf Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Long listener, first time caller

=
org-latex-preview was failing with: org-compile-file: File "/priv= ate/var/folders/5b/m1bt7sss2n19dwg1d62h_hrw0000gn/T/orgtexGt3N0x.dvi" = wasn=E2=80=99t produced. Please adjust =E2=80=98dvipng=E2=80=99 part of = =E2=80=98org-preview-latex-process-alist=E2=80=99.

=
Root cause was that on my system ~/org is a symlink to some icloud aut= o sync directory (for beorg).

After much stumbling= (despite my 10+ years of daily emacs use I haven't much explored the l= ispy bowels!) I landed on the following solution:

=C2=A0 =C2= =A0 (setq org-preview-latex-process-alist
=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 '((dvipng :programs ("latex" "dvipng")
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 :desc= ription "dvi > png"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 :message "You need to install the prog= rams: latex and dvipng."
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 :image-input-type "dvi"
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 :image-output-t= ype "png"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 :image-size-adjust (1.0 . 1.0)
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 :latex-compiler ("lat= ex -interaction nonstopmode -output-directory %o %f")
=C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 :image-converter (= "dvipng -D %D -T tight -o %o/%b.png %o/%b.dvi"))))

=C2=A0 = =C2=A0 (defun my/org-latex-preview ()
=C2=A0 =C2=A0 =C2=A0 (let ((find-f= ile-visit-truename t)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (vc-foll= ow-symlinks t))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 (org-latex-preview)))
=C2=A0 =C2=A0 (defun my/org-latex-preview-buffer ()
=C2=A0 =C2=A0 =C2= =A0 (let ((find-file-visit-truename t)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 (vc-follow-symlinks t))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 (org-late= x-preview-buffer)))

Could the default symlink beha= vior be improved?

A
--00000000000052db2f061993c2bf--