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 yGAEBfO4z2PnHAAAbAwnHQ (envelope-from ) for ; Tue, 24 Jan 2023 11:54:43 +0100 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 8MkoBPO4z2MLFAEAG6o9tA (envelope-from ) for ; Tue, 24 Jan 2023 11:54:43 +0100 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 56F0131036 for ; Tue, 24 Jan 2023 11:54:42 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pKGvs-0007Wz-OT; Tue, 24 Jan 2023 05:53:40 -0500 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 1pKGvq-0007Wi-WA for emacs-orgmode@gnu.org; Tue, 24 Jan 2023 05:53:39 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pKGvn-0006tw-Cq for emacs-orgmode@gnu.org; Tue, 24 Jan 2023 05:53:38 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 02508240697 for ; Tue, 24 Jan 2023 11:53:32 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1674557613; bh=Pv7/aqHrNy1OtAXGmwxyCWU1q4TABhiCW1v8yPKiLrg=; h=From:To:Cc:Subject:Date:From; b=AG3XHCG8OowCjwnJs7WhYVmXVCDiAX+n4lWgZDgDUlRE14vmWEBc1O2tB9sxU/g+G n36VuxCXRMc1fqPmIZ45NEYyU4z4GXeVSXMcCI7sJG6F4WZCsY6mRgjAR6XyVDsh7G A2dmOcb+45Bmb/PqrH9uX8oNwKZbxYiuCDzTrRshUdyjWytKJG9DaX2ziNvc2x0mVl DOh6bZAWvC+WgochqbFuevJF8DbbC/3V2uuafEO+fEV/VVcEM/Q8xnWAY4oEzppABW t4vFIRPhvaPVsXs8dO8H82mx3FODoiJ48QdIFbjql7ePZH3EskYo9w9gx8XUEZsd13 VZdLwsT9BXfKw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4P1P2z4dtdz9rxN; Tue, 24 Jan 2023 11:53:31 +0100 (CET) From: Ihor Radchenko To: Edgar Lux Cc: emacs-orgmode@gnu.org Subject: [BUG] #+cite_export: ... bibstyle citestyle cannot be universally used as global defaults (was: Patch for \usepackage[ ... natbib = true ...]{...biblatex} with org-cite) In-Reply-To: <1897723911.54727.1674507511254@fidget.co-bxl> References: <795525985.881228.1674077475456@ichabod.co-bxl> <87cz78qo5d.fsf@localhost> <101392154.966532.1674332749371@fidget.co-bxl> <873582om65.fsf@localhost> <865655434.1045612.1674415160995@fidget.co-bxl> <87tu0h5x33.fsf@localhost> <1897723911.54727.1674507511254@fidget.co-bxl> Date: Tue, 24 Jan 2023 10:54:02 +0000 Message-ID: <87fsc05hkl.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674557682; 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=sISRk22e0n3c9ljZvCiOc3WqBtqZ9GYLHJ9BFFS6sqc=; b=L6WZgCM1BoEm5oo5GL+Q61l9upjBNV1TmC1+1F1CbLZmjuAExsTBl79/n3K0VAZ6jYQHTo 35Qx6okelRmUiVygI8vKjRn+XyDPnFG4TBDqRCnAhfIlckl7G0sjz9+amu2Up968En1VtX LNESXuDv3ADzRtq/V7gGXXUpwzPL7PWXWbKEo/c+mKPUOWpeARKU8Ayw031irhRmnKQGEM BiNz9+80eFJtUGVLq2aM5ymAlFWnSTddtbQEKL3Lc0VoqhRZZ7tQ1l5N9qWzejKlhunPUy TRs/OuHm+37lqVZbglhmr7q/Ix87yaJYnEPu0JY1B8nJ38d12Uo/O+0mGYJdig== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=AG3XHCG8; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1674557682; a=rsa-sha256; cv=none; b=di5vzoEJqZMD8Fo/u9uNR4fHn4+hhPuHte7MaxKaxFjYFAsiqlooCvlDFzTex1IkadICZQ QbV4wXkS6Pp3lQqCp8SbDB/TsalmMF82yQNuZChWmL4lNjjTnPIQ3Bl+v40K5P45xPeHUw farMDdv8IadalQAXud6xMqh+wU2CwuSqJMDGb89fcGsX3GAA3OeMinvL8unVvJieLvQR4P azHtbihNIVy/ITKaeUarfz7dC4hGk3psa3MYLTUVgJbtivoqBMN3bVLQZElbl0RZZI1+Bg sHwYf7ycktEI46uzAONtaRAhK03oXZD4PXvZDzutXJjckjMwSV1ASYsypDU7vg== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=AG3XHCG8; 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"; dmarc=pass (policy=none) header.from=posteo.net X-Migadu-Spam-Score: -4.55 X-Spam-Score: -4.55 X-Migadu-Queue-Id: 56F0131036 X-TUID: ZJ4E9u6/r+AA Edgar Lux writes: > I thought that it would be preferable to have a native Org syntax. > >> I do not like passing the options as-is in #+cite_export because not all >> the possible biblatex \usepackage options are affecting the >> bibliography. Options like sortcites, maxcitenames, autocite, etc are >> only affecting the citation style, not the bibliography. And options >> like bibencoding are totally irrelevant to both citation and >> bibliography styles. > > That's fair, but it can just as well be used as a line to configure biblatex (since it is already being used anyway). Besides, there are many other options which do concern the style or are very needed (hyperref=true,backref=true,url=true,backend=biber,natbib=true). I'm not advocating for my suggestion, just showing my reasoning. As I said, I'm fine with the =#+latex_header:=. I understand. My takeaway from here is that there is a need to provide extended global defaults for both bibliography style and citation style. >> This code is by Nicolas, but does not seem to be consistent with the >> idea of "BIBLIOGRAPHY STYLE". >> >> I am CCing him in cause if there is something I am missing. > > The docstring says: > > ;; "cite_export" keyword. If you need to use different styles for bibliography > ;; and citations, you can separate them with "bibstyle/citestyle" syntax. E.g., > ;; > ;; #+cite_export: biblatex authortitle/authortitle-ibid Which is a questionable design choice. I was referring to higher-level docstring for `org-cite-export-processors': (NAME BIBLIOGRAPHY-STYLE CITATION-STYLE) There, NAME is the name of a registered citation processor providing export functionality, as a symbol. BIBLIOGRAPHY-STYLE (respectively CITATION-STYLE) is the desired default style to use when printing a bibliography (respectively exporting a citation), as a string or nil. Both BIBLIOGRAPHY-STYLE and CITATION-STYLE are optional. NAME is mandatory. oc-biblatex simply deviates from the global paradigm, making oc-biblatex special compared to other citation processors. Not ideal. I think that we have a fundamental design flaw with org-cite: #+cite_export: processor bibliography-style citation-style introduces: - default bibliography style set document-wide - default citation style set individually in every citation via low-level commands, BUT NOT GLOBAL DEFAULT CITATION STYLE. Basically, CITATION_STYLE cannot currently affect document preamble by design. That's why awkward workarounds in oc-biblatex, where default citation style can be set globally, and we have to attach citation style to BIBLIOGRAPHY_STYLE keyword. I suggest the following changes to the org-cite: 1. :export-finalizer should accept export processor triplet instead of bibliography style as 4th argument. The assumption that only bibliography style is required to finalize the export is clearly not accurate. 2. Allow passing extra arguments in #+cite_export: #+cite_export: processor[opt1=val1,opt2=val2,...] bibliography-style[...] citation-style[...] The options listed within the square brackets will pass extra default options to the processor/styles and used as needed by citation processor implementations. WDYT? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at