From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.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 MCg9M2v9H2bRRAAAqHPOHw:P1 (envelope-from ) for ; Wed, 17 Apr 2024 18:48:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id MCg9M2v9H2bRRAAAqHPOHw (envelope-from ) for ; Wed, 17 Apr 2024 18:48:43 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=i3Oo1FZJ; 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=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1713372523; 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=AYQi8+Jc07dv0pnBtGoIpGugl9bM2Qx65Y+F+7tC1as=; b=QGIi7hIjo0Ab93fuZr8J9IatwilEh9sVoLg/Si5+56qpIzlf4MgGFsUt7nOZLL2xuJWxvH s2wGbLvnMmSnnG5W0by9HiJ1FLh3UwMPpId6pENmOSBFm27s/MisbvC3aRLHWPO1Gg1U7a bFnS/RlI/n7n2Scy7Z+WfltCYyR5dGEJHQYBrXGdNJuh09Stuv55dVzqy8sUPM8PwyfYrX EEzcVIAbVHYlZUu94qc5/uKU3bBZY/IVZg6wKLaa+ihqPqGavFvny7krRhNHQ9TQYLpzgD vT2xv/JvmP0WYtJUC2Gp8nfznMqgObB8sXTX8MKFuz6gmy5C93rQg6z//QzFwQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1713372523; a=rsa-sha256; cv=none; b=cHGx0MB+g2rOV/oOCcokh6aHbmfMWWoclnKUtz7ELflpjV2NRWZFilt7yM12jNlQrwIp3I 4IV+B/0U4qUBWtPq823ihjmz5cj4wgrtAWFxE9a0KwTiP/7zch6WctjkC7iPkfoglyq4bo cBLUnidzaz1MdlOUkj238T+pLYpvXze6r5rcZNRqRmjLtf+keVUqcU29Op751bk6+vFaCM rCIZ9XZJZNmpWRMV8q0TAGhyPXR5zi1ujyYxnf5JypttbguDD0yibtRYDVh1ZKuzKRcfkl +aLqiiS3FKmoFMOO9ISeuG6uRKhGKsGYlzJXxQhlWDRggxYgJ8HMOC+l6KhqlQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=i3Oo1FZJ; 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=posteo.net 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 7B4F621DAA for ; Wed, 17 Apr 2024 18:48:43 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rx8Rt-0001DH-Ks; Wed, 17 Apr 2024 12:47:53 -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 1rx8Rr-0001AC-CR for emacs-orgmode@gnu.org; Wed, 17 Apr 2024 12:47:51 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rx8Ro-0001h8-47 for emacs-orgmode@gnu.org; Wed, 17 Apr 2024 12:47:51 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 8BDE6240104 for ; Wed, 17 Apr 2024 18:47:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1713372463; bh=xfNKOGQLdCu7YdCq5s6+4wen5kVn2Zp26Fzmhj8EC+E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=i3Oo1FZJ0jx6rfG2u8XCSyGcFJJjaBjDnLmOeUeZ3wHHe51p7v8vLmrlmtKpCdjAJ 8GZjqB/tqnrjk3Tu8Iui9viu8XsvGciusKHbLCSsck4kUxELr9u5mt+K6eihHR0nsz h06Edwe5R4FRzBnBc4FAAnS/yE6Tms5EGcgManKRwaRCiikwv0rm7njXXNKgpoc3WO jT772Bns5JyZQCjnXb+EXg9a9elCljPVGE0qon+QZhOBVgEILNPeliaxdMnDVWmJv1 N9B2Oet6xgiFCKRn18Xo/1MHmqdXd3G7tw/PM+iWyTP+DVO3cL+Byem+3v08SaUYog 0Gwwqp8LOnbig== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VKRfQ5kG0z6tyL; Wed, 17 Apr 2024 18:47:42 +0200 (CEST) From: Ihor Radchenko To: Emmanuel Charpentier Cc: manikulin@gmail.com, emacs-orgmode@gnu.org Subject: Re: [BUG] LaTeX preview should use a subdirectory in /tmp In-Reply-To: <70491d4bb65173aef34296dd71d7a1e55872bf26.camel@free.fr> References: <70491d4bb65173aef34296dd71d7a1e55872bf26.camel@free.fr> Date: Wed, 17 Apr 2024 16:48:26 +0000 Message-ID: <87frvkaqat.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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.30 X-Spam-Score: -9.30 X-Migadu-Queue-Id: 7B4F621DAA X-Migadu-Scanner: mx12.migadu.com X-TUID: 13UM1WQJFglO Emmanuel Charpentier writes: > 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. > > Admittedly, this is a corner case, but it turned out to be necessary > (exporting via mathml gave unsatisfying results). It looks like is a different bug. (probably even in Emacs, when calculating relative path) 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? (plist-put (alist-get 'dvipng org-preview-latex-process-alist) :image-converter '("dvipng -D %D -T tight -o %O %F")) -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at