From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33099 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: Mon, 11 Sep 2023 10:59:26 +0100 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000005671e90605126275" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3330"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCS4HJ6WSAHBBDGK7OTQMGQECM6NNYA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Sep 11 11:59:45 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lj1-f187.google.com ([209.85.208.187]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qfdhp-0000iE-MA for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 11 Sep 2023 11:59:45 +0200 Original-Received: by mail-lj1-f187.google.com with SMTP id 38308e7fff4ca-2be48142a6csf9671031fa.1 for ; Mon, 11 Sep 2023 02:59:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1694426385; cv=pass; d=google.com; s=arc-20160816; b=Qb2KQOPioMa06TEiTbssWpveLNdDvaWe/w0A53kzrQ6Ep5imJWu/7/igm6QylcYIwt pUsJ+rOHeH9XmX4gceU2m9PfJR8xxC4sO1wJN6NAIgSZsW0UJ8DXBQ+Kr5JvnSSMPXya CaZRcYe/y7E2VjJ+OeYbvEi59F5B1SePI3KK+j4BsTtokXPdwAxaeBEJ9iNeKKwPv3uI I+HI9dgZuepZFVLiUSbvuRlwib7AW0fmgjkrNPnZ+3FjTfLNlZSM1nPNk9xcWsoUpKU1 cl3SRTNTPwHs4ld0vhCG2sE2s4twsWQyJFTGJH+cxgeonEFNf+rnoKHbdBz/VZ168Lol EMQA== 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=I1csFnlPJTc2I8eg0HohSGqf4ayXSH5jrEIghX3hLU0=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=vqBVDHHhngDaf/x5eOvwPbA9AoFIc8+j2imS/Is+mjUA/zAevAUyNjJ4KHZpIKO2uH O9FyPvzDJvDirwQ7Ai+GB8IbJlvWAh6DoSmV9rZJzKuseKZQhmurYJzRZ3Ehl7mt4dzs qcsfauuzzXtrGUeOZ/WVavsoMsAuMiRyRMMjMLaGlDr6FAltLIielEUMcyQ5ou1JJibw L/bAPB9CFHMgZRYlIAi9PKcJsRjuyqqVzkkMrWeCdrwUEJGHnAILUIUIEqW+cXBgSqbK UD++INzjfDbywd37A4ZWQid5WrvuhQCqHfbvzp811P0Hed7rIsrD6eAcZLvyS2QZIVaX 5POw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b=PnB4NGcJ; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::535 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=1694426385; x=1695031185; 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=I1csFnlPJTc2I8eg0HohSGqf4ayXSH5jrEIghX3hLU0=; b=lQyHizIjwnbcx2eYTKbtk4PFpXvKz/vSuYlH01fm8OXwz9MNOgTf0zSxOpoqzRZbMW cjLaQjzOTo87PHh+aqaLlqRo55flWtSOk7FdTp6iX9RcAmMTsYX2JzfIpChUgZRjXbeh 6+GE/QRJ2gZBCj0mdkQrLdt99eCKsjljB3ywWgNsNWc3B7xkXcjCE88NuKYSfktjG3Ee 9lwaB1q36AQ4NqhyGUU4DpWg/v0F+2N3oTetYYCC4zW1Sm48RUvA7/3xPTVR8y1EH/Im PfdKtheYuZnwP/YtWgNAzLkD+BhsYS/kDqkeX/L64avOE+qBfF7dBtSCLpT X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694426385; x=1695031185; 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=I1csFnlPJTc2I8eg0HohSGqf4ayXSH5jrEIghX3hLU0=; b=fUKh+evV1yyCyeb+wPOUlutTHlNbtbTrfrVJT86/ijCzbr1+dOki0YZ7qOqV+0HwZ3 xX3//qAJvFFzJEHYn5r8B/J47zsZdv+Q7kPSLPQIcFE/94gGIA9Zcl5sAiIj/8FgYskv 8miA6PW//+fvS4zv35p76CGr4pUivLP+2tE6gew0HOGe57/nNmqN6wmKV5hKP5P1Dy1O X6SZHNExXsKM3sNYY8FnA67u56XgYyvPCwsy4uQ6GGcCIg4AQdjrgcHHXZV5qGExLz7F dD6bJoroyN5eg X-Gm-Message-State: AOJu0YxKB19dBr1eoW8vZdh5b2x3AL1j7wM9YE/481gDmG1xNbG5JxG+ 9m19oEpVRrW9Wi1xJqjr630= X-Google-Smtp-Source: AGHT+IEs8d/8kS+pn+Kw7jegc1Uzo/hR/CqzE4++vJvewdR6k3Dvll92Zi8V9qU5vIyy19b4AQ0kbg== X-Received: by 2002:a2e:3909:0:b0:2bb:7710:1cea with SMTP id g9-20020a2e3909000000b002bb77101ceamr4972134lja.0.1694426384521; Mon, 11 Sep 2023 02:59:44 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:651c:b0c:b0:2be:574a:3b1b with SMTP id b12-20020a05651c0b0c00b002be574a3b1bls235302ljr.0.-pod-prod-05-eu; Mon, 11 Sep 2023 02:59:38 -0700 (PDT) X-Received: by 2002:a05:6512:1283:b0:4ff:8403:e88 with SMTP id u3-20020a056512128300b004ff84030e88mr9190752lfs.1.1694426378762; Mon, 11 Sep 2023 02:59:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694426378; cv=none; d=google.com; s=arc-20160816; b=g1Tzq6V2KVyf0m2lwxSMnXcQDVSeaCau8U86dYhGZOuIPpfJu/9eA+3H12XV05SRhb O3AP7SbnIjc8bbzePsihTrQLYEYzAChDzd9O8yCfNCGptSP6CeGB32ht77fgvTUGcNAp OCVvMDADaZGMRVDSE3xMGpotbKqmNzVeppOQN7EX4dajcfd6Zf0ZVWRM4ae/BTIWjCQL pb5UFCyUot54ohy8V2Dyy1M1YEBPnAzT1eGor0TKrIFa30jZEJXCUmUpZ2nZt1LXoPZB DZr6cswpSDY4NgKip9EVNu9jcWhOZNSf4apEQzBVcvrWLhZlkUXIvqVvK70Lu22I3xlY Rd0w== 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=/Ob3iHXFatyeFYq/L83SzV7bwrCe4YAbnbPQqFAsZLI=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=qQzbqeWmMGwpHzTapbCZ15swsuTVt/LGjACFpGZBqHk+8e1/BLlyRmZX/SF1ZMHVxH dCdaeofLFn8bhfy+jti9Hw2LIfsp/6pz/vzdpCry4TmPsEYhVBJikEXE+4muLO3HZZRX J9qlhjle47Jvyii/zC6Qpm2lhaUMYCp5VzceZeTkhGrthUzQOZrCbJpl4B+Tcz9thSsm wfzbXwscbQWjWNbyKbvNme7R0n9aEfdl8Obnn9b/+f2MKSc1ZVb3iDqvS7hDazxu7ify 7I1DcPxFiBS7SS1CK62RZX//y/+7E5HgzHbC8Q35oD0cYsZ0I1PKwYwCXR8euMp1ylj/ AI9Q== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b=PnB4NGcJ; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::535 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-x535.google.com (mail-ed1-x535.google.com. [2a00:1450:4864:20::535]) by gmr-mx.google.com with ESMTPS id 23-20020ac25f57000000b004fe3e3471c8si490273lfz.10.2023.09.11.02.59.38 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 11 Sep 2023 02:59:38 -0700 (PDT) Received-SPF: pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::535 as permitted sender) client-ip=2a00:1450:4864:20::535; Original-Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-52c9be5e6f0so5123586a12.1 for ; Mon, 11 Sep 2023 02:59:38 -0700 (PDT) X-Received: by 2002:aa7:da4a:0:b0:523:4066:f425 with SMTP id w10-20020aa7da4a000000b005234066f425mr7972231eds.1.1694426377638; Mon, 11 Sep 2023 02:59:37 -0700 (PDT) In-Reply-To: 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=PnB4NGcJ; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::535 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:33099 Archived-At: --0000000000005671e90605126275 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 citeproc 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 wrote: > Thanks! https://github.com/pandoc-ext/multibib I assume. I'll look into > it. > > On Fri, 8 Sept 2023 at 12:53, Bastien DUMONT > wrote: > >> I would split my bibliography file in two and use the >> multiple-bibliographies filter. That's a sometimes irritating 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 Lupton' 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 BBF references >> use this >> > rather than publisher). This works, but I'd prefer the first approach. >> Any >> > suggestions? >> > >> > CSL is attached. >> > >> > Thanks, >> > William >> > >> > -- >> > 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 [1]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> > To view this discussion on the web visit [2] >> https://groups.google.com/d/msgid/ >> > pandoc-discuss/ >> > CAEe_xxi5Q%2BBhE%2BO2EjfnYZAyF%3D_hr7HMcgKHcNKEYoFiJNSraw% >> 40mail.gmail.com. >> > >> > References: >> > >> > [1] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org >> > [2] >> https://groups.google.com/d/msgid/pandoc-discuss/CAEe_xxi5Q%2BBhE%2BO2Ej= fnYZAyF%3D_hr7HMcgKHcNKEYoFiJNSraw%40mail.gmail.com?utm_medium=3Demail&utm_= source=3Dfooter >> >> >> -- >> You received this message because you are subscribed to the Google Group= s >> "pandoc-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send a= n >> 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/ZPsLPLC_YQ-aiL_A%40loca= lhost >> . >> > --=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_xxgf_LcjS%3DZ%3D482ShAeMvMLdrmfHvYbEfMkVShcEuncROw%40ma= il.gmail.com. --0000000000005671e90605126275 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I'm hitting a (non-fatal but annoying) problem. The mu= ltibib filter first runs citeproc to generate a list of all citations, then= it reruns citeproc once for each supplied bibliography file, and this gene= rates warnings for the citations 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 no= t found
[WARNING] Citeproc: citation Knu86 not found
[WARNING] Citepr= oc: citation Bel not found
[WARNING] Citeproc: citation Nie72 not found<= /font>

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=C2=A0citeproc runs that are _expected_ to outpu= t warnings.

Is there a way to do this using the ex= isting 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
<= /div>
O= n Fri, 8 Sept 2023 at 13:03, William Lupton <wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org> wrote:
Thanks!=C2= =A0htt= ps://github.com/pandoc-ext/multibib I assume. I'll look into it.
On = Fri, 8 Sept 2023 at 12:53, Bastien DUMONT <bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org> wrote:<= br>
I would split my= bibliography file in two and use the multiple-bibliographies filter. That&= #39;s a sometimes irritating 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 Lupton' via= pandoc-discuss a =C3=A9crit :
> Hello,
>
> I'd like to sort references so a given publisher's ("BBF&= quot;) references are
> listed first, and am wondering whether it's possible to compare th= e publisher
> variable with=C2=A0"BBF". I tried, but it doesn't seem t= o work (and the CSL spec.
> doesn't appear to indicate that you can do this), so I've fall= en back on using
> original-publisher (I'll have to make sure that all the BBF refere= nces use this
> rather than publisher). This works, but I'd prefer the first appro= ach. Any
> suggestions?
>
> CSL is attached.
>
> Thanks,
> William
>
> --
> 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 [1]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> To view this discussion on the web visit [2]https://groups.go= ogle.com/d/msgid/
> pandoc-discuss/
> CAEe_xxi5Q%2BBhE%2BO2EjfnYZAyF%3D_hr7HMcgKHcNKEYoFiJNSraw%40mail.gmail.c= om.
>
> References:
>
> [1] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [2] = https://groups.google.com/d/msgid/pandoc-discuss/CAEe_xxi5Q%2BBhE%2BO2EjfnY= ZAyF%3D_hr7HMcgKHcNKEYoFiJNSraw%40mail.gmail.com?utm_medium=3Demail&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-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit 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 &= 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://gro= ups.google.com/d/msgid/pandoc-discuss/CAEe_xxgf_LcjS%3DZ%3D482ShAeMvMLdrmfH= vYbEfMkVShcEuncROw%40mail.gmail.com.
--0000000000005671e90605126275--