From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id ACjxMcpBxGJClAAAbAwnHQ (envelope-from ) for ; Tue, 05 Jul 2022 15:51:06 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id ANXpMcpBxGIWKgAA9RJhRA (envelope-from ) for ; Tue, 05 Jul 2022 15:51:06 +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 3FB512396E for ; Tue, 5 Jul 2022 15:51:06 +0200 (CEST) Received: from localhost ([::1]:57742 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o8ixE-0003dG-Je for larch@yhetil.org; Tue, 05 Jul 2022 09:51:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50028) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o8ivs-0003br-5r for emacs-orgmode@gnu.org; Tue, 05 Jul 2022 09:49:42 -0400 Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]:53180) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o8ivq-0006GF-0f for emacs-orgmode@gnu.org; Tue, 05 Jul 2022 09:49:39 -0400 Received: by mail-pj1-x1035.google.com with SMTP id fz10so6140319pjb.2 for ; Tue, 05 Jul 2022 06:49:35 -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; bh=znBR2iHv5lBmat5L8HVeWYRYfRfNnkeWDBkYZb+b7dA=; b=fdFZdykiaktMsxybf9QckDv2spWOzgJ/MM/SjpV3OJ8WTo+S3PLMltLBhaY+eixuCD mE82loMqmBnyKGLfrU6RzheEmKbxisD/wfJyqMjxZpN0bBpEuDNR5C/XAdd4ruc2IVdl LtFuuNkVUpTzR93uYuKCD7HvgBkeJHpb7yU4R10PuMDAs2L8iQxwbLeMEqjtKUEnFnrQ 78qIrHCg7vSVEiqHYaOHYBA+Me0gGxRaDxuGTvTfJ9Mewhv7KNeNAlEAskKDigETphSJ ue8eXMj/XoKa7jV+3ldvLVF54NnesrWIM/cB27d/l0YaItOoV/QAXrODFAw+zpK96yzc X2AA== 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; bh=znBR2iHv5lBmat5L8HVeWYRYfRfNnkeWDBkYZb+b7dA=; b=l0lQZS2r9Gas2P8tk3j7C22Su85xwe/+xLiZgIlcixPm3hd/xMBjdxYSp4ce+er/lI gzYWX0cSjsn5jEM1wRB1kzIYkUsT3/GAcrrHu/FGSed2AXRF4xewvjbC2vMepPoqWImk A/nIIwZUDWXvqcQV013HuYYwzTbd+KgxDi/lBaChTtkWb7Q4Qvjo63P0TGjYAOWPq/pA zbk6QUp+nL+dc8lCv4ofo8ZbtHWqoC/skgMaPbrUul2mhOb+zoRbbFDs+R77kt7NqudG LZCG+tdEqbtUE3u8g0W/MQJNTWWQtXwjh90bgpR+3omYyfY4azBhqtfCPPvHiX/8IP6X 8ySw== X-Gm-Message-State: AJIora/iHsVMgQcHGqI/11A9BaV/NUJUf1lyb+3FMQMijy1AUGsNlQkA JrWItDgFEp1HrsIqxpdQhvY= X-Google-Smtp-Source: AGRyM1tLW4W420i4Az9QLWxXa8U3ZkvIqkf6uofOUn9EBQhr8glZpmhERg2r+RbTQsM9SF8O0n9sFA== X-Received: by 2002:a17:902:ce05:b0:16b:e725:6f6c with SMTP id k5-20020a170902ce0500b0016be7256f6cmr8815054plg.110.1657028973393; Tue, 05 Jul 2022 06:49:33 -0700 (PDT) Received: from localhost ([128.14.140.248]) by smtp.gmail.com with ESMTPSA id u10-20020a170902714a00b001693bd7427asm23515996plm.170.2022.07.05.06.49.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 06:49:32 -0700 (PDT) From: Ihor Radchenko To: Daniel Fleischer 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: References: <87fsjfn7jw.fsf@localhost> Date: Tue, 05 Jul 2022 21:50:42 +0800 Message-ID: <87a69nmzwt.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::1035; envelope-from=yantar92@gmail.com; helo=mail-pj1-x1035.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=1657029066; 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=znBR2iHv5lBmat5L8HVeWYRYfRfNnkeWDBkYZb+b7dA=; b=aPJTfedyX8EwvM++cAVUKaqcui1Gv3RCOfRojl+mVobECkb2h2Bt+HypuXu4393Cc+ehEf mzaGJ0uZoBPyfo8h6rJomr5Xwddw8AzGJF6ZuDun1cHsETbAyYljeUhl6ItnBJKfpon8ut 13MyDvKi3qaRetTogzvUZm2Afv6F3nwHFWLf4/Nxi36n6cXoj/OtUsGvXMYtL6YcJqTMWZ qRGxrlBOsqdpBbmo29DVaSAXqhsrhAtix62bRHnt4FZvbNRTzK+UqyNh9J91iX1iMzrge+ URs35s4mfqPnemOnyktsiBVt9BqU5kcRaRGXe1hHsaq2vnCXdW1yiPr8e1PUMw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657029066; a=rsa-sha256; cv=none; b=d4ApL9w4ySCs3qQGtalNXjlTmECh/CTCEnkGbtiq1J6UaoEm/3Uzv3oJi3lTFO7/Opu3s7 x2plq0R/rra9K2IcZTE242qbm9MkCAUTAHmD7x5J1YF8NetngK9SRzQHfnfFM24XqdFKcb z4buc5YWe/oWfsiwW8CNzU6MqrWNSt80TpUUVXkn2Vf1GpatM5OmFd0erczYGlyXIZmQ8G 0iTgFDAmnN2vW+OpHOao8v1dEtoShPlsJdGg7GCbjZh0Qn5N9x9uxFpdhOKVUh3bIQndWW KLUZwpr3/lYPQ9kivqW9SXZDIlFyGSii29FlZvLl76da5Tbavd0cQHGzKhZyxw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=fdFZdyki; 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.45 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=fdFZdyki; 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: 3FB512396E X-Spam-Score: -8.45 X-Migadu-Scanner: scn0.migadu.com X-TUID: 43MaD56ZHaHp Daniel Fleischer writes: > 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`. It would be trivial if org-latex-pdf-process were not a custom variable. I suspect that we may need to use something similar to what export does. However, setting the right working directory is what other babel backends do. The fact that ob-latex is not doing the same is an unfortunate inconsistency and causes the input issue and can potentially cause other problems. Best, Ihor