From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/20353 Path: news.gmane.org!.POSTED!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Pandoc doesn't define references in PDF output with --biblatex (or --natbib) Date: Tue, 12 Jun 2018 09:01:59 -0700 Message-ID: References: <20180612145052.GA8444@mailbox.org> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1528819207 14996 195.159.176.226 (12 Jun 2018 16:00:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 12 Jun 2018 16:00:07 +0000 (UTC) To: per.review-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org, pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBBG577MAKGQEO7YKJEY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Jun 12 18:00:03 2018 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-pl0-f56.google.com ([209.85.160.56]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fSliE-0003p8-Sj for gtp-pandoc-discuss@m.gmane.org; Tue, 12 Jun 2018 18:00:03 +0200 Original-Received: by mail-pl0-f56.google.com with SMTP id t19-v6sf4781680plo.9 for ; Tue, 12 Jun 2018 09:02:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1528819333; cv=pass; d=google.com; s=arc-20160816; b=fHFWiaAqhat7489K0gRfR7OEfnDozlGQD5FPxVqJ39jgIQQ9oCNzD8iKXQu9bGgseR HXJgG8r85eHIRqKoOOQS1dHfzUBczZg2hjaB0xRVmxqhR4j9h+8msIokSaTDffl/iJhP 9fiz+owq4nM67PJIM3p1cELiyh75Jp+AhONgQ8kwqz4nPPjHEDetGBPELcU6baS9q6as pNiMkEiK739huVOo31Pf2UMQz0VOV+SkOjVY+krcON3iUI303p6eygotvLsx4TyTkc/1 g4sMCfm0ogXPYegyZx9QLmbom4g0sln5gVIStCpanKzqLBBiJzIIOIVauk2OQMLGJFJS gK3Q== 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:mime-version:message-id :date:references:in-reply-to:subject:to:from :arc-authentication-results:arc-message-signature:sender :dkim-signature:arc-authentication-results; bh=KqtJNbLcU2g0JqNImLpMg8MK3FyRys2M1Q2lstSVIFE=; b=f/AawUVtAxMVpErRPoolJfuG4ge8LtZGhmWoZZs9augfnMQoaQFuRFGDlnwBMPA0+R oKFXqWgwqL7zuK6zbmRIlewDyFC33EsvCs+otJOYHzXhYaFyHJ9GNOKw71vJeQXcLRRG Pn9A8gZhsJGqY2Bx75CUzBQFhcycQyjDGZ3UXQ33PkCCXLEc9XP4Qvrq5mD3GojETOSM TrOuv8dCNWhmpPjYAgaG4xw7LjFO7wClx5hwGaEFrGmdmA8ZrI6kT5Ion4Mhrusji2Rs Uf+Mjj3UIzft7IBowr2w8Dd9E4i8hkV70aZ+uhjfDBllNsxeIvt+UrOOer0F+/flhYYm CmSQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=v6dzPo6l; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c00::234 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=KqtJNbLcU2g0JqNImLpMg8MK3FyRys2M1Q2lstSVIFE=; b=jLo31vaI9pEPEnfLTW9fRTyuDPTqkdFDXclwf1yS4cfhbKOtCTsaYaCHtEQpc/Udt2 /lRkfj+XbxD+GJ+jwDAmvqgkjq92oebmHYsvXcAb2RnrPsguaS+2u8qJzNhUtFvVcAqR 91QjCvKInwkq546Qc0RvOtCPIGaP5KoCT14b+E9UldWSXDZwgbNxpnFYE0Kno1kksg07 PizKXf7QVF9RWQYD38nWSyaxD6fhpqU8RPdZJadTzlS4yBoT3GWzvmh8Wd/UrmkY/oea prYmV9pa4UyZy0AQTcVO9M4NZq59aqqAssu5Fn3yh+lDUQhHvbUmSuzSvuj8HSdBfGSP SXug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=KqtJNbLcU2g0JqNImLpMg8MK3FyRys2M1Q2lstSVIFE=; b=YeUibKT4XdUPsF2U70ohP7QKTrYMIIPbv7xr2swjCdkpQcY1FHEQxZgPURtUSBaU6j wQnevW7A9Hvkf4Wxd3JDm+qm1YPw4N40oN7j+9YDqiF93oOuJt7JtWh1MN31DbftoFC4 /RLaX4ikFAvErxFPk6vQcE24C0uGMArb7c6sRb/WH7onU+IE83RGTfRMC24dQ3puWm4s +lUy+mpD8BbkU9I7f/ZCvELrry2I12znbKDzelZi9VhcSaMOEgT4SGaULEF5I+0ZNyHg Nhq9gYB7lTdjLJ5iCF9HXoRPrUK+K3UAjzoncRz6qSAJNcSdXOl0l+/WO/I2Xpu9WKDX Jctw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APt69E2Xg3Xa5LVGVN1jLqFjUQaz/o7eC7KPyI8k7sU12W+5KWAvy+jA 9EXIXv6bgeWFSYS5kCZeTxE= X-Google-Smtp-Source: ADUXVKJu7qm466IgI/OWA+EK5X5FydCT5pbwAhuK4VNuf/vpQauMbM8pB8sTTugpoH0Vtwt7pbSSDQ== X-Received: by 2002:a62:fe04:: with SMTP id z4-v6mr1002pfh.3.1528819333887; Tue, 12 Jun 2018 09:02:13 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:902:68:: with SMTP id 95-v6ls705505pla.12.gmail; Tue, 12 Jun 2018 09:02:12 -0700 (PDT) X-Received: by 2002:a17:902:a612:: with SMTP id u18-v6mr223342plq.57.1528819332262; Tue, 12 Jun 2018 09:02:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528819332; cv=none; d=google.com; s=arc-20160816; b=GnIGJ2D/3LLrWPGkCRYFkFOB4wZ74weQwP39UGnDRvtnnjsdxyaqAKnXL0s4uV74h8 dK5U2uT1HmW59jixE4QaTgK1bDKGPwWXeF9BHUpCD9G/MDsOc64VENc+GycJD8mZlp8D X4jt/b62Pw/vcRRz21RBOqJrzs26cyrReHg1b4xCb8NSQcs+mnKePPnvnNjtlbmerxBz 4da/mgEmReLGAXcxL1ENRM8ZolL4f8Z8HK4qKWKFczliQBu4Ju/rJ4XY2es/2NQbalOj p5p5r5boeH42I3yUnPniXF7Dt/myWo5zLlAmI1z5ohhBtBwsVGc/8Dz7rTy/E0SA+aiD olwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :dkim-signature:arc-authentication-results; bh=UmhFn4+Z7YPKN4aIwnqxbfxz0mk6XTB5FaG5vDqm6Ok=; b=WSrbjalxZJ5HNAzPMDvUql6hNxNeIJDspbD430yn5/xkb6wpd3zS55PmFz0+XUQu1x ldwCitKlQ2Rq9IAyWp+TquCisLqeifEnRgAMcBelRLGXrNTdqqM4V/x2F5zWT8mgb5y/ ZuKCqGP4jXMytlUwFMKHbHjGR6seDJ5+vTCwHxHoT9s7ozZw0jL9Ww9wYweQYGuk6Jhi RtEs2tnJJurnW+pe7uRU+0AHJNmk+H7Czk6FTDxfexJmGAQmDZaQu0dSqDe6BSSKYE88 iJgKIp5UXGhMxUNN6k6C/NooOsFYiIpZLodNYqqqEfU2jTkDVA1GGSVsJi5rfKv6KZ4h xVfA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=v6dzPo6l; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c00::234 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pf0-x234.google.com (mail-pf0-x234.google.com. [2607:f8b0:400e:c00::234]) by gmr-mx.google.com with ESMTPS id e6-v6si35466pfn.1.2018.06.12.09.02.12 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jun 2018 09:02:12 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c00::234 as permitted sender) client-ip=2607:f8b0:400e:c00::234; Original-Received: by mail-pf0-x234.google.com with SMTP id w7-v6so12328605pfn.9 for ; Tue, 12 Jun 2018 09:02:12 -0700 (PDT) X-Received: by 2002:a63:6106:: with SMTP id v6-v6mr794504pgb.441.1528819331585; Tue, 12 Jun 2018 09:02:11 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id x72-v6sm686524pff.176.2018.06.12.09.02.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Jun 2018 09:02:10 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 64A75A17C; Tue, 12 Jun 2018 12:01:59 -0400 (EDT) In-Reply-To: <20180612145052.GA8444-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org> X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=v6dzPo6l; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c00::234 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@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-Spam-Checked-In-Group: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:20353 Archived-At: Pandoc doesn't run bibtex/biber for you when producing a PDF. If you use pandoc-citeproc, you can get a nice bibliography in PDF output (and maybe that's what you were doing when it worked before), but if you want to use native biblatex, you'll have to produce a .tex file and run latex and biber yourself. Note: it's helpful to search closed issues before submitting a report. You would have found #4105, #1193, #681, #2795, ... But perhaps pandoc should issue a warning when you use --natbib or --biblatex with output to a PDF file. per.review-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org writes: > I want to create a PDF file with a bibliography, e.g. `echo "See @test." > | pandoc -o min.pdf --bibliography=min.bib --biblatex` > > With `min.bib`: > > ~~~ > @article{test, > author = "Tester, T.", > title = "Test", > journal = "Testing", > year = "2018", > } > ~~~ > > With the `--verbose` option I can see that Pandoc generates a LaTeX > document with > > ~~~ > \usepackage[]{biblatex} > \addbibresource{min.bib} > > \date{} > > \begin{document} > > See \textcite{test}. > > \printbibliography > > \end{document} > ~~~ > > It runs makePDF three times, and every time it says (some empty lines > removed): > > ~~~ > No file input.bbl. > > LaTeX Warning: Citation 'test' on page 1 undefined on input line 61. > > LaTeX Warning: Empty bibliography on input line 63. > > [1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] > (./tex2pdf.4369/input.aux) > > LaTeX Warning: There were undefined references. > > Package biblatex Warning: Please (re)run Biber on the file: > (biblatex) input > (biblatex) and rerun LaTeX afterwards. > ~~~ > > Unsurprisingly, the citation remains undefined. Biber doesn't run. The > same happens when I run Pandoc with `--natbib` instead of `--biblatex`, > or with `--pdf-engine=xelatex`. (With pandoc-citeproc it works, since > the bibliography is already generated in the .tex code makePDF starts > out with.) > > What is going on? > > Having pandoc output a .tex file instead of a PDF document, then running > xelatex, biber and xelatex works as expected. (This is not an option for > my more complicated real-world example, which also depends on pandoc to > convert figures for the PDF output and on pandoc-crossref, among other > things.) > > I'm pretty sure this wasn't a problem until recently, but I don't know > when it arose. I'm using the TeX Live distribution with Linux, but the > problem is identical with MiKTeX in Windows. > > ~~~ > $ pandoc -v > pandoc 2.2.1 > Compiled with pandoc-types 1.17.4.2, texmath 0.10.1.1, skylighting 0.6 > $ biber -v > biber version: 2.11 > ~~~ > > If this warrants a bug report on Github, feel free to make it into one. > I can't get rid of my suspicion that it's simply a basic human error on > my side. > > -- > Per > > -- > 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/20180612145052.GA8444%40mailbox.org. > For more options, visit https://groups.google.com/d/optout.