From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CAMPGF1qsmCK8gAAgWs5BA (envelope-from ) for ; Sat, 29 May 2021 18:22:53 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id iHY5E11qsmBfBwAAbx9fmQ (envelope-from ) for ; Sat, 29 May 2021 16:22:53 +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 A83791C536 for ; Sat, 29 May 2021 18:22:52 +0200 (CEST) Received: from localhost ([::1]:44774 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ln1jf-0000Ab-NF for larch@yhetil.org; Sat, 29 May 2021 12:22:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41488) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ln1j4-0000AE-14 for emacs-orgmode@gnu.org; Sat, 29 May 2021 12:22:14 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:45111) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ln1iz-000835-So for emacs-orgmode@gnu.org; Sat, 29 May 2021 12:22:13 -0400 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id DD62FE0003; Sat, 29 May 2021 16:22:05 +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> <87y2by8x4p.fsf@nicolasgoaziou.fr> Mail-Followup-To: "Bruce D'Arcus" , =?utf-8?Q?Andr?= =?utf-8?Q?=C3=A1s?= Simonyi , org-mode-email Date: Sat, 29 May 2021 18:22:04 +0200 In-Reply-To: (Bruce D'Arcus's message of "Sat, 29 May 2021 09:52:34 -0400") Message-ID: <87sg25zf0z.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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: org-mode-email , =?utf-8?Q?Andr=C3=A1s?= Simonyi 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=1622305372; 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=tWaKlNx/FQPO7/WMuxEMFhyYW/u6fimFOOM6JkEadbU=; b=tO3immLrbiskJlEJXgCojB2q2VVMJU0OKe0NCoaNK+j01LoOyoaLt1NL14jsdFVH0DpHQf L4uxUnCCzZLMavpIAyJIoOEfK2NnAV2Skjk6UmBgMRruMOVgETLg+PEjb7A5AnyrzlVnAZ LjfefujCljJCh8nOpM0I+DzdE8T+/2qOdNxu3zA36/+HM/yqfQSPUmAFXK+g5budXTKSLm gHB9lNshqFq/vXX80lXhZdqi3QukmvG5X2VSS+k/6mkgy09IBjuHST/D2nUJh0ToRI4KNC Bw0Sp7/PUMNBBXiKgYkclW8V5aSywor1lRDNUxP03OyY5U81vBQL5dqCGjrfnw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622305372; a=rsa-sha256; cv=none; b=c0JrLcMkvAgVtkMaNIu4ASlyBzrM1ccNKcrEg+/r5ZHVfIvNpEsd0iRZWIGnvng7wQPHS9 hh6e9KHuHLVJjpE0sway5hhygZuBO1pKqJb7dg4K8ogQ+RwAMBIKPN/gNCnk7Zq3F6SeYA jHxB3syflzH8KgmP19VphtibNAPUeo6CiC1162c6jOsnPkGxMNRTAo8riOgB79bm6K1vFs kfHCA5SZj2MbLzlmEUM15Q+9paizr+Lkui4Ltm6zUcPGQla326JH0lld0gROZr/KnzUInG 3mHPuWeV1YJVEkJOLyyWnv12eqotkbSwm3zWFb546BNK4ENNmeR9lZkWAVPHnw== 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.42 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: A83791C536 X-Spam-Score: -2.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: WmMWaGNj68E+ Hello, "Bruce D'Arcus" writes: > On Fri, May 28, 2021 at 4:31 PM Andr=C3=A1s Simonyi wrote: > >> Maybe instead of a full alist mapping backends to citation processors >> we could have only options to declare a separate processor for >> latex-based backends and another for non-latex ones? > > This would go a long way, and is probably all that's necessary. > > Really "latex" is the unique output mode here. But one may want to use a different processor for, say, beamer and regular latex. Both are "latex" based. Worse, all custom back-ends derived from "latex" are bound to use the same processor. Here's another proposal: `org-cite-export-processor' is now an alist, where keys are export back-ends or t, which is the default key. '((latex biblatex bibstyle citestyle) (beamer natbib nil nil) (my-latex natbib bibstyle) (t csl nil nil)) The selected processor is the one associated to the back-ends closest to the current one used for export, by `org-export-derived-backend-p' order. So if `my-other-latex' is derived from beamer, it will use (natbib nil nil). OTOH, I suggest to stick to a single "cite_export" keyword, which overrides any selected processor above. IOW #+cite_export: basic will use basic whatever the current export back-end is. In practice, I think it is sufficient. The only case where it may be limiting is if you need to export with two different back-ends with two processors different from those set in `org-cite-export-processor'. But in that situation, I think swapping the cite_export keyword is acceptable. So overall, I think it is a good compromise between simplicity and power. WDYT? Regards, --=20 Nicolas Goaziou