From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id KLZIJJ0rIGbnaAAA62LTzQ:P1 (envelope-from ) for ; Wed, 17 Apr 2024 22:05:49 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id KLZIJJ0rIGbnaAAA62LTzQ (envelope-from ) for ; Wed, 17 Apr 2024 22:05:49 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=free.fr header.s=smtp-20201208 header.b=TjbzNwrn; dmarc=pass (policy=none) header.from=free.fr; 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=1713384349; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=gSfg6qvXPTHpMTdZxlBy452dmTdCxgjFa/CRZoRZHNU=; b=t/VuPurhXe73ThanS2XwUGf99BEqQ5DFtJFDAoFgc0TMBSHblAMwDq/lkhhy3muwVPegkw ymKGfBYGf8ixOZEXD0PU2/uU/p9P1dzW8RquLr7LnCnLiicZJ9wJk8Nwii4zdIZ/aEXHBM mLwxEQoHWuTCvyLAX7AUVqbPKOaIoXLEe4kbnoSRoWEsvxtnTYET7b1QJbEpwCI9haj0ls QKbMJmazGZG6RDXnue6LNMBTVq/4Mb08p129IaTRShxWQf91WMnXk2TJG4kdst7IU8UJAn lLn2h59Hqio6nMcNhbWEiDiOO4GJbl/BOQZMBFzpya4iDhgTg2wSDdPztE71TQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=free.fr header.s=smtp-20201208 header.b=TjbzNwrn; dmarc=pass (policy=none) header.from=free.fr; 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=1713384349; a=rsa-sha256; cv=none; b=eQc2VZBSUoTKCRLL2ap7OFzHwaMwfnu4CM8QB6SIURJfpGcsbM25z/piUgMc9cbHZX+O6P 28p9oWqWMK5/b/1XItoiEWUU/RWGWbfIB+C58kW6Irv9FcFdxZqACzuukSK8KV1JACjlxX 4nRDGzIBnbZiHo15bnbDslhG17KDMFbkbA5RLzh5FNcNcVZ6Y7X1eUZWh7YQpdBRuMuFx+ CgKadjrpIcME7qyknYYfpIKKiBBlgkmXaztC3z1oswLOuSrrApHJpeg9+iPG81Kxzf5Z9a fnTxowTj+69yhATw/QvFJioelXmavWMODGt1PrQS2A6kwqaGktZeDgwzdJbB6g== 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 5181372E8B for ; Wed, 17 Apr 2024 22:05:49 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rxBWb-0004N7-7W; Wed, 17 Apr 2024 16:04:57 -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 1rxBWZ-0004LM-VH for emacs-orgmode@gnu.org; Wed, 17 Apr 2024 16:04:55 -0400 Received: from smtp4-g21.free.fr ([2a01:e0c:1:1599::13]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rxBWX-0000Cw-HL for emacs-orgmode@gnu.org; Wed, 17 Apr 2024 16:04:55 -0400 Received: from [IPv6:2a01:e0a:59b:20f0:d638:c384:a929:b1a] (unknown [IPv6:2a01:e0a:59b:20f0:d638:c384:a929:b1a]) (Authenticated sender: emm.charpentier@free.fr) by smtp4-g21.free.fr (Postfix) with ESMTPA id 7250B19F5A7; Wed, 17 Apr 2024 22:04:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=free.fr; s=smtp-20201208; t=1713384289; bh=CIScKuuWhzJ445CFHjirRgvaTiGWmdpcPKyWue2/MyQ=; h=Subject:From:To:Date:In-Reply-To:References:From; b=TjbzNwrn9XmuxmKhUUtvUYtWM2N7DtfJLtMVHAuqkjGE21HcRK8UCQ+x/C3vTku74 QaKBSfhtiPox7minqrePAHESMxJx3ZgKs+dUiemgbJYHsZTstMwm7pUZ8jk4d7avq8 BmnvxwU6FcvthPXV0VqLd1GJ/BvpKlexXKDd8sJUMbEYpGLKnEIcieujVfEfElWU7x 0KezZN7Wg/5mdfS6CCS+K2pfo7VlSzHhBzEO10SzcrW9xo9SsBw5MtvduiYca16WzB o07/L582HSnORO7nOHNOBINhFKvTTZ4bvt6bwUIie0Bwg+6d0e99iAycIDP7Y8dAOp vbsCG3bzSmzWQ== Message-ID: <59096bd365ccf1cb3ec2b45b0f2ecb5c508ded34.camel@free.fr> Subject: Re: [BUG] LaTeX preview should use a subdirectory in /tmp From: Emmanuel Charpentier To: Ihor Radchenko , emacs-orgmode@gnu.org Date: Wed, 17 Apr 2024 22:04:48 +0200 In-Reply-To: <87frvkaqat.fsf@localhost> References: <70491d4bb65173aef34296dd71d7a1e55872bf26.camel@free.fr> <87frvkaqat.fsf@localhost> Organization: =?ISO-8859-1?Q?Organis=E9?= ? Moi ??? Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.3-1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a01:e0c:1:1599::13; envelope-from=emm.charpentier@free.fr; helo=smtp4-g21.free.fr 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -9.79 X-Migadu-Scanner: mx11.migadu.com X-Spam-Score: -9.79 X-Migadu-Queue-Id: 5181372E8B X-TUID: pxJqND5Hup21 Le mercredi 17 avril 2024 =C3=A0 16:48 +0000, Ihor Radchenko a =C3=A9crit= =C2=A0: > Emmanuel Charpentier writes: >=20 > > I have a case where the current way of forcing the temporary > > directory > > to me `/tmp` is wrong. Running emacs on Ubuntu **under WSL2**,, > > exporting latex snippets to ODT *as images* fails : the `.dvi` > > files > > are correctly compiled and placed in `/tmp{, but the convert > > program > > tries to read them in `../../../../tmp/`, which is indeed `/tmp` in > > a > > "normal" filesystem but **is not** in WSL, where the root (`/`) is > > in > > fact a mounted tree. > >=20 > > Admittedly, this is a corner case, but it turned out to be > > necessary > > (exporting via mathml gave unsatisfying results). >=20 > It looks like is a different bug. (probably even in Emacs, when > calculating relative path) That might also be an idiosyncratic bug of WSL2' implementation of the virtual machine filesystem... >=20 > Assuming that your `org-preview-latex-default-process' is using the > default value of 'dvipng, does it help if you change the image > convertor > command to use absolute path? I didn't know that one could do that : the placeholders are not well documented... >=20 > (plist-put (alist-get 'dvipng org-preview-latex-process-alist) > =C2=A0=C2=A0 :image-converter > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 '("dvipng -D= %D -T tight -o %O %F")) Nope, same problem : the *Org Preview LaTeX Output* buffer says : ../../../../../tmp/orgtexSyy18r.dvi: No such file or directory This is dvipng 1.15 Copyright 2002-2015 Jan-Ake Larsson If I understand it correctly, the %F placeholder should be an *absolute* filename. It is not... Couldn't the output directory of the :latex-compiler element being hardcoded to, say, the curerent directory or a subdirectory thereof, and ditto for the input directory of :image-converter ? Sincerely,