From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33189 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: --biblatex and suppress-bibliography Date: Thu, 12 Oct 2023 11:31:50 -0700 Message-ID: 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 (Mac OS X Mail 16.0 \(3696.120.41.1.3\)) Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25334"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDW7ZIEHTIIBBGPXUCUQMGQE25M4U7I-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Oct 12 20:31:58 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-il1-f187.google.com ([209.85.166.187]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qr0TV-0006RI-TU for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 12 Oct 2023 20:31:57 +0200 Original-Received: by mail-il1-f187.google.com with SMTP id e9e14a558f8ab-352b6641024sf7094335ab.0 for ; Thu, 12 Oct 2023 11:31:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697135516; cv=pass; d=google.com; s=arc-20160816; b=dveoPjI+iRR1qlckSdzMKNCr+vkXxitr7yly8OC/hECI7aKiH1F2dOTvyfKsaGMjLf zKtD8b5c4pW8Nn0X28ibg80SGEF8wuxGWoU5lsKjIVzK7vx/kI+UYACCwfiRql+BJos2 0CG8tjEbk91n1odK0GTmbzf400h8ah2a8Vu9k8c1vlpeC8dAtz46CiiQmXS3+d38LH9e TOQyCrLmY+0ANmktmiXFDfFaeYON3wBFXNJ0PYvsQu/whDUyMLNp8b7DZ8yI7ChezMTd sN+oedbReWLe2QiuHRsi2un6ae7puI65kuo45TfWVTtLGoOCTqIPuty3A6sO4Pwfqo3g oGCg== 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:message-id:in-reply-to:to :references:date:subject:mime-version:content-transfer-encoding:from :sender:dkim-signature:dkim-signature; bh=VyZLwWETn2MIjUC/WPHcBQ8q5b7YFeUpt1DE5y9RlmA=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=eviv8jtpKTe/fhBmaFQ9koKxzP0pTMmHO2ulaXMbGn5q7fo4l+BOQFS9mdtaiV1Ues QgP2aTGmMevf5cZl414GOv7gDLy0Whu77eO8q5XtYOoAagrwWWekELvGVCRrseAZNDIP d7d6Lz4zR99CAck+Hnm6owRq3viJOSKVPpJTmXyfxFCAVj6fJSCXmdyErnliyFrT7Use X0ZfpGcZxxhs522JeAzwUo7hZGQDhZ+gRNwT6d5O/oSzIVyaVXXvUGO0o/QqV6ncDs1H NNsgo8rvaqa5hGyzNZxYftI6bzJ770lT7rw3V9Rcr/i7t5LDk1hS5QpaEoOtc9go+Dxm IRcg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=JfFEQP9F; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::631 as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1697135516; x=1697740316; 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:message-id :in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=VyZLwWETn2MIjUC/WPHcBQ8q5b7YFeUpt1DE5y9RlmA=; b=DfQr85Fy4bZ7OYlleUCFyfwObiwDZH8CGNzFl24fJ8ZpVRjlihyLgRvFF/YUCatQqO sQZZr3u1nMuJ0tq3POknWFmXXmub4bkPHlmMhMsCrMFE1WnshqsA+SQYkbMQg5pniHXI jRlqMaNisUSOcrhvO3gGj8Mbku1ykTwAGond5DxEl1mBb+4uSYgERVcUkrLiQQaRJn7F lrGnPxNgBw+WZBb+L4DFFEaxbvpaoEgkyFBEdPGrV1WqWlETiTXfmyHE0vyZdoPlGaBI U9m1llaNc0kHGAxR DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697135516; x=1697740316; 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:message-id :in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date:message-id :reply-to; bh=VyZLwWETn2MIjUC/WPHcBQ8q5b7YFeUpt1DE5y9RlmA=; b=MWJSKypR1aBEbUwph9mdEKwWRkSyjDfA93/IhiurY0yiZOPQCqtf9Qk6igIx1EaMs6 e7iAgtzrp7/wH6ZYG7Wt7u1GPYTAdDw9KESXgw52FJGIVoFyts9veC0pXONRhnE2jNhN VUXkgh3igLXBz0KKstkcC+2QTGVtJOF/wXhMADyJP3q5uPvqlTIm+6rfS4aoBFoChnjn eAYFds3CCpuvSFEzIKkzxQHqxoKeH86jVfKgdiPdOs4KSuU5fsnEE9CBznyaJmuIfYFV DKiZBuvkTcFuifjmJhnqJzTZoh5UwU X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697135516; x=1697740316; 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:message-id :in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:x-beenthere:x-gm-message-state :sender:from:to:cc:subject:date:message-id:reply-to; bh=VyZLwWETn2MIjUC/WPHcBQ8q5b7YFeUpt1DE5y9RlmA=; b=VMnnDrSLG2Do/v5/GDgNW5Yj1vNcmSRsFjtz84kZNnC40B/zbzrUgoxJbG8VJFFGmE a7/ti/9xQLH7+GLJaB3Ipg74eVZH++9sUiJvKuM7ii1VXWSHY4YFW/UUJ/K/2XtiqEkp g+NIRk5Gs2gT0Hp3b3scHF1rw7ni7XQo9YTQkvS8RY/WYxWjCayNawbVWdTt2kDFHrzT uoHpLmy1ra++vPRMBwyrXNZkMI38IkRNnZ0ggvCmwpCIOV7FXK3uDUcPYa Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOJu0YxJuMi3SggUKbhKd9ljVCSBUi80gYsduHnkxLWKRJ8yT5AMX9Qw 3tO+Vj1HvYklanzDxXXkk1w= X-Google-Smtp-Source: AGHT+IE69HG8PTCQxwDOYrguEihvvIjSzp+cH4br++16oaoeiDZWTLaF2KNYiCOac64KgrwDEszOAg== X-Received: by 2002:a05:6e02:1c4d:b0:34b:ac73:eb97 with SMTP id d13-20020a056e021c4d00b0034bac73eb97mr32533324ilg.14.1697135516782; Thu, 12 Oct 2023 11:31:56 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a92:6708:0:b0:352:705e:2346 with SMTP id b8-20020a926708000000b00352705e2346ls543298ilc.0.-pod-prod-03-us; Thu, 12 Oct 2023 11:31:53 -0700 (PDT) X-Received: by 2002:a6b:c413:0:b0:79f:99f5:fadd with SMTP id y19-20020a6bc413000000b0079f99f5faddmr26416531ioa.6.1697135513342; Thu, 12 Oct 2023 11:31:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697135513; cv=none; d=google.com; s=arc-20160816; b=JtQ9EjaF4uOKhJRXcyZiIsU1BWDtRhHzOQ9p4jbnlgmZkKfpNVfoi6pKMQ2wEsts3g WnAkcBGIlqSjGefqos6KGu/4Lh0nE/l8zvqtuh78L9LYGWsf2bEb6FtYZwMkk2ZipkiZ gObVFKH24PcPxC0d4dTdOZ5DcnOxLDUggqTVTgoNN0Wk3EQt3BXo3O+aNl70vNj3bOFA mGk08qGN3Z0rd+wYkENZ9bPyH2f0B+G+4TKxOBmCNS3fwNYwl7RpxUqfytI2cRXvWLT/ BisdSxqSNuMp0NZU5iRj9IRE0k7LYZVov+5w0sI0MeUJ+a1ioNmxEBBoiMFdxcH4V6az 2qig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:dkim-signature; bh=szV8AHzlLDtZCw3eJU81F25jGOTCXNrFWmXpTeyeRCU=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=QyIoWnIIdYQCey0GZlPePpTGEq96rRQK5px0cyfbrJ1w30exFwSA3/ZZYAM2GsC+gM PZ5u4Z5GyekmFQyBuPdO96c7wpirNl8PJxk+x0y1VPoRsfh/qmLuhSmDiVknevnsQbqv FH6jqOUuKfrTDzO2Vc4XhVPUgU/yG9dzkDbFb7II582yLqFbv18iXSLEVtoBl69+Ro63 LW+vYsrWcBhfdVR7n5YPRP1MLXez7tIdVQTYZDqzsgXzrr7iYF6I5rr6r2i6XnapApXu xOGfak6Jz+Jt+BW1z6VEpak3+HhdVrKNc5ZmsNo/g6hrlqShaHMDlsg/LBKeiXBgQfZ9 0FNQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=JfFEQP9F; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::631 as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com. [2607:f8b0:4864:20::631]) by gmr-mx.google.com with ESMTPS id t129-20020a6bc387000000b0079f9c4f99absi1571115iof.2.2023.10.12.11.31.53 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 Oct 2023 11:31:53 -0700 (PDT) Received-SPF: pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::631 as permitted sender) client-ip=2607:f8b0:4864:20::631; Original-Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-1c9d407bb15so11531635ad.0 for ; Thu, 12 Oct 2023 11:31:53 -0700 (PDT) X-Received: by 2002:a17:903:2647:b0:1c9:bdff:6c47 with SMTP id je7-20020a170903264700b001c9bdff6c47mr7398470plb.59.1697135512087; Thu, 12 Oct 2023 11:31:52 -0700 (PDT) Original-Received: from smtpclient.apple ([2601:644:4701:23f0:89d3:bf44:b852:b029]) by smtp.gmail.com with ESMTPSA id jb15-20020a170903258f00b001c6052152fdsm2328296plb.50.2023.10.12.11.31.51 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Oct 2023 11:31:51 -0700 (PDT) In-Reply-To: <8be5ad50-3e06-41ff-9f8b-0f57b8b46c54n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Mailer: Apple Mail (2.3696.120.41.1.3) X-Original-Sender: fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=JfFEQP9F; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::631 as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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:33189 Archived-At: I think that should work. You may want to make a pull request. > 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 simple solu= tion. I just searched for "printbibliography" in pandoc's source code. 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 for the me= tadata suppress-bibliography. Basically, it is sufficient to surround lines= 576-586 with "$if(suppress-bibliography)$$else$" and "$endif$". Is there a= ny problem with this solution? >=20 > Le jeudi 12 octobre 2023 =C3=A0 18:56:55 UTC+2, John MacFarlane a =C3=A9c= rit : > That's true; this only affects use with citeproc. I'm not even sure how t= o 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 eff= ect when using the command-line option --biblatex. A minimal working exampl= e:=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 Seri= es=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 finishi= ng 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 Grou= ps "pandoc-discuss" group.=20 > > To unsubscribe from this group and stop receiving emails from it, send = an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org=20 > > To view this discussion on the web visit https://groups.google.com/d/ms= gid/pandoc-discuss/66ba712f-f7bd-4ed8-87c0-a768d3c50fa6n%40googlegroups.com= .=20 >=20 >=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= email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgi= d/pandoc-discuss/8be5ad50-3e06-41ff-9f8b-0f57b8b46c54n%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/DF2A033B-C3DD-4804-8EF0-48D528C3BFC9%40gmail.com.