From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33194 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "'William Lupton' via pandoc-discuss" Newsgroups: gmane.text.pandoc Subject: Re: Can a given publisher's citations be listed first? Date: Fri, 13 Oct 2023 11:28:57 +0100 Message-ID: References: <76dc5598-cf59-4fee-b516-1ab7171fbe5en@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000cb8ad60607968662" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31262"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCS4HJ6WSAHBB5VXUSUQMGQEQC2VQVY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Oct 13 12:29:15 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wr1-f58.google.com ([209.85.221.58]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qrFPu-0007uF-Vy for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 13 Oct 2023 12:29:15 +0200 Original-Received: by mail-wr1-f58.google.com with SMTP id ffacd0b85a97d-32cef5f8af5sf1373038f8f.1 for ; Fri, 13 Oct 2023 03:29:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697192954; cv=pass; d=google.com; s=arc-20160816; b=Rro4zvX/TqFGBgQVBBAOik5YEqafYT7rrA1qmJbVlbLgvgeZ7xWRXKAwiacG2SBP6a gMUF96bNk2wiiFP0PFUCzQjjM1dAZlT4Ml1dDeMpoSja4iZAb9iuUZY5S5cjsehtagmK FQxFZMsx1gP1/SBBqDZWK8J+0Qebw6wAwK06qqlKWjl4YZCA071dX8WiMIMLsQhBiXRO knLsBHoZO3uOSHaLZuQP4Fy/hRQY/ldlh5PZLxXHpquPw9EPHkbq24A8U67YWGvoCu5q N0iNSIT8f96fnE0/tR77fsGEG6z+lBG3pTxDP5GBmmRqcYB6xr+c7wa2oRtyBt3lyYEf HMBw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date :from:in-reply-to:references:mime-version:dkim-signature; bh=Wq0n+ScMM2jH3XI8AfkQe4aQOM25EBEZT/UPEtJn9dg=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=RTmPDgwK77vCZ5Ne5NSXwS0d21svVzgnYvLdK++qUtmK2U3LukgEh7ldKwiAH9+fs2 /IzTz8FCSA8zZgEdbo+wPLZo00cVFGYGCYHDVHQqWE9QR3d+iFlRhraXbIINfWnj1MS9 vOd5fVm7GSJNJ21/pWD94DUFbqxXLVCdC5f/GGGb6iE5tCmssuY1DhEVQzGfTVE8Qt7Y 8qEaPZDNxMGLgxi+4RZzEGAs1iTjxgW6qAe8xkRzFP5NhvL+k3jWrIw6pR56miROSMUb u7G1fJCMjz7YPdtlQN3VlvrzeMLIBTrkwASYgOrlFw3CExZ+/0jqwTRXRnJwA8XFMvMd wnLA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b=rb8WDvbp; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::529 as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadband-forum.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1697192954; x=1697797754; darn=m.gmane-mx.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:in-reply-to:references:mime-version:from:to:cc :subject:date:message-id:reply-to; bh=Wq0n+ScMM2jH3XI8AfkQe4aQOM25EBEZT/UPEtJn9dg=; b=N0oSMOgfKSHpPFRcrNqJ3Q+M94gtu5x1TyNmdIGkHtCjDkkl6vIPicIDjIqq/BKwM0 XDW7oAOqzz+gOkIBkBx1piE7wuXNA4uJrtY/S6LZEOxKoJMe+Pwy3ilrBXgIwjim72Ey 7TNsATVztHh22nenxEMYwtwBt1n7FU7CQntzdQdTRf/ijuE9bhLiNCNrm7+SSgKdfdyK aiSECnAKznWcu4FfwbSeN03U4B7FK4Js8xBc3CKqEAELLu/i47I5mGGH8629w9wH2NB6 7EHjOpWb5wxDczjOuxUSiaL5mx+SPsnEVbe1WXDeIF//H08xmtwIDDr41Bo X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697192954; x=1697797754; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:in-reply-to:references:mime-version :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Wq0n+ScMM2jH3XI8AfkQe4aQOM25EBEZT/UPEtJn9dg=; b=caCy+6uMloxKOWF5X09BieMT7/WP9i4ScxBh87JSJlYvmIwOctxwuykALW5WzUCU6X B812mcfthyXQ4aU4kubmQpO8iYJ6FT+VAv7mbwuvF4W9expirH7SC2rtcT8UwrCa+ByB C964eUqpAXrQ9ba2/0Ffa/MAjWgX9FJ5dqFF5eo9Jn/i5s8hBwaBjNs4K9ciJXrc4jct q8tZqRRkDb66x2ztW5DHRhoBJVbVZzXQSV2Hwytzr5X1jHhHBcjM+92sXs7m+pO3grNp evmKWcTz7v7Oq X-Gm-Message-State: AOJu0YzX4omV93wrR88joAqmJw/soam0zNST3N7/CKUhV6BFM24weuVX CzbOzQBIufmcNrlRRhKRJnc= X-Google-Smtp-Source: AGHT+IGSRVtCXs/BjDcmzEz5zQa0XPNDvq1a3Ebc9hIV4ORAACj67fICqizt/1kAkl+u2VP0afWHdQ== X-Received: by 2002:a05:600c:3b27:b0:402:e68f:8a4f with SMTP id m39-20020a05600c3b2700b00402e68f8a4fmr21574035wms.0.1697192953990; Fri, 13 Oct 2023 03:29:13 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:600c:3b82:b0:406:44e7:9c38 with SMTP id n2-20020a05600c3b8200b0040644e79c38ls262829wms.2.-pod-prod-00-eu-canary; Fri, 13 Oct 2023 03:29:09 -0700 (PDT) X-Received: by 2002:a05:600c:450a:b0:401:c7ec:b930 with SMTP id t10-20020a05600c450a00b00401c7ecb930mr18497994wmo.10.1697192949015; Fri, 13 Oct 2023 03:29:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697192948; cv=none; d=google.com; s=arc-20160816; b=G1kJknMdL+sGGSecj58at5FE9wWL2gInkp9HqmXDiKEXvIuHcZWFsGRmSIpISwN4Qo zoTInfxZjtTjq1nIrVEh7jWdosePd7yV7w1dlq6EsCQfZOctvCy4GLoFEoMbQ9E9wyIJ FsFLv0K2kLy3SlCp4sP7kaQR7ShQnR8pJ/40Pui970A9xvTsYTvo40gNLBjVvyFbpx0o 40PQscrvSwPLM1dOTai/66nuPZVezsw9gy6mX6jzmpRKBPZDEc/qq+WVcd4G6GBAseCx G8M0lnxEWS8vs0Mqn1jr3SxpG1edhkWNH9wSO1vkLbYOlXjjkU3gYq6eR1mJMAGxiW0x AMkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=/QJM+1hpaNsvYlco+YqpXfWtm3gIrNb0WyzCALQT8/4=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=R4xV+/LPQKPXbmRKnEh0aw+dFoGcLpQmIe7NOjcX1B6PSmBBOmQA6mwn6pMd/oyk3a GYN5KGIcah345PtSN+njjlOlm8tLKlNoxpLd9YLCZtRx7hDxtIwUqov7xtFbibDbJhov MDRJqn8Sdokf5GfogQeI0yAISqXXizahvelNBfhPYw1eGAKQj8JY7rZdm3PWk2/plqVH LuwXuXLOJ8TcWzySqA7Iz5tFfSo5t9RRBGF0HuaQ8vYhzTn+SSUp7LUKDDtZOyV4UsNe yjDivnzyiftBNT56cZKbY2+PiOAAsL3uNDGvI+A9halJVQaiEJOIEc/+DT8tQ7360wU+ j4dQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b=rb8WDvbp; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::529 as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadband-forum.org Original-Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com. [2a00:1450:4864:20::529]) by gmr-mx.google.com with ESMTPS id n35-20020a05600c502300b0040653ab52e4si142311wmr.0.2023.10.13.03.29.08 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 13 Oct 2023 03:29:08 -0700 (PDT) Received-SPF: pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::529 as permitted sender) client-ip=2a00:1450:4864:20::529; Original-Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-53db3811d8fso3934687a12.1 for ; Fri, 13 Oct 2023 03:29:08 -0700 (PDT) X-Received: by 2002:a05:6402:959:b0:53d:fd46:41ce with SMTP id h25-20020a056402095900b0053dfd4641cemr4642792edz.19.1697192948232; Fri, 13 Oct 2023 03:29:08 -0700 (PDT) In-Reply-To: <76dc5598-cf59-4fee-b516-1ab7171fbe5en-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b=rb8WDvbp; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::529 as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadband-forum.org X-Original-From: William Lupton Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:33194 Archived-At: --000000000000cb8ad60607968662 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sorry for the delay in replying. Perhaps the use of the word "topic" is causing confusion? I see that I used this term in my PR (and it's used in the https://github.com/pandoc-ext/multibib "about" text) but it's not used in the README.md. In this context, "topic" is really the same as "bibliography file". It's assumed that you want to split your references into multiple topics, and will use a separate bibliography file for each topic. So in the https://raw.githubusercontent.com/pandoc-ext/multibib/main/test/input.md example (pasted below) the two topics are "sources" and "recommended-reading". I hope that this helps. --- title: Multiple Bibliographies Demo bibliography: sources: test/primary.bib recommended-reading: test/secondary.bib nocite: '@Knu86, @Bae' --- @Nie72, @Bel # References ::: {#refs-sources} ::: # Recommended Reading ::: {#refs-recommended-reading} ::: On Fri, 6 Oct 2023 at 15:50, Bernardo C. D. A. Vasconcelos < bernardovasconcelos-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > What does it mean to filter the bibliography per topic? I couldn't > understand how to use this using the new filter. Is the source file updat= ed > to reflect it? > > It sounds very interesting. > > On Wednesday, September 13, 2023 at 7:22:19=E2=80=AFAM UTC-3 William Lupt= on wrote: > >> I've made some changes and created >> https://github.com/pandoc-ext/multibib/pull/8 for discussion. >> >> The changes in the PR work for my use case, but in fact I've decided to >> stick with the 'original-publisher' approach that I mentioned earlier. I >> control the necessary bibliography files and this approach doesn't requi= re >> any changes to documents. >> >> I created https://github.com/jgm/pandoc/issues/9077 to suggest a >> utils.citeproc() 'quiet' flag. >> >> On Mon, 11 Sept 2023 at 11:27, William Lupton >> wrote: >> >>> Ah, I took a look and it seems that they are basically the same >>> (multiple-bibliographies -> multibib in the transition to pandoc-ext) b= ut >>> their commit histories look different so there's obviously a bit more t= o it. >>> >>> Anyway, multiple-bibliographies avoids the problem by always running >>> citeproc as a JSON filter (via pandoc --citeproc for recent pandoc >>> versions) and passing the --quiet flag. >>> >>> I guess I'll use multiple-biographies for now, and look into how best t= o >>> update pandoc-ext/multibib, which really should be the "official" versi= on. >>> >>> Any thoughts from anyone on whether utils.citeproc() could provide a >>> 'quiet' argument (or equivalent)? >>> >>> Thanks! >>> >>> On Mon, 11 Sept 2023 at 11:11, Bastien DUMONT >>> wrote: >>> >>>> Actually I meant this filter: >>>> https://github.com/pandoc/lua-filters/tree/master/multiple-bibliograph= ies >>>> >>>> It seems to be an older version of multibib, but I never had the >>>> problemm you report with it. >>>> >>>> Le Monday 11 September 2023 =C3=A0 10:59:26AM, 'William Lupton' via >>>> pandoc-discuss a =C3=A9crit : >>>> > I'm hitting a (non-fatal but annoying) problem. The multibib filter >>>> first runs >>>> > citeproc to generate a list of all citations, then it reruns citepro= c >>>> once for >>>> > each supplied bibliography file, and this generates warnings for the >>>> citations >>>> > in the _other_ bibliography files. >>>> > >>>> > For example, the test in the repo works ... but apparently doesn't >>>> (and it took >>>> > me a while to realise this)! >>>> > >>>> > % make >>>> > [WARNING] Citeproc: citation Bae not found >>>> > [WARNING] Citeproc: citation Knu86 not found >>>> > [WARNING] Citeproc: citation Bel not found >>>> > [WARNING] Citeproc: citation Nie72 not found >>>> > >>>> > I think that the best way to avoid the warnings would be to capture >>>> and ignore >>>> > them, but I'd (much) rather do that only for the secondary citeproc >>>> runs that >>>> > are _expected_ to output warnings. >>>> > >>>> > Is there a way to do this using the existing utils.citeproc() >>>> function? I tried >>>> > naively temporarily redefining io.stderr but perhaps that was never >>>> going to >>>> > work in the presumably-Haskell utils.citeproc(). >>>> > >>>> > Thanks, >>>> > William >>>> > >>>> > On Fri, 8 Sept 2023 at 13:03, William Lupton <[1] >>>> wlu...-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org> >>>> > wrote: >>>> > >>>> > Thanks! [2]https://github.com/pandoc-ext/multibib I assume. I'll >>>> look into >>>> > it. >>>> > >>>> > On Fri, 8 Sept 2023 at 12:53, Bastien DUMONT <[3] >>>> bastien...-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org> >>>> > wrote: >>>> > >>>> > I would split my bibliography file in two and use the >>>> > multiple-bibliographies filter. That's a sometimes irritatin= g >>>> > limitation of CSL: you can check if a variable is set, but >>>> not test its >>>> > value. >>>> > >>>> > Le Friday 08 September 2023 =C3=A0 11:17:57AM, 'William Lupt= on' via >>>> > pandoc-discuss a =C3=A9crit : >>>> > > Hello, >>>> > > >>>> > > I'd like to sort references so a given publisher's ("BBF") >>>> references >>>> > are >>>> > > listed first, and am wondering whether it's possible to >>>> compare the >>>> > publisher >>>> > > variable with "BBF". I tried, but it doesn't seem to work >>>> (and the >>>> > CSL spec. >>>> > > doesn't appear to indicate that you can do this), so I've >>>> fallen back >>>> > on using >>>> > > original-publisher (I'll have to make sure that all the BB= F >>>> > references use this >>>> > > rather than publisher). This works, but I'd prefer the fir= st >>>> > approach. Any >>>> > > suggestions? >>>> > > >>>> > > CSL is attached. >>>> > > >>>> > > Thanks, >>>> > > William >>>> > > >>>> > > -- >>>> > > You received this message because you are subscribed to th= e >>>> Google >>>> > Groups >>>> > > "pandoc-discuss" group. >>>> > > To unsubscribe from this group and stop receiving emails >>>> from it, >>>> > send an email >>>> > > to [1][4]pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>>> > > To view this discussion on the web visit [2][5]https:// >>>> > groups.google.com/d/msgid/ >>>> > > pandoc-discuss/ >>>> > > >>>> CAEe_xxi5Q%2BBhE%2BO2EjfnYZAyF%3D_hr7HMcgKHcNKEYoFiJNSraw%[6] >>>> > 40mail.gmail.com. >>>> > > >>>> > > References: >>>> > > >>>> > > [1] mailto:[7]pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org >>>> > > [2] [8]https://groups.google.com/d/msgid/pandoc-discuss/ >>>> > CAEe_xxi5Q%2BBhE%2BO2EjfnYZAyF%3D_hr7HMcgKHcNKEYoFiJNSraw% >>>> 40mail.gmail.com? >>>> > utm_medium=3Demail&utm_source=3Dfooter >>>> > >>>> > >>>> > -- >>>> > You received this message because you are subscribed to the >>>> Google >>>> > Groups "pandoc-discuss" group. >>>> > To unsubscribe from this group and stop receiving emails fro= m >>>> it, send >>>> > an email to [9]pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>>> > To view this discussion on the web visit [10] >>>> https://groups.google.com/ >>>> > d/msgid/pandoc-discuss/ZPsLPLC_YQ-aiL_A%40localhost. >>>> > >>>> > -- >>>> > You received this message because you are subscribed to the Google >>>> Groups >>>> > "pandoc-discuss" group. >>>> > To unsubscribe from this group and stop receiving emails from it, >>>> send an email >>>> > to [11]pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>>> > To view this discussion on the web visit [12] >>>> https://groups.google.com/d/msgid/ >>>> > pandoc-discuss/ >>>> > CAEe_xxgf_LcjS%3DZ%3D482ShAeMvMLdrmfHvYbEfMkVShcEuncROw% >>>> 40mail.gmail.com. >>>> > >>>> > References: >>>> > >>>> > [1] mailto:wlu...-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org >>>> > [2] https://github.com/pandoc-ext/multibib >>>> > [3] mailto:bastien...-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org >>>> > [4] mailto:pandoc-discuss%2Bunsu...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org >>>> > [5] https://groups.google.com/d/msgid/ >>>> > [6] http://40mail.gmail.com/ >>>> > [7] mailto:pandoc-discuss%2Bunsu...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org >>>> > [8] >>>> https://groups.google.com/d/msgid/pandoc-discuss/CAEe_xxi5Q%2BBhE%2BO2= EjfnYZAyF%3D_hr7HMcgKHcNKEYoFiJNSraw%40mail.gmail.com?utm_medium=3Demail&ut= m_source=3Dfooter >>>> > [9] mailto:pandoc-discuss%2Bunsu...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org >>>> > [10] >>>> https://groups.google.com/d/msgid/pandoc-discuss/ZPsLPLC_YQ-aiL_A%40lo= calhost >>>> > [11] mailto:pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org >>>> > [12] >>>> https://groups.google.com/d/msgid/pandoc-discuss/CAEe_xxgf_LcjS%3DZ%3D= 482ShAeMvMLdrmfHvYbEfMkVShcEuncROw%40mail.gmail.com?utm_medium=3Demail&utm_= source=3Dfooter >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "pandoc-discuss" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/pandoc-discuss/ZP7nvJBEK7kmVHuU%40lo= calhost >>>> . >>>> >>> -- > You received this message because you are subscribed to the Google Groups > "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/76dc5598-cf59-4fee-b516-= 1ab7171fbe5en%40googlegroups.com > > . > --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/CAEe_xxg4TLjd_Htgaws32VnYiBmCaH0tWtfcZecopf0jTBCY0A%40mail.g= mail.com. --000000000000cb8ad60607968662 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Sorry for the delay in replying.

Perhap= s the use of the word "topic" is causing confusion?=C2=A0I see th= at I used this term in my PR (and it's used in the=C2=A0https://github.com/pandoc-ext/multibib<= /a> "about" text) but it's not used in the README.md.


So in the=C2=A0htt= ps://raw.githubusercontent.com/pandoc-ext/multibib/main/test/input.md e= xample (pasted below) the two topics are "sources" and "reco= mmended-reading". I hope that this helps.
---
title: Multiple Bibliographies Demo
bibliography:
  sources: test/primary.bib
  recommended-reading: test/secondary.bib
nocite: '@Knu86, @Bae'
---
@Nie72, @Bel

# References

::: {#refs-sources}
:::

# Recommended Reading

::: {#refs-recommended-reading}
:::

On Fri, 6 Oct 2023 at 15:50, Bernardo C. D. A. Vasconcelos = <bernardovasconcelos@gm= ail.com> wrote:
What does it mean to filter the bibliography per topic? I couldn'= ;t understand how to use this using the new filter. Is the source file upda= ted to reflect it?

It sounds very interesting.

On We= dnesday, September 13, 2023 at 7:22:19=E2=80=AFAM UTC-3 William Lupton wrot= e:
I've made some changes and created=C2=A0https://g= ithub.com/pandoc-ext/multibib/pull/8 for discussion.

The changes in the PR work for my use case, but in fact I've decided= =C2=A0to stick with the 'original-publisher' approach that I mentio= ned earlier. I control the necessary bibliography=C2=A0files and this appro= ach=C2=A0doesn't require any changes to documents.

=
I created=C2=A0https://github.com/jgm/pandoc/issues/9077= to suggest a utils.citeproc() 'quiet' flag.

On Mon, 11 Se= pt 2023 at 11:27, William Lupton <wlu...@broadband-f= orum.org> wrote:
Ah, I took a look and it seems that they are basic= ally the same (multiple-bibliographies -> multibib in the transition to = pandoc-ext) but their=C2=A0commit histories look different so there's o= bviously a bit more to=C2=A0it.

Anyway, multiple-bibliog= raphies avoids the problem by always running citeproc as a JSON filter (via= pandoc --citeproc for recent pandoc versions) and passing the --quiet flag= .

I guess I'll use multiple-biographies for no= w, and look into how best to update pandoc-ext/multibib, which really shoul= d be the "official" version.

Any thought= s from anyone on whether utils.citeproc() could provide a 'quiet' a= rgument (or equivalent)?

Thanks!

On Mon, 11 S= ept 2023 at 11:11, Bastien DUMONT <bastien...@posteo= .net> wrote:
Actually I meant this filter: https://github.com/pandoc/lua-filters/tree/master/multiple-= bibliographies

It seems to be an older version of multibib, but I never had the problemm y= ou report with it.

Le Monday 11 September 2023 =C3=A0 10:59:26AM, 'William Lupton' via= pandoc-discuss a =C3=A9crit :
> I'm hitting a (non-fatal but annoying) problem. The multibib filte= r first runs
> citeproc to generate a list of all citations, then it reruns citeproc = once for
> each supplied bibliography file, and this generates warnings for the c= itations
> in the _other_ bibliography=C2=A0files.
>
> For example, the test in the repo works ... but apparently doesn't= (and it took
> me a while to realise this)!
>
> % make
> [WARNING] Citeproc: citation Bae not found
> [WARNING] Citeproc: citation Knu86 not found
> [WARNING] Citeproc: citation Bel not found
> [WARNING] Citeproc: citation Nie72 not found
>
> I think that the best way to avoid the warnings would be to capture an= d ignore
> them, but I'd (much) rather do that only for the secondary=C2=A0ci= teproc runs that
> are _expected_ to output warnings.
>
> Is there a way to do this using the existing utils.citeproc() function= ? I tried
> naively temporarily redefining io.stderr but perhaps that was never go= ing to
> work in the presumably-Haskell utils.citeproc().
>
> Thanks,
> William
>
> On Fri, 8 Sept 2023 at 13:03, William Lupton <[1]wlu...-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org>
> wrote:
>
>=C2=A0 =C2=A0 =C2=A0Thanks!=C2=A0[2]https://githu= b.com/pandoc-ext/multibib I assume. I'll look into
>=C2=A0 =C2=A0 =C2=A0it.
>
>=C2=A0 =C2=A0 =C2=A0On Fri, 8 Sept 2023 at 12:53, Bastien DUMONT <[3= ]bastien...-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org>
>=C2=A0 =C2=A0 =C2=A0wrote:
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0I would split my bibliography file in= two and use the
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0multiple-bibliographies filter. That&= #39;s a sometimes irritating
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0limitation of CSL: you can check if a= variable is set, but not test its
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0value.
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Le Friday 08 September 2023 =C3=A0 11= :17:57AM, 'William Lupton' via
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0pandoc-discuss a =C3=A9crit :
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> Hello,
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> I'd like to sort references = so a given publisher's ("BBF") references
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0are
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> listed first, and am wondering w= hether it's possible to compare the
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0publisher
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> variable with=C2=A0"BBF&quo= t;. I tried, but it doesn't seem to work (and the
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0CSL spec.
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> doesn't appear to indicate t= hat you can do this), so I've fallen back
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0on using
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> original-publisher (I'll hav= e to make sure that all the BBF
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0references use this
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> rather than publisher). This wor= ks, but I'd prefer the first
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0approach. Any
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> suggestions?
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> CSL is attached.
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> Thanks,
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> William
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> --
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> You received this message becaus= e you are subscribed to the Google
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Groups
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> "pandoc-discuss" group= .
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> To unsubscribe from this group a= nd stop receiving emails from it,
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0send an email
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> to [1][4]pan= doc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> To view this discussion on the w= eb visit [2][5]https://
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0groups.google.com/d/= msgid/
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> pandoc-discuss/
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> CAEe_xxi5Q%2BBhE%2BO2EjfnYZAyF%3= D_hr7HMcgKHcNKEYoFiJNSraw%[6]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A040mail.gmail.com.
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> References:
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> [1] mailto:[7]pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> [2] [8]https://groups.google.com/d/msgid/pandoc-discuss/
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0CAEe_xxi5Q%2BBhE%2BO2EjfnYZAyF%3D_hr7= HMcgKHcNKEYoFiJNSraw%40mail.gmail.com?
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0utm_medium=3Demail&utm_source=3Df= ooter
>
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0You received this message because you= are subscribed to the Google
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Groups "pandoc-discuss" gro= up.
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0To unsubscribe from this group and st= op receiving emails from it, send
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0an email to [9]pa= ndoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0To view this discussion on the web vi= sit [10]https://groups.google.com/
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0d/msgid/pandoc-discuss/ZPsLPLC_YQ-aiL= _A%40localhost.
>
> --
> You received this message because you are subscribed to the Google Gro= ups
> "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send= an email
> to [11]pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> To view this discussion on the web visit [12]https:/= /groups.google.com/d/msgid/
> pandoc-discuss/
> CAEe_xxgf_LcjS%3DZ%3D482ShAeMvMLdrmfHvYbEfMkVShcEuncROw%40mail.= gmail.com.
>
> References:
>
> [1] mailto:wlu...-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org
> [2] https://github.com/pandoc-ext/multibib > [3] mailto:bastien...-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org
> [4] mailto:pandoc-discuss%2Bunsu...@googlegroups.c= om
> [5] https://groups.google.com/d/msgid/
> [6] http://40mail.gmail.com/
> [7] mailto:pandoc-discuss%2Bunsu...@googlegroups.c= om
> [8] https://groups.google.com/d/msgid/pandoc-discuss/CAEe_xxi5Q%2BBhE%= 2BO2EjfnYZAyF%3D_hr7HMcgKHcNKEYoFiJNSraw%40mail.gmail.com?utm_medium=3Demai= l&utm_source=3Dfooter
> [9] mailto:pandoc-discuss%2Bunsu...@googlegroups.c= om
> [10] http= s://groups.google.com/d/msgid/pandoc-discuss/ZPsLPLC_YQ-aiL_A%40localhost
> [11] mailto:
pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<= br> > [12] https://groups.google.com/d/msgid/pandoc-discuss/CAEe_xxgf_LcjS%3DZ= %3D482ShAeMvMLdrmfHvYbEfMkVShcEuncROw%40mail.gmail.com?utm_medium=3Demail&a= mp;utm_source=3Dfooter

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss= /ZP7nvJBEK7kmVHuU%40localhost.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https= ://groups.google.com/d/msgid/pandoc-discuss/76dc5598-cf59-4fee-b516-1ab7171= fbe5en%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.= google.com/d/msgid/pandoc-discuss/CAEe_xxg4TLjd_Htgaws32VnYiBmCaH0tWtfcZeco= pf0jTBCY0A%40mail.gmail.com.
--000000000000cb8ad60607968662--