From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33190 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bruno Grenet Newsgroups: gmane.text.pandoc Subject: Re: --biblatex and suppress-bibliography Date: Thu, 12 Oct 2023 11:55:53 -0700 (PDT) Message-ID: <94a7a14f-b57c-44fe-bf0b-574fe33a89c2n@googlegroups.com> References: <66ba712f-f7bd-4ed8-87c0-a768d3c50fa6n@googlegroups.com> <7748A3B8-2AFB-413B-9E84-BA643C873CB3@gmail.com> <8be5ad50-3e06-41ff-9f8b-0f57b8b46c54n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_4124_1032139410.1697136953043" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34454"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCI3RRMGYQKBBOUCUGUQMGQEFFTHFBI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Oct 12 20:55:58 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f56.google.com ([209.85.161.56]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qr0qk-0008kP-Ht for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 12 Oct 2023 20:55:58 +0200 Original-Received: by mail-oo1-f56.google.com with SMTP id 006d021491bc7-57ba076c906sf1805157eaf.0 for ; Thu, 12 Oct 2023 11:55:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1697136957; x=1697741757; 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-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=LcdCqtAUOXrNf97FgroJJJHbi6VFMFhvM4HidAr9eO0=; b=kUd6lLf5K6GkiYec0c761cuxPW7uitJKFdfWPFMOGatumFvkQ5TWk5fM78/+0x7i7+ QPVdCI+7sQyT+fDCo6+xUzho6qsJjUQjAdzvUPF6pkk0Cl0G4AsRrXoiXo0C15MPGx2E 7QFVYQWmOHDQBB0F50/1+ATAEuWVig340Y3JxgldHiwpMnjT2bEwPXtQwL5EPQLz9AKY S6UiaUgpvB4TCqKRxHqwwwBpkN1ijjmqqbhsmVA2rKu8p1yKYgVa5fgKHokF5UAoSCUq C5Q8qy0TJpyFXMvqc3kt3kZqVhH8XvJKI6ZrPk4Q2zkBm7wENlpSCVVWdjWdaQyIdSMn 0l9Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697136957; x=1697741757; 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-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=LcdCqtAUOXrNf97FgroJJJHbi6VFMFhvM4HidAr9eO0=; b=W7ZrrDr/lbrxz8dz+Kiz/PFOWK8+mu9EROgtKBhhuVglSzT1NofVqUmU8StUe7HUjX fo6UR2vFJp0EDwjsSFvoof71uu5QJNdLBcqWnme0iZV0HXi0pOfE2FzdzHxEwFBdtmBJ bAunNwRybbtzEdt6YsjMjK8gc//xh5VTDUzvrtqrj/zy/o+ZgPKEIiBzVn5nVd4rC7Xc r5PRH/+RaEhwRwkhT8AXnA37amGpOhFDfHNyvgbiuZ66h4KVn6Y4MXrutQO2on91xrwn 7vlMmKXwxjQn9Z7uT21JjNnC7eYb+tk64MwGddTmGNjN8vI8LyrAk7xC4oH4cXseJIyS MhEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697136957; x=1697741757; 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-sender:mime-version:subject:references:in-reply-to :message-id:to:from:date:x-beenthere:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=LcdCqtAUOXrNf97FgroJJJHbi6VFMFhvM4HidAr9eO0=; b=bfS7ULc6eDBdK6Kbvtu1UFk4k/nZlCr7xzEQTyfrVzkVxB8kvE1DxirU786Ntl2h0r PPmb2duaNfvlCd37uHk9hDv2OOCvovqUJ7Yq3avF8+7Qa8fm8fHz/yIHXXB1Pvufb9k3 +Gl+hIXKm2DWSNmPz9nE+smv9Bjkhf8uaN6voHf0F1ZgPRb6EA/91O87aWt3KWRdip+f O4eeukgLd17EkrWEU9EOdBOFeaZXrQWGBaf9XXJ2e0ABgnUDIIn0YFZ3nJvqP4WtOIeY K9o3I3r16ZoPMqebpXi98Cj9ilygIU1viZXZuufNfDpqDZp7vV Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOJu0YxLKf9SbySWDLlv1DLOBmHohiBX9YZCIrS2zD3Sm52G9kt7TqQh 667Bl16f8igxWjUq3UY8LWo= X-Google-Smtp-Source: AGHT+IEi0SjRC4DGUkMOrNUb7Dnh2QcUU4KcegVHNDWq9G+OYnU6SFAjqltFqNUvoPfTZSII1NAIRQ== X-Received: by 2002:a4a:7556:0:b0:573:3fe0:cdd6 with SMTP id g22-20020a4a7556000000b005733fe0cdd6mr24093035oof.6.1697136957238; Thu, 12 Oct 2023 11:55:57 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a4a:4f42:0:b0:57b:6ab1:a1f8 with SMTP id c63-20020a4a4f42000000b0057b6ab1a1f8ls826843oob.2.-pod-prod-08-us; Thu, 12 Oct 2023 11:55:54 -0700 (PDT) X-Received: by 2002:a9d:5784:0:b0:6ca:c677:4569 with SMTP id q4-20020a9d5784000000b006cac6774569mr1662722oth.2.1697136953709; Thu, 12 Oct 2023 11:55:53 -0700 (PDT) In-Reply-To: X-Original-Sender: bruno.grenet-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org 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:33190 Archived-At: ------=_Part_4124_1032139410.1697136953043 Content-Type: multipart/alternative; boundary="----=_Part_4125_1212946099.1697136953043" ------=_Part_4125_1212946099.1697136953043 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Le jeudi 12 octobre 2023 =C3=A0 20:31:56 UTC+2, John MacFarlane a =C3=A9cri= t : I think that should work. You may want to make a pull request.=20 Done: https://github.com/jgm/pandoc/pull/9131 =20 > On Oct 12, 2023, at 11:20 AM, Bruno Grenet wrote:=20 >=20 > I did not think about it before, but it seems there is a very simple=20 solution. I just searched for "printbibliography" in pandoc's source code.= =20 >From what I see, it seems that this is added to the .tex file from the=20 default latex template (line 583). Therefore, it is enough to add a test=20 for the metadata suppress-bibliography. Basically, it is sufficient to=20 surround lines 576-586 with "$if(suppress-bibliography)$$else$" and=20 "$endif$". Is there any problem with this solution?=20 >=20 > Le jeudi 12 octobre 2023 =C3=A0 18:56:55 UTC+2, John MacFarlane a =C3=A9c= rit :=20 > That's true; this only affects use with citeproc. I'm not even sure how= =20 to make this happen with biblatex.=20 >=20 >=20 > > On Oct 12, 2023, at 1:01 AM, Bruno Grenet wrote:=20 > >=20 > > Dear all,=20 > >=20 > > It seems to me that the metadata field suppress-bibliography has no=20 effect when using the command-line option --biblatex. A minimal working=20 example:=20 > >=20 > > ---=20 > > references:=20 > > - author:=20 > > - family: Cooley=20 > > given: James W.=20 > > - family: Tukey=20 > > given: John W.=20 > > container-title: Mathematics of computation=20 > > doi: 10.1090/S0025-5718-1965-0178586-1=20 > > id: CooleyTukey1965=20 > > issue: 90=20 > > issued: 1965=20 > > page: 297-301=20 > > title: An Algorithm for the Machine Calculation of Complex Fourier=20 Series=20 > > type: article-journal=20 > > volume: 19=20 > > ---=20 > > This is a citation [@CooleyTukey1965].=20 > >=20 > > Then I can use either=20 > >=20 > > pandoc MWE.md -s --biblatex -o MWE.tex=20 > >=20 > > or=20 > >=20 > > pandoc MWE.md -s --metadata=3Dsuppress-bibliography --biblatex -o MWE.t= ex=20 > >=20 > > and I get in both case the same result, that is the document is=20 finishing with a \printbibliography.=20 > >=20 > > Am I missing something? Thanks!=20 > >=20 > >=20 > > --=20 > > You received this message because you are subscribed to the Google=20 Groups "pandoc-discuss" group.=20 > > To unsubscribe from this group and stop receiving emails from it, send= =20 an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org=20 > > To view this discussion on the web visit=20 https://groups.google.com/d/msgid/pandoc-discuss/66ba712f-f7bd-4ed8-87c0-a7= 68d3c50fa6n%40googlegroups.com.=20 >=20 >=20 > --=20 > You received this message because you are subscribed to the Google Groups= =20 "pandoc-discuss" group.=20 > To unsubscribe from this group and stop receiving emails from it, send an= =20 email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org=20 > To view this discussion on the web visit=20 https://groups.google.com/d/msgid/pandoc-discuss/8be5ad50-3e06-41ff-9f8b-0f= 57b8b46c54n%40googlegroups.com.=20 --=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/94a7a14f-b57c-44fe-bf0b-574fe33a89c2n%40googlegroups.com. ------=_Part_4125_1212946099.1697136953043 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Le jeudi 12 octobre 2023 =C3=A0 20:31:56 UTC+2, John= MacFarlane a =C3=A9crit=C2=A0:
I think that should work. You may want to make a pull request.

Done: https://github.com/jgm/pando= c/pull/9131

=C2=A0

> On Oct 12, 2023, at 11:20 AM, Bruno Grenet wrote:
>=20
> I did not think about it before, but it seems there is a very si= mple solution. I just searched for "printbibliography" in pandoc's source c= ode. From what I see, it seems that this is added to the .tex file from the= default latex template (line 583). Therefore, it is enough to add a test f= or the metadata suppress-bibliography. Basically, it is sufficient to surro= und lines 576-586 with "$if(suppress-bibliography)$$else$" and "$endif$". I= s there any problem with this solution?
>=20
> Le jeudi 12 octobre 2023 =C3=A0 18:56:55 UTC+2, John MacFarlane = a =C3=A9crit :
> That's true; this only affects use with citeproc. I'm not even s= ure how to make this happen with biblatex.=20
>=20
>=20
> > On Oct 12, 2023, at 1:01 AM, Bruno Grenet wrote:=20
> >=20
> > Dear all,=20
> >=20
> > It seems to me that the metadata field suppress-bibliograph= y has no effect when using the command-line option --biblatex. A minimal wo= rking example:=20
> >=20
> > ---=20
> > references:=20
> > - author:=20
> > - family: Cooley=20
> > given: James W.=20
> > - family: Tukey=20
> > given: John W.=20
> > container-title: Mathematics of computation=20
> > doi: 10.1090/S0025-5718-1965-0178586-1=20
> > id: CooleyTukey1965=20
> > issue: 90=20
> > issued: 1965=20
> > page: 297-301=20
> > title: An Algorithm for the Machine Calculation of Complex = Fourier Series=20
> > type: article-journal=20
> > volume: 19=20
> > ---=20
> > This is a citation [@CooleyTukey1965].=20
> >=20
> > Then I can use either=20
> >=20
> > pandoc MWE.md -s --biblatex -o MWE.tex=20
> >=20
> > or=20
> >=20
> > pandoc MWE.md -s --metadata=3Dsuppress-bibliography --bibla= tex -o MWE.tex=20
> >=20
> > and I get in both case the same result, that is the documen= t is finishing with a \printbibliography.=20
> >=20
> > Am I missing something? Thanks!=20
> >=20
> >=20
> > --=20
> > You received this message because you are subscribed to the= Google Groups "pandoc-discuss" group.=20
> > To unsubscribe from this group and stop receiving emails fr= om it, send an email to pandoc-discus...@goog= legroups.com.=20
> > To view this discussion on the web visit https://groups.= google.com/d/msgid/pandoc-discuss/66ba712f-f7bd-4ed8-87c0-a768d3c50fa6n%40g= ooglegroups.com.=20
>=20
>=20
> --=20
> You received this message because you are subscribed to the Goog= le Groups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it= , send an email to pandoc-discus...@googlegro= ups.com.
> To view this discussion on the web visit https://groups.googl= e.com/d/msgid/pandoc-discuss/8be5ad50-3e06-41ff-9f8b-0f57b8b46c54n%40google= groups.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/94a7a14f-b57c-44fe-bf0b-574fe33a89c2n%40googlegroups.= com.
------=_Part_4125_1212946099.1697136953043-- ------=_Part_4124_1032139410.1697136953043--