From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mCV8IF0ks2H4rgAAgWs5BA (envelope-from ) for ; Fri, 10 Dec 2021 10:56:45 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id GK9JHF0ks2EhYAAA1q6Kng (envelope-from ) for ; Fri, 10 Dec 2021 09:56:45 +0000 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 1DBB32FED3 for ; Fri, 10 Dec 2021 10:56:45 +0100 (CET) Received: from localhost ([::1]:51238 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mvcdw-0004z5-74 for larch@yhetil.org; Fri, 10 Dec 2021 04:56:44 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41470) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvccK-0004wc-VM for emacs-orgmode@gnu.org; Fri, 10 Dec 2021 04:55:07 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:43687) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvcc6-0001DG-Qu for emacs-orgmode@gnu.org; Fri, 10 Dec 2021 04:55:03 -0500 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 0D913E000A; Fri, 10 Dec 2021 09:54:45 +0000 (UTC) From: Nicolas Goaziou To: Rasmus Subject: Re: oc-biblatex and biblatex substyles References: <87mtlourwg.fsf@gmx.us> Date: Fri, 10 Dec 2021 10:54:45 +0100 In-Reply-To: <87mtlourwg.fsf@gmx.us> (rasmus@gmx.us's message of "Sun, 28 Nov 2021 18:11:27 +0100") Message-ID: <8735n0ss2i.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=217.70.183.196; envelope-from=mail@nicolasgoaziou.fr; helo=relay4-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=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: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1639130205; 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; bh=q+GKyDP8GngKkaaDmLQeGL6p42SHel9aJQE9a9I+d04=; b=XflMrKUH1pDikvACU5NxdZKX/XtSJ+UzB88kdE8ab4kVozDdq5V7mJf2u4NvES58yIuP1t rhP7sahZ+hVmP3SfN0pJH2czPLT1Bc+dM6xQ9RPphgTQJ3P1PuPhFjV9Q8HnRFFhJTX2M7 /ku9CulOB/a8LU3MW4SypNd/VDO95S14g3j1moJUIvtzcieIC8sEhLyzhqLLZXqSq9Flww sHotxMg+n/0ImY+HqSgn9CPPL9zuS8bN8686uyGJ8eriVIwHXz8Fv43AW9aSU+FSoNzJDU CdC1OFxy/7X9ibLTQquSuZMZtsBpPjd1DbTEmafK3XibUyeNvASnFEF5Gk+mFw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639130205; a=rsa-sha256; cv=none; b=YTr3ALKhMolDUSR1VFjHXdUhFk1qrBIwgFuh0BHxgkJWjUI8Gy7uQZvFjsx1riffNeKO7v 1NrEUUenZR/nytKjgrl2Oycy5638WmVdFn6Tgg9ySjlNQjqa0x9oXH0w/49MZxXr2ti1+A U4EL/dsiFqVko1iL1aJJ0kVwY1JX3fkmPgfm5B8vnbWqu3FB6yBTGKxAcppgs7v+3Mlgms q6JOedBoXuiwgipG8MHfGw/1caPUCIcVlyzWyvIJisiG6ZLVnqY9ru9ZXyyKh41ICxq03D PtEtrr1hMia8Q4WCsoAs05qgEWRrpn9znIhNcfkp+EjnDO4+I5NAP0D/R8e/Aw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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: 1.74 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: 1DBB32FED3 X-Spam-Score: 1.74 X-Migadu-Scanner: scn1.migadu.com X-TUID: TeSXhzEPuNoX Hello, Rasmus writes: > I wonder if oc-biblatex should support loading biblatex-derived libraries, > e.g. biblatex-chicago? > > There=E2=80=99s a quite a few of these libraries: > > $ tlmgr search --global "biblatex-" | wc -l > 66 > > (This is somewhat overestimating the true number of =E2=80=9Cbiblatex-*= =E2=80=9D > packages). > > These libraries are typically nie because they are (i) easier to configure > than biblatex for a specific style and (ii) actually support some > \usepackage keywords that can=E2=80=99t be used by biblatex (e.g. ibidtra= cker for > biblatex-chicago). > > Thus, it might be able to at least support > > #+cite_export: biblatex-$SUBSTYLE > > E.g. #+cite_export: biblatex-chicago. But oc-biblatex would likely also > have to be able to pickup biblatex-* packages in > org-latex-(default-)packages-alist... > > So maybe it=E2=80=99s a can of worms? I don't know enough about BibLaTeX to answer that question. What does it entail to "support loading biblatex-derived libraries" in practical terms? I assume \usepackage{biblatex-chicago} instead of \usepackage{biblatex}, with a different set of options and commands, too. It may be possible to define a new variable, e.g., =E2=80=98org-cite-biblatex-package=E2=80=98, defaulting to ("bilatex" . nil= ). It would contain entries like (SUBSTYLE . OPTIONS) and would be used to build the proper \usepackage invocation. I also plan to allow custom commands in "oc-biblatex.el", so it could also handle commands introduced by the substyles. How we would select substyle from the document is not clear, tho. Another possibility it to write, e.g., "oc-biblatex-chicago.el" and define a new =E2=80=98biblatex-chicago=E2=80=99 export processor, re-using = most functions from "oc-biblatex.el". It would probably only be necessary to re-define =E2=80=98org-cite-biblatex-export-citation=E2=80=99 and =E2=80=98org-cite-biblatex-prepare-preamble=E2=80=99. WDYT? Regards, --=20 Nicolas Goaziou