From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id GEWnMh0bxGJb2AAAbAwnHQ (envelope-from ) for ; Tue, 05 Jul 2022 13:06:05 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 2PeEMh0bxGLMWQAA9RJhRA (envelope-from ) for ; Tue, 05 Jul 2022 13:06:05 +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 631E21DF4 for ; Tue, 5 Jul 2022 13:06:05 +0200 (CEST) Received: from localhost ([::1]:41988 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o8gNY-0001yq-6h for larch@yhetil.org; Tue, 05 Jul 2022 07:06:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41520) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o8gMC-0001wF-2d for emacs-orgmode@gnu.org; Tue, 05 Jul 2022 07:04:40 -0400 Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]:50998) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o8gM4-0001Rk-S9 for emacs-orgmode@gnu.org; Tue, 05 Jul 2022 07:04:38 -0400 Received: by mail-pj1-x102b.google.com with SMTP id a15so5085638pjs.0 for ; Tue, 05 Jul 2022 04:04:32 -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 :mime-version:content-transfer-encoding; bh=mN93vtXcKq2D/+8IGHvy3fCKg/skmzTJRRBLGqmluGc=; b=YfaWN5ky38kwagNRi4zdgiAOZU10yQqeRk9Ra7I97239G3vUhusSkixICDtViJd/FP ew9DMMuuplehfmwgWJW1rcjLmGDLDF7tKxr/j7W14Vrz71RQJ0f9y7OEQCNdDkCh3pmT QafG8UTEv6Ubiue3aoUSN1L/8B0jsjnlasQJMc+GgAzntkBa+HVS9gYTA2AVr+xdfTqM aYYlBEvqhnkDime+9/PKrs7qLwdCXUXOmm941XHR98WluKkfoT0BqRwmpYqJ17KAJRGX OY3MTYwvm3ejXD79Ewnbmkv27c3bd/uadqkAbaWj6ykhVMVp75jBM4mob+tdcErh38SM kECA== 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:mime-version:content-transfer-encoding; bh=mN93vtXcKq2D/+8IGHvy3fCKg/skmzTJRRBLGqmluGc=; b=h8iVstheyDYJ+ImVP+PjYs3QRIt9T/+ljUVI/TlYv8L5wQDZglPlsfjzv8h5gpQH4c wEWlUd2qmraVLvppQAc6wkWm/BZHx281WU9Kvc8Y2CTYcNU9giWt4fY27/oE4X43LgiX RfSW4ExKWP/uBfXoMhW4nWkEG3C8GZpjz31xNNFD5oMnAelYUHFLORvOQFP0P4yR85PS 50uEVoWcZOCWvETtJGPEF9gMPgiUbXc4SF4fRv3Clwsn08JsKaP/tzYMP8Rm7KYhVMId Jq8CzQyMGHpt5g+e3BSVTvk17PqdU3TDjNRTisfrOmHiNcA4UqOB2xONsxqK9K/XhcT/ llKA== X-Gm-Message-State: AJIora+dehttuBDdgTpkP/Nu7riKESUjNkGGmtfZ5xBdnCrgDaLzTvJt I9gfIkFFIQlQbhubpPFDrcE= X-Google-Smtp-Source: AGRyM1uC1cywqi2Mmnqu5WJwuwb1gFcbi2jn9+qzHkeliAm+VT8+QEr+MguRUkJMzCb0rK+PtLqfWw== X-Received: by 2002:a17:902:d2d2:b0:16b:e8da:409b with SMTP id n18-20020a170902d2d200b0016be8da409bmr7405673plc.81.1657019071414; Tue, 05 Jul 2022 04:04:31 -0700 (PDT) Received: from localhost ([128.14.140.248]) by smtp.gmail.com with ESMTPSA id x3-20020a170902a38300b0016be4d78792sm3923682pla.257.2022.07.05.04.04.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 04:04:30 -0700 (PDT) From: Ihor Radchenko To: emacs@vergauwen.me Cc: Daniel Fleischer , "emacs--- viaGeneral discussions about Org-mode." Subject: Re: [PATCH] ob-latex: Added support for including files with a relative path In-Reply-To: References: Date: Tue, 05 Jul 2022 19:05:39 +0800 Message-ID: <87fsjfn7jw.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::102b; envelope-from=yantar92@gmail.com; helo=mail-pj1-x102b.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, 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=1657019165; 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: 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=mN93vtXcKq2D/+8IGHvy3fCKg/skmzTJRRBLGqmluGc=; b=hvyQVCVN2IBz8bBxLprs0PYW8uHDEbQu7Ex6FTxy5U+m0hH6FMDMLG4RzPq+4Iva5o84jA NL9ogNnqf04nkbcB+lW/5ihRRVKmkJHxOWGrlEisreTXYpbOd3lFX3jSvBVqYo8HDyDfX1 492khM0lQPXy2QK/qG5FKF4kl6oWbZs6A70yOFYdn6iZpxqp3aRic1kBcpGb0vryXTcxi3 QoSK6sf9zPthl9ZMl+sWHAFVU2YNNRPmAGr6UBVxyCb83yCSANsxxCGxsvwbhfk2cr7vCy u6g+sr7ornPFYkwEClyQOhoh2d+iwxLl9Rf+/2n0OWsLdeQGzvjvozrGfJh50g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657019165; a=rsa-sha256; cv=none; b=bUzv7vRf4+BxEZyOIbYahLeFc0rUgpSVyt7hF1WbUpS3+CYNwOw8mam+4WPJz619wFj7RN qrqXG4ioyXa0NWXqjUVDvXVhkjsBSQKU3k+wSV9/f/scuJdT76FmNUHWoFP1mC/10+UYD2 Sqm8ud9Wh6q94821yrVuiTjc07iM5xM5iFiDlFb0GL5GFgLE/6iT2wh9kvELVPpJz5W9Ql 0sck7Tpb6W8NqGhvOGDZQQS5UG6JWaB0jKLLDV3TFdE/2DCG0sjqQeml3a5pUi8lIODahG S/+a0sprcXIv1nXi7Xm+dY25uNbggx2ROuDs4r26uEQZnq+5w6o9vo8lmk9gKg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=YfaWN5ky; 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: -4.95 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=YfaWN5ky; 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: 631E21DF4 X-Spam-Score: -4.95 X-Migadu-Scanner: scn0.migadu.com X-TUID: ISHtaHsVOr2e emacs--- via "General discussions about Org-mode." writes: >> Hi, adding an "input" type of header is one option. What about adding a >> call to resolve relative file names instead, thus solving maybe other >> needs in addition? >> > That was my second approach. I was concerned that forcing all imports with > an absolute path could break existing exports? Correct me if I'm wrong.= =C2=A0 > Using the :header syntax external files can be loaded in via the old way, > whereas using :inputs all relative paths are resolved.=C2=A0 > The downside of course is that we clutter the export settings with a new= =C2=A0 > parameter.=C2=A0 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. Best, Ihor