From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id EDuPNM3Lv2Iw8QAAbAwnHQ (envelope-from ) for ; Sat, 02 Jul 2022 06:38:37 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id UG5iNM3Lv2K/8wAAauVa8A (envelope-from ) for ; Sat, 02 Jul 2022 06:38:37 +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 65EA535AE for ; Sat, 2 Jul 2022 06:38:37 +0200 (CEST) Received: from localhost ([::1]:53636 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o7Utv-0000yB-Vj for larch@yhetil.org; Sat, 02 Jul 2022 00:38:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52756) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7UtL-0000wk-E1 for emacs-orgmode@gnu.org; Sat, 02 Jul 2022 00:37:59 -0400 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]:35401) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o7UtI-0002vU-KO for emacs-orgmode@gnu.org; Sat, 02 Jul 2022 00:37:59 -0400 Received: by mail-pj1-x102c.google.com with SMTP id x1-20020a17090abc8100b001ec7f8a51f5so8341284pjr.0 for ; Fri, 01 Jul 2022 21:37:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=XAEwdv3hK7yjczP+9M1+Vj+JlO34K2H/WNG52bY9Ouw=; b=LWkes43sPaEmn0JBWD3Sa3eQmCe/zdnYMgE2kBLRbeWnRjonc7PE2LVf6swXXza2RT yGk7+AJHe7PtnevUn5xoT+Ybfd5Q2rf3ng+s6+FdT8/3M876TyGhkSp0PnyMKOmvXczo +WPYtKygZBbEfa9K8q3Lej/3GaVBrcn2Sw/csH7PekJ2mft4ib8hwnv9OLW3ToaS1yBH /Cj61hZamKxHS6VAMhW25dFtffmW67ZkSfau5bZWYUv0KKSbbvmInCw15IQ9sI4FUVHQ dBlkYODmsvcj1N9/8NsdClRXcdNgScnidEx38P9y5gjd6Q5y379XdWRdd2b1ZbDkf0H9 kaeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=XAEwdv3hK7yjczP+9M1+Vj+JlO34K2H/WNG52bY9Ouw=; b=xNIn7h2Ssj4D4eQAPlp2OMjmVP9TCrL80RnpS+q6dCvR9W7p+Cr850vLHtr5WYeCP8 9w5qplzGAc+W3Kp4j3LCrKGQ67wPbccMvCoECkNI5XnHS5jpbUmGgpg86c+UT9r7SYYC Dc1WFsa4+1KZz7gwKkWDVLiZStoJrSqER6S7S3Lh/F9bKvBy4TavzWkpTtfnJCdrOFMW kJ5TeGy4800CnPDhWKSex7vz4EpBzUJ470Tlbrm5x+AoSQeL5FrxXM70xI0PZQHpNbf/ ehmSAQkPLUH2boVa/VYPZTjyqjU9XBg285hM9SYMtZzN6HZZfX6MxjEYXK3T2jFmt2iQ jLCA== X-Gm-Message-State: AJIora9mXgDf0TsD89vaFwh0/M1bIEL3mAAYuPv0s3web7zKzzs0ESWV Q7zambaQeb39FMtAY2NYH0w= X-Google-Smtp-Source: AGRyM1tx3zOgO6JVy17LZklyEDmKQecSM9NluyPhlWTHc6Fsy+7nzaTPOe3dfzo0jFp5XzSNNu7/NA== X-Received: by 2002:a17:903:1108:b0:168:fa61:1456 with SMTP id n8-20020a170903110800b00168fa611456mr24283216plh.162.1656736672227; Fri, 01 Jul 2022 21:37:52 -0700 (PDT) Received: from localhost (61-216-157-182.hinet-ip.hinet.net. [61.216.157.182]) by smtp.gmail.com with ESMTPSA id fy21-20020a17090b021500b001ec79f0da37sm7485028pjb.14.2022.07.01.21.37.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Jul 2022 21:37:51 -0700 (PDT) From: Ihor Radchenko To: =?utf-8?Q?Andr=C3=A1s?= Simonyi Cc: emacs-orgmode list Subject: Re: [PATCH] oc-csl: Add support for nocite citations In-Reply-To: References: Date: Sat, 02 Jul 2022 12:38:57 +0800 Message-ID: <87k08wi0wu.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::102c; envelope-from=yantar92@gmail.com; helo=mail-pj1-x102c.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1656736717; 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:dkim-signature; bh=XAEwdv3hK7yjczP+9M1+Vj+JlO34K2H/WNG52bY9Ouw=; b=sSHDChGE3q9uGc7iQzex+SgG0He2W5e5BO3TNf1ZmNvq4W3oCwPzJnIml0EOmGk3I8VQzd 4V0Cau0AkKguvs6T3tSh+W7yOTyJNozgci1CINpJG55mysGwlHOyeS4sQW9Xi73FSS6Ixg F9BGcJEzmoOI3a599daHYe35jWXx8gMt6FH31qKIB33mCuCkXmv4IZvezLT02aVfcBDE/Z tjQ7VomU3Vc2xr0dW85OvI9H6i+uew+ipFu+qduLU/HFRLY6hwweODF31YkYJwC5vlwqEG LaA9bvULW/7dKvlBvXafFSbpEuMyBws9QphtDMhubNF2KZeW3hpjQ2P7qhi0FA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656736717; a=rsa-sha256; cv=none; b=Ru6AK23/S6auQmaNdd2v9tcBaDeptkYPhRMLwNZ0jUZrPu9XngBaVqu8pAXVcmh9+D4pX8 ledNIPu3mwJz4xIKAyqwy6It3WmOpDSEvnpOjYsAaNhZ9cgviqaetrUuOUrEwj2J7wV4wa ormzdq2MqdJMfOOkhMNtdGkRnzKbX+aQV/dQuXCFKVvJPylIdbMVR1WGT8I+Azu8tNXB7I 0FhTgSCQznsQthxZrYaj3qsD/YfS5ZrU5XUxuMp485/05kHZOUalfqE2v+76SLJa688Um5 J/rb8/GbrY7b9l2nKCz7bvtfepUxUna1J2+LPG5BcwYYwXvjwgqGuSUrPQaK6Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=LWkes43s; 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-Migadu-Spam-Score: -3.45 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=LWkes43s; 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-Migadu-Queue-Id: 65EA535AE X-Spam-Score: -3.45 X-Migadu-Scanner: scn1.migadu.com X-TUID: 1UYVCe0He8z6 Andr=C3=A1s Simonyi writes: > the attached patch adds support for nocite citations in the csl > org-cite export processor, including support for using the special key > "*" to include all entries in the bibliography. Thanks! By "*", do you mean something like [cite/n:@*]? If so, will it be correctly fontified as an existing citation? > +*** Support for nocite citations in the csl export processor >=20=20 > +The csl citation export processor now supports `nocite' style > +citations that add items to the printed bibliography without visible > +references in the text. Using the key `*' in a nocite citation > +includes all available items in the printed bibliography. It would help to provide an example how to use "*" key. Also, I'd prefer if you follow doc/Documentation_Standards.org. Please use Org markup instead of `...' quotes. > +(defun org-cite-csl--nocite-p (citation info) > + "Non-nil when CITATION object's style is nocite. > +INFO is the export state, as a property list." > + (when-let ((style (car (org-cite-citation-style citation info)))) > + (or (string=3D style "nocite") (string=3D style "n")))) Why not simply (member (car (org-cite-citation-style citation info)) '("nocite" "n")) ? Best, Ihor