From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iFeyGHxHsWD4dgAAgWs5BA (envelope-from ) for ; Fri, 28 May 2021 21:41:48 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id QCktFHxHsWABDwAAbx9fmQ (envelope-from ) for ; Fri, 28 May 2021 19:41:48 +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 AB2FD16D5B for ; Fri, 28 May 2021 21:41:47 +0200 (CEST) Received: from localhost ([::1]:48120 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lmiMb-0007g3-Dp for larch@yhetil.org; Fri, 28 May 2021 15:41:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35448) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lmiM0-0007fl-JM for emacs-orgmode@gnu.org; Fri, 28 May 2021 15:41:10 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:12997) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lmiLr-0003zu-Lo for emacs-orgmode@gnu.org; Fri, 28 May 2021 15:41:08 -0400 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id D4549240007; Fri, 28 May 2021 19:40:55 +0000 (UTC) From: Nicolas Goaziou To: "Bruce D'Arcus" Subject: Re: [wip-cite-new] Initial implementation of `csl' citation processor References: <87y2c1dym9.fsf@nicolasgoaziou.fr> <875yz2c0r0.fsf@nicolasgoaziou.fr> <87fsy6n8d2.fsf@gmail.com> <87y2byaim4.fsf@nicolasgoaziou.fr> <877djin4qg.fsf@gmail.com> <87eedqahd6.fsf@nicolasgoaziou.fr> <874kemn3qt.fsf@gmail.com> Mail-Followup-To: "Bruce D'Arcus" , org-mode-email Date: Fri, 28 May 2021 21:40:54 +0200 In-Reply-To: (Bruce D'Arcus's message of "Fri, 28 May 2021 14:26:01 -0400") Message-ID: <87y2by8x4p.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=217.70.183.193; envelope-from=mail@nicolasgoaziou.fr; helo=relay1-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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: org-mode-email 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=1622230907; 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; bh=hFAPWedB1+Cfk2ENQApCxYObZloJoluS843GWFcQLGc=; b=k0t5M3Cz31Zf2R1LcH68NHxxATWUnHA+v+byPnOQ31XfvIyTqLrCcmgnvBGUT+lU0GYAF6 SNDDHFk770eZuTxWyHl6hIkOkglTRnkY3ytqdTWQ31vLiXdS+pTDeKzXaB/cwTdm94Y2uR CCwwWsT+fTe7LewE0suvJ0uykvu+Y/NAg4XMSvXe6yU++n6QV0m04cUTH548dPyiibVBzf hfKE5LDnvcWA72YG1htGVKov8l3RcIXWsPsMsna9y0TZo5naTz0KSSGoQsARinpe27mnFW nA7G19LCizs4GSZhRgYN4Pggw45rIqje3yBQ0LSEK0PAfOZfubDu4ESiB6gqdA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622230907; a=rsa-sha256; cv=none; b=UW95dJoVL3jYIySYFqLZkFrJ9liIY4iGyWwW5IRaewg9UCOkqA4NW0V9/IQYFCmZAyczqx cQ0Om2Fvqk1et7fUrxScvtJmm9f3dERA8lRJ2PeqFcjKhzMf/HvOGpWPDgYQxwrifg0nic +SZU7YFyfzRFb55+g8IA8A0yQhONf/RM9hxZvUeYJ42ffsZYH6645XFgUdUaGT4fPvv4gj pOuIGKbMiiaXOL2m7y8bl6eHZ6CwWhIdWZ7ToccF941YSbrWFI3RAeAGPg8EY+dLpMM2oH aH08OpL9Uk6SllhD2o9X0z4LZjCK3nzssVH9LRj7wOwc44TLoob4awW2nADefQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.43 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: AB2FD16D5B X-Spam-Score: -2.43 X-Migadu-Scanner: scn0.migadu.com X-TUID: 808gi4T6D4bA "Bruce D'Arcus" writes: > On Fri, May 28, 2021 at 1:54 PM Timothy wrote: >> >> >> Nicolas Goaziou writes: >> >> > I wouldn't hold my breath. >> > >> > First, IIUC, there's no reason to force biblatex over natbib OOTB as >> > both are widely in use. But, more importantly, "oc-csl" require the >> > external Citeproc library, so it cannot be loaded by default. As >> > a consequence, no default configuration can use it. >> >> If you don't mind some follow-up questions. >> + I take it that natbib is used by default for LaTeX then? Is it fairly >> easy for the user to switch to biblatex? >> + With citeproc, I don't suppose something could be put behind a >> (featurep) switch to use oc-csl if citeproc is available, and fall >> back gracefully otherwise? > > Not sure about generally (Nicolas can comment on that), but in this > case, if you specify this: > > #+cite_export: natbib > > ... the export process runs through that processor, even if you are > outputting to plain text or HTML, where natbib is not supported. Exactly. By default, no export processor is selected. All citations are removed from output, and print_bibliography keywords, ignored. You have to actively select what processor you want for the document, globally, through a variable, or with a cite_export keyword. Therefore, the processor does not depend on the back-end used; you are supposed to choose the one you think to be appropriate. There is no falling back either. You get what you asked for. That's the way. It could be possible to change `org-cite-export-processor' so it becomes an alist where you can associate back-ends to processors. But I can't see how to transpose it nicely to cite_export keyword. I'm not convinced this would be an improvement either. For example, you may want to use two different processors with the same back-end.