From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id IN88LRKjXmSCYAEASxT56A (envelope-from ) for ; Fri, 12 May 2023 22:35:30 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id oB09LRKjXmRGEQEAauVa8A (envelope-from ) for ; Fri, 12 May 2023 22:35:30 +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 80DC12333C for ; Fri, 12 May 2023 22:35:30 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pxZTT-00075U-Fw; Fri, 12 May 2023 16:34:47 -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 1pxZTS-00075H-1n for emacs-orgmode@gnu.org; Fri, 12 May 2023 16:34:46 -0400 Received: from mail-qt1-x834.google.com ([2607:f8b0:4864:20::834]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pxZTQ-0007Bh-JE for emacs-orgmode@gnu.org; Fri, 12 May 2023 16:34:45 -0400 Received: by mail-qt1-x834.google.com with SMTP id d75a77b69052e-3f38d2c36fdso35710641cf.2 for ; Fri, 12 May 2023 13:34:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683923683; x=1686515683; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=hwB6M5hl8XcQ2n5wucK3x9tbhTO4J4C/oYGy1mdUl48=; b=b9/jNHl82g98dX8b/equW1QCerCUNlbnFv15EVKElOzgGSZuv/ZkuJSAG5nbN8D+1P cSN5YO3sX3ZKFyTlASR11ysONs3YIW1gaNXitF2mB5qc9GhVi3qvWD0kWs3lvphmiCpN 6iIljXYlSBcmMJG9PtOrGNkP0Zzbabp5ScIwHaJ+W6meFY8dqsYhQivxTDDOlnEhttqL a0KKYrW/nWqhswDP2SNQWU7aYFoeoIs44RTPNRNZ6Wh5t8DDopv6KTtuz8wHNM5KTxtb xOJ84KBUIYwkiy8ikK/45CcL9y9fqtSWApU1twRu+z1wCwUQcsPR/V3k2ujyfN2D2gVV J7yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683923683; x=1686515683; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=hwB6M5hl8XcQ2n5wucK3x9tbhTO4J4C/oYGy1mdUl48=; b=KoAM5E7UJxzgZ4JmymCBLv5VE4SNq6IBwDD4RIU2+QW9QeT0JUq/sjam/8+fJ8zz6a tUmIbUViWIMea8X9K2tPmc4uCY8IMmnV6acBD/tH4PjVkVne287M7PLgunaN1ieH9TYx kkYrFr2a/uJ3xpar8E9/UzimuseEs3O///GAOCLJ75q3dogp0xqYf/6Z+4zpSKbQa5L5 UEy2kdOdLOH15lcJ0XHg4GEG4dXfFwdUMnCW7LZBBxrnUQ39kxSnSlzr/aS/zQuem+Pn nWxBF2jmyoBLKBSWfIErChNZQ86J0w8jgyCEWvfTdZ6X793U0jQQx9ipUG5OSwv16k+Q p1Ng== X-Gm-Message-State: AC+VfDwvbbekkhi+FT1mse1pM0zdnDxXJ8l/wjBARXsQBDg+EqTUSAdc z+fcUfzHgSoXO6UYfU/Sw/rE3pXnEbU= X-Google-Smtp-Source: ACHHUZ4TW61Fqy57dCf+3e96lLJyH/IauGVbP2hXrh6Y84Or8kDHsesJ4L8s35YN78cxLni3Y+s41w== X-Received: by 2002:a05:622a:118e:b0:3f4:f44d:9674 with SMTP id m14-20020a05622a118e00b003f4f44d9674mr8951770qtk.67.1683923682937; Fri, 12 May 2023 13:34:42 -0700 (PDT) Received: from [192.168.0.204] (c-67-162-124-190.hsd1.in.comcast.net. [67.162.124.190]) by smtp.gmail.com with ESMTPSA id cq6-20020a05622a424600b003f4f6ac0052sm828478qtb.95.2023.05.12.13.34.42 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 12 May 2023 13:34:42 -0700 (PDT) Message-ID: <07e3eab0-8cf5-905b-5a54-3917eb2dcf21@gmail.com> Date: Fri, 12 May 2023 16:34:41 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Content-Language: en-US To: emacs-orgmode@gnu.org From: Panayotis Manganaris Subject: [FR] relative buffer-local path to bib for org-cite biblatex Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::834; envelope-from=panos.manganaris@gmail.com; helo=mail-qt1-x834.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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1683923730; a=rsa-sha256; cv=none; b=BIH/RZVOwwGmdV9y2teagMitMIdSoaKeK7sR818k5do2uDLKmOMaEum8ws6tcakp3jjql6 rDP1tKFNqs0/B1peMK7hTogsyZkfId1faM42loGYDbZgh3V3UOFvKVWKB3f8Hqjyb2pNeG OLFzMlvVULBlDxC0Pa/Gguqdg19w2P35WIl3gObMkW4+OzdfEKnJDi/NqZlCEPCrU0jBTG t1i7DAzBPrlEdRbKJ5tggCm8NZhf/I6DbMqeIzgpMRHR7blt+0OkS4MSo9FVIo0jfmyNsV DDgvhVKC+bDVzfrSUA3RS7S9kF4RDvgJmI1ugeDYbTvJfUMPuchl7zpXaz6H8g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b="b9/jNHl8"; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1683923730; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=hwB6M5hl8XcQ2n5wucK3x9tbhTO4J4C/oYGy1mdUl48=; b=P8UZYJOFxvy9EqAZ3CDzpnShvCm8ujMrOQnO8uMgu87RqaAqzQCSkwdGJuQ9RmNBoEl6vx wMXa64v8SNvfisdkD/BNc1hgnxRkvFVSYMrKvJyUBtge8a22lJubU+5lgXqLMDA51yyYRi fbblmCWha0123wFNPuimvfoWT7NUpzPfprKjKviPs0ZwtkDmertek5feBcO9li98XBl/rA i6VG5hImKUf979k47TncOrvKI72qnHrRYAbKgklvGZjwTR/3YFn1lkgSOyr0kevCJ90DD/ A9yfxvM2yijV8E1I7VxdM0pKvjbgYxH8E5XvSnIxRrUhD9/7OWXZKr+CXy8bjw== X-Migadu-Spam-Score: -4.87 X-Spam-Score: -4.87 X-Migadu-Queue-Id: 80DC12333C X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b="b9/jNHl8"; 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-TUID: 0b+yZyycsfCt Hello, I just noticed that adding a local bibliography for use by the biblatex cite processor gets exported to latex as an absolute path. `#+bibliography: main.bib`  exports to `\addbibresource{/home/me/etc/main.bib}` I would like a setting to allow this to be a relative path if possible. I usually generate a local bibliography when creating a manuscript repository intended to share. I'd rather have the local bib be defined relative to the main file in that case. looking at `oc.el` I see no way to make this setting. but I image it'd be popular. ```elisp (defun org-cite-list-bibliography-files ()   "List all bibliography files defined in the buffer."   (delete-dups    (append (mapcar (lambda (value)              (pcase value                (`(,f . ,d)                         (expand-file-name (org-strip-quotes f) d))))            (pcase (org-collect-keywords                            '("BIBLIOGRAPHY") nil '("BIBLIOGRAPHY"))              (`(("BIBLIOGRAPHY" . ,pairs)) pairs)))        org-cite-global-bibliography))) ``` I'll have to learn elisp soon. Thanks for maintaining my favorite tools! Best, Panos