From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id ANFcGEY9xGJKBwAAbAwnHQ (envelope-from ) for ; Tue, 05 Jul 2022 15:31:50 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id wO1YF0Y9xGLpAwAAG6o9tA (envelope-from ) for ; Tue, 05 Jul 2022 15:31:50 +0200 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 0A9F311E09 for ; Tue, 5 Jul 2022 15:31:50 +0200 (CEST) Received: from localhost ([::1]:37164 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o8ieb-0004bF-51 for larch@yhetil.org; Tue, 05 Jul 2022 09:31:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44640) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o8icx-0004a1-GG for emacs-orgmode@gnu.org; Tue, 05 Jul 2022 09:30:10 -0400 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:34404) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o8icv-0002nk-JC for emacs-orgmode@gnu.org; Tue, 05 Jul 2022 09:30:07 -0400 Received: by mail-wr1-x435.google.com with SMTP id r14so11787740wrg.1 for ; Tue, 05 Jul 2022 06:30:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :user-agent:mime-version; bh=572k7gejMvhO1AgNpw3oUcjJUxxBDQ25w+cRmMGQvsk=; b=HMKRiynLyhBBXLHK9EfXWMlWClBjVNVNeSiHrfO/YvpGLAfLEtyZetEXhnYY33iVNV L95GwYujXK+TnYq98k56dsj1matyBZbZAH473lSPYjraWCBhaYuN4IXBiso3+Qikskts OeBfJkV+qTcBwDEzbb0V6r6JlC+awKzpc/F3mGsZez+RmkDJCU+qONYpHZ14/lvZytFO 4jqfsvRJS2a6my+YBTM1p8TdyxeAqTkbk2qhZ0kgW12KJkeGocqdLZyff5jEKdmqC7hi scel2qXKDUjZKk2JHXtAJwaQAIcGdY/GtH3U8Zng5ro+iTRlxC+66/DbZqq6Hjx9dFP0 7nVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:user-agent:mime-version; bh=572k7gejMvhO1AgNpw3oUcjJUxxBDQ25w+cRmMGQvsk=; b=ojqjCQ0TqXg7W/brfiMir6gCK64js+xGlI1b8qxJLqcn4OMQg3cnSgpjDrVHiko+Ay VHerYC2oMjaQD7SMrVrV72Uy/RrBTX63+6WzniIvkE2OKQ6WWrl0h/7hrkZLaw2Xtgsd dof4X2cQ3SxdLZwoo6MZgvfJQURE+WgJEzQDoHOagN4kcPJ0bEOQwDjorUhYr4w8pnHz 8kMkFLNGXyoTiWLtBDRCLI4lB85QJustvmUrFT5RZSTHqWYdR1w5P6rCdDHVhAo5D4WV Hur2wrg0XEbWWrF6gk42xffDaJ+A5rBdsUuRCkz66eEi4msgLTiGjj9hOFjAASs8P5m5 wAng== X-Gm-Message-State: AJIora8mDaXei5eToyJw4ensTwnBWPRDFlmL7/Hkbqs1nOk2gR5sID5c OYEGPXM/9BXfJEvHZrHsXbCElpItel8j0w== X-Google-Smtp-Source: AGRyM1s1LatfPIpgQXClWKFR0B3W7euAu6MNdOOpx0QPfgxkPVznfmzNw4s5TWDyd6Oxt9CSCcBIUw== X-Received: by 2002:a5d:60c2:0:b0:21d:6a52:3db9 with SMTP id x2-20020a5d60c2000000b0021d6a523db9mr10104253wrt.61.1657027802448; Tue, 05 Jul 2022 06:30:02 -0700 (PDT) Received: from Home-Mac ([141.226.10.20]) by smtp.gmail.com with ESMTPSA id t5-20020a1c4605000000b0039db31f6372sm19239087wma.2.2022.07.05.06.30.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 06:30:01 -0700 (PDT) From: Daniel Fleischer To: Ihor Radchenko Cc: emacs@vergauwen.me, "emacs--- viaGeneral discussions about Org-mode." Subject: Re: [PATCH] ob-latex: Added support for including files with a relative path In-Reply-To: <87fsjfn7jw.fsf@localhost> (Ihor Radchenko's message of "Tue, 05 Jul 2022 19:05:39 +0800") References: <87fsjfn7jw.fsf@localhost> Date: Tue, 05 Jul 2022 16:29:59 +0300 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::435; envelope-from=danflscr@gmail.com; helo=mail-wr1-x435.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, 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1657027910; 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=572k7gejMvhO1AgNpw3oUcjJUxxBDQ25w+cRmMGQvsk=; b=BPzlw1ruOJrVxoyflxoTF41Ux2EHukWQWrTNyFdwn0V76l+n1WnvT4+obURuYb+TkP8+Zo 6xSST4gdxzwPjWD5kHoG2w3lt3br3CnF50wk347iYxFQXAvo5uhupg9pUa1eARgIWSqBX4 rZ9XSS13/1fNcH7zwb7u9srMuAyocraj/qp2sS4nzr3NMXQjSdE8FTU1tKda30l0bczC92 AWGqSMANV+D7+x78FId8TGJ+jXo5GDAhj4hVA/wZRVo29EC6ItbSHyVWHSBugTetdcm46W WQIGkjFkC4Wd/ct/U6+YgJxXmcv8aAzhHVm13STgY0/P2Vbo+QXKzST1dl0sog== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657027910; a=rsa-sha256; cv=none; b=YdO1voM6u+y4BNxQB/m5BZnBMffBam8qf1MthH/H2eFWMp4fiM0Tpy+dSI9sYuvJpfIJN8 KBAIip5XKsD1x3ZWVg6c3FspudB3DTDJv4FEV0wp2Nw1rAuLyI8bhPrrjA12jn6NXVe9Sn ci+TRwz+jxgLbzAMF96mVkN5QMHB+KYncrOgLfltFpuZ5++B38xsIufL1PZ+cxSrMi2Jip 3wtw0mRay2dNHbOdMiK1QiSkE05hgASr1Pm3dEq44NSeau8XWg8EBDFj7Hc0EM6po9J/pV qAitCkLENWYHX1K4Ux61xvFIGUXIgKAX6iNEZV5zWcBlRu3uaGwajv+ct4ernw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=HMKRiynL; 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" X-Migadu-Spam-Score: -8.95 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=HMKRiynL; 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" X-Migadu-Queue-Id: 0A9F311E09 X-Spam-Score: -8.95 X-Migadu-Scanner: scn0.migadu.com X-TUID: GZshRlSXNORO Ihor Radchenko [2022-07-05 Tue 19:05] wrote: > Rather than changing paths to absolute, we can simply play with the > working directly for latex process and set it to the directory of the > .org file (unless :dir argument is passed to the latex source block). > This is probably the most expected behavior. If I understand you correctly, changing the latex processing directory enables you to use relative paths in macros such as \input{}. If so, it's as trivial as adding `-cd' flag to `org-latex-pdf-process` when using `latexmk`. -- Daniel Fleischer