From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 4H09Ba+t12ZdqAAAqHPOHw:P1 (envelope-from ) for ; Wed, 04 Sep 2024 00:45:35 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 4H09Ba+t12ZdqAAAqHPOHw (envelope-from ) for ; Wed, 04 Sep 2024 02:45:35 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=QYWb6a09; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1725410735; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=q/7rQhueAx0CFbceuBTG239VDGW48OIi/Ixku+2i1XU=; b=chNe2nRj6CcbzRgzGvc6EOtBtgFWzj9EroOIzK9VSa9SIGb1/h64sjSxSbIovYJZav8qNZ 6C2k47OC1NSk2jsZGvSAorJu5E+3xtOUYln6uVj6bWMhIXrg4UNkLe143fRAkbSWlI5qqe TgKxQveaRmOydwxN3USN98pu2WHBdK9JQLO0xjREDtCtjxmejjQBzukgjipCwntH0kQgLC rO01jgFoX8K6WLwLo+/Km7fukeFSMMGdhYLWe8h1ta72CcwPTN7oRBKCsFCpJ3dFeoLvQW lTTePLgHP7Dvxr9MCnoZoEeKjmJxIvs+zEIgz+0E7eYNvt3G38dmzIK1OIzyLg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=QYWb6a09; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1725410735; a=rsa-sha256; cv=none; b=gK41qQ+5EICP224zD/ae34dLQ2itPid9w3bBk2weVLYuyQrwXTPA4edjvxem9+dBQeACnc 0Rmi/5sd9KNm2vn0BP6rlO1RKqu54QNJbB83oXGu9URncq5t4IL+uORz5lI+M25Jc8MNpX EXElQ+1369Pm3gRGubhYrdUeetFloRjp2fyulYc1+0dpXjmhLZV5JJ5If1BKZJrEW459ph L6t+F1OGOgBHibrEt76v0QfaOb013NsaWuSzmCBn8rUqmfOAyXZUdj3itrla8t/gZnvgqJ m8xMHm0475kdTZo0fBagzh90HcAu0L16Unns8WrIqahQBGmReMNMIQV3CZHcoQ== 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 74FF63DDFB for ; Wed, 4 Sep 2024 02:45:34 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sle8d-0003jf-0v; Tue, 03 Sep 2024 20:44:47 -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 1sle8b-0003jG-KP for emacs-orgmode@gnu.org; Tue, 03 Sep 2024 20:44:45 -0400 Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sle8Z-00064z-Ut for emacs-orgmode@gnu.org; Tue, 03 Sep 2024 20:44:45 -0400 Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-5344ab30508so177438e87.0 for ; Tue, 03 Sep 2024 17:44:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725410682; x=1726015482; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=q/7rQhueAx0CFbceuBTG239VDGW48OIi/Ixku+2i1XU=; b=QYWb6a09smbAFIngYWtRvvFzB5hZ10nfyQUzz1xY/YYT1wSMHs8o0u6+XSmZyMRyT8 pFtAo8tSfeyN3nJZw9xJ3iimw9wPt1c7fB37LXAG9r7vRfI9WwXPQzWL+OjviVKbKv9B H66Vl2nhSf8IQRCz3OQih8gS2usIDO8cOxvUIHZPycgg6kGvenKqXQAZvpugQzy52Ipn vsFg3wRU3YzNMLnHB9SBteVUyfzpLv1r8k6Bum+yez0CaxKoilErY+CqaOhIf5nJwX7N 8ysUJoxiGGq2b0ya3mnfB0ulkcWfhvvifR1nvyJllsGZC9xPZ2alnYi4I3MpQKqMS516 Dp9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725410682; x=1726015482; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=q/7rQhueAx0CFbceuBTG239VDGW48OIi/Ixku+2i1XU=; b=XdIrORg+vYWSMH/enh9eFA1wy9kNxv0XeT5TmZRsnTNCyw6A+B33nB+6jd2QJ0C6E9 HVw0OpAWVPLtqGRFN8/EdT9DaQ8cALdqI0iUJG+vwTPhxpD4cI0McTgH4k8pVs9WjAr/ c1IGO1STced6q2i59sWmjH8R2m3eGDIQp+DyjDt/nHm99z2Q/siLaFk258BpQYXg+h+P JRC3w6GMj0oaeyb7R46NKDo8qai1Z3EWBZMbvl2Ss7J///98Jt8p+w37deTubBPfNP/t 217+kav5zkpidAEML7qnZeuKxoJmiHNleopRivxJyLqRRlDDvGkOAFOKp9cfl+6LaAW3 ig8w== X-Forwarded-Encrypted: i=1; AJvYcCVQbgaORZ0qcwtwUwkyBELthgyweOlmNaLZLax81vXcLyYXrysMz2nALgaApwXwiRKShHS4S6pgsvUxJdtz@gnu.org X-Gm-Message-State: AOJu0YzPCQT9NM/7QrrEDCT+rfFtIFnicyo/pSALhjmbfp5ObYbSsISc TNGxrktrNyeyLE+b3ZGMr9W109wcIXiE2ISw/1yMnYoqvd+H1nFSRpL4BvU4o+A+VjeSFLnPERm 9gzLr+CD6cXaiQam6TWNyLePA69M= X-Google-Smtp-Source: AGHT+IHuga7+k6EVWYFfKwq8s1D7TT5zqq3F3NHSGofP/tvEbk71GDzMjsB66JvBgPON0bAA1UaI2dt6X8eGUrNtX+4= X-Received: by 2002:a05:6512:2314:b0:533:3f6c:f8a8 with SMTP id 2adb3069b0e04-53567670f67mr74646e87.6.1725410681309; Tue, 03 Sep 2024 17:44:41 -0700 (PDT) MIME-Version: 1.0 References: <16ED0C3D-9C4E-49C0-B908-3E759BC31992@gmail.com> <87frvitp30.fsf@gmail.com> <87cyo8udza.fsf@localhost> <87le2rplrq.fsf@gmail.com> <87cylkn72b.fsf@localhost> <871q20ag88.fsf@gmail.com> <87y1488e58.fsf@gmail.com> In-Reply-To: <87y1488e58.fsf@gmail.com> From: Jun Inoue Date: Wed, 4 Sep 2024 09:44:28 +0900 Message-ID: Subject: Re: [Pre-PATCH] Overhaul of the LaTeX preview system To: Karthik Chikmagalur Cc: Yaroslav Drachov , Ihor Radchenko , Timothy , emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="000000000000c0515e0621407a68" Received-SPF: pass client-ip=2a00:1450:4864:20::12e; envelope-from=jun.lambda@gmail.com; helo=mail-lf1-x12e.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: 74FF63DDFB X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -8.19 X-Spam-Score: -8.19 X-TUID: 0JloRcvfzSbC --000000000000c0515e0621407a68 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Super! ;) 2024=E5=B9=B49=E6=9C=884=E6=97=A5(=E6=B0=B4) 9:18 Karthik Chikmagalur : > Jun, thank you for the detailed explanation and fix. > > > * Cause > > This is because org-latex-preview: > > 1. Runs dvisvgm in the same directory as the .org file, and > > 2. Tells dvisvgm to report the output SVG file names as relative paths > > using ?svgfile, but > > 3. Then expands those file names under temporary-file-directory in > > org-latex-preview--dvisvgm-filter. > > > > So dvisvgm relativizes in one path, then org-latex-preview expands in > > another. > > > > I had gathered from other repors that this was the issue, but I didn't > know how to fix it as I don't have dvisvgm 3.2 available yet. Scanning > the man page for dvisvgm 3.0.3 didn't give me any hits for `svgfile'. > > The fix looks very simple, we'll apply it. > > Karthik > --000000000000c0515e0621407a68 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Super!=C2=A0 ;)

2024=E5=B9=B49=E6=9C=884=E6=97=A5(=E6= =B0=B4) 9:18 Karthik Chikmagalur <karthikchikmagalur@gmail.com>:
Jun, thank you for the detailed explanation and fix.

> * Cause
> This is because org-latex-preview:
> 1. Runs dvisvgm in the same directory as the .org file, and
> 2. Tells dvisvgm to report the output SVG file names as relative paths=
> using ?svgfile, but
> 3. Then expands those file names under temporary-file-directory in
> org-latex-preview--dvisvgm-filter.
>
> So dvisvgm relativizes in one path, then org-latex-preview expands in<= br> > another.
>

I had gathered from other repors that this was the issue, but I didn't<= br> know how to fix it as I don't have dvisvgm 3.2 available yet.=C2=A0 Sca= nning
the man page for dvisvgm 3.0.3 didn't give me any hits for `svgfile'= ;.

The fix looks very simple, we'll apply it.

Karthik
--000000000000c0515e0621407a68--