From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id II9EIP8CaGfUTQEAqHPOHw:P1 (envelope-from ) for ; Sun, 22 Dec 2024 12:15:59 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id II9EIP8CaGfUTQEAqHPOHw (envelope-from ) for ; Sun, 22 Dec 2024 13:15:59 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ZCqPKPRt; 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=1734869758; 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=CJdbuBLjjSZp/w1LljmNQAdrJYfdZ2ZG9+Hu4+gWWgg=; b=SfUvJFfUdpHTJ0MWWwD5xRtQ3tuUdPyIDOsciuqKrgzUtO0z9dZMhki5EuUYvSlBb8NFlL HNepH7Yn8X6/fdBw4KSowyBRJVznnw3gkHLkrTNxblLPU6pC9+Uc8OR/CH1UHGwcsfxyqJ Akhhdpm3SZTlWp/02DGnuEnzW/lZ71rRN/ADG1gN5QDOT0TMpC7FEMZU3ICcl/eBkVvY8o DbZydbY/T7KpWMO4DUZdcmLO1YlZHfbnCxtwBt9n58+w7WORpBvB9unWjIpEzoleD9fiAj RBPJnwulP3INVJncaSzFib1JHrLLsRm+8bshgw4uWR/+la6ltbkHM2DQB5mNFw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ZCqPKPRt; 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-Seal: i=1; s=key1; d=yhetil.org; t=1734869758; a=rsa-sha256; cv=none; b=Bpyq5W/M3xHNZ5alznPbJb81+faigIWfFr/9QyvswmT7MyELUhIF/rHAdrshXbN7DiPBi1 L7iIeqNiuBtKxwgetaByyveofi5qKF0Zy1qN/dU1u8iWswr+pl5gTkBXRn82FbXUXneJXA +coHWqtv0EIYxKd5hc12T7huQaoH2r9obKp+p3hhjmAKcc5GS9TvNZ87ei+SGZ8oWp9yvM Y79/ptFPeCcX3IEMDcCxerJHB8KIKBu/tDhCqcavwCRXmrKfYPfATO7yYikR3UFwZq8dJp dznak39mAihrB5hNyZifZqePzZLrBFNjNgz0dRz4l8qemsIX5gP8xhmatHIk+w== 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 6A1C77B746 for ; Sun, 22 Dec 2024 13:15:58 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPKrV-0007as-US; Sun, 22 Dec 2024 07:15:10 -0500 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 1tPKrT-0007ah-NF for emacs-orgmode@gnu.org; Sun, 22 Dec 2024 07:15:07 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tPKrQ-0000yC-S9 for emacs-orgmode@gnu.org; Sun, 22 Dec 2024 07:15:07 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 5B36C240027 for ; Sun, 22 Dec 2024 13:14:53 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1734869693; bh=iuX6lcmWuV7jUqyitiCsA9jSoB/fOlZEpyB12tqQlgU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=ZCqPKPRttDrTFwpQSJXZORPClONcUGVlpmW9qO2wHqYdU59RNQ9JBqhQTJwV+Xe5q tK73qDItvLieO1R6t+65y9bCaVWfZ0kphF+I5hid2M+JKoC0sgTb8lEWU8BOp4SEdx Ix71Q7WpCnVqG8XEiHNfDBMSduvX5iqcAa7t5T+Q3KKKN/KDQCkABMBgEbzErZ5QhK GEcVwW4EBuxouoPB5shZ4P9e8mczffSxJs3GUqLArFD/Y/Lbj04wdWKlkYBSV4acuJ OixEqxTE5lGzoldoXODYHXhg6NZhllNrSMvleQg++BDE59RncBUxgqMeTuW4RTj7my 00dgwOgeLtZAw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4YGKpg68BSz9rxB; Sun, 22 Dec 2024 13:14:51 +0100 (CET) From: Ihor Radchenko To: Pranshu Sharma , TEC , karthikchikmagalur@gmail.com Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] Html making 'ltximg' directory in source folder, rather than out folder [9.7.11 (release_9.7.11 @ /home/pranshu/Documents/appsource/emacs/lisp/org/)] In-Reply-To: <87r06jv8zx.fsf@bauherren.ovh> References: <87r06jv8zx.fsf@bauherren.ovh> Date: Sun, 22 Dec 2024 12:16:23 +0000 Message-ID: <87r05z9alk.fsf@localhost> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.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_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=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-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -5.99 X-Spam-Score: -5.99 X-Migadu-Queue-Id: 6A1C77B746 X-TUID: 1HkSsi1D0wKg --=-=-= Content-Type: text/plain Pranshu Sharma writes: > When doing: > (org-export-to-file 'html "~/new/path/thing.html") > and the file option has the path "~/other/path/file.org", the 'ltximg' > directory is made in "~/other/path/", which is not intutive, or useful > behaviour. > > > (the option 'tex' is set to 'dvisvgm') Confirmed. Something like the attached patch should fix this. However, 1. It will be a breaking change 2. We are in the process of rewriting LaTeX preview backend, so this may need to be addressed differently I'd like to hear from Timothy or Karhik on this first. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-org-html-format-latex-Store-LaTeX-images-alongside-t.patch >From e881f3a64b1b16fe3f32cd838d8cc88d79c0fd29 Mon Sep 17 00:00:00 2001 Message-ID: From: Ihor Radchenko Date: Sun, 22 Dec 2024 13:14:07 +0100 Subject: [PATCH] org-html-format-latex: Store LaTeX images alongside the HTML output --- lisp/ox-html.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ox-html.el b/lisp/ox-html.el index 716b7e9596..1ca7c81485 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -3063,7 +3063,7 @@ (defun org-html-format-latex (latex-frag processing-type info) (concat (file-name-as-directory org-preview-latex-image-directory) (file-name-sans-extension (file-name-nondirectory bfn))) - cache-dir (file-name-directory bfn)) + cache-dir (file-name-directory (plist-get info :output-file))) ;; Re-create LaTeX environment from original buffer in ;; temporary buffer so that dvipng/imagemagick can properly ;; turn the fragment into an image. -- 2.47.1 --=-=-= Content-Type: text/plain -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at . Support Org development at , or support my work at --=-=-=--