From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/20352 Path: news.gmane.org!.POSTED!not-for-mail From: per.review-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org Newsgroups: gmane.text.pandoc Subject: Pandoc doesn't define references in PDF output with --biblatex (or --natbib) Date: Tue, 12 Jun 2018 16:50:52 +0200 Message-ID: <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 1528814943 30846 195.159.176.226 (12 Jun 2018 14:49:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 12 Jun 2018 14:49:03 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCGNFHUCXYFBBXN377MAKGQEJNDQZNA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Jun 12 16:48:59 2018 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-wr0-f187.google.com ([209.85.128.187]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fSkbS-0007rT-Gi for gtp-pandoc-discuss@m.gmane.org; Tue, 12 Jun 2018 16:48:58 +0200 Original-Received: by mail-wr0-f187.google.com with SMTP id i14-v6sf11154784wrq.1 for ; Tue, 12 Jun 2018 07:51:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1528815070; cv=pass; d=google.com; s=arc-20160816; b=AOQ6hCv8UTiHJSKdT3OKa1MypQzVqNL/1e7Z98CmmK1HGaPwjDK28hxFJDTod6QGea AOQ6fapvgxjy59OqkCxSfui72si1k6Ew7xxz3jYeE2ldimtGlAufaNDg/q6ZCNrmRa4F nnLwT2/+q3K38VLEKQa87KId6xS3hhc4yROUDkF7U9h+gfqyy4upXXE4EarITihfye8H 9F34seJSIwWkE2PLt+qdG5iMpaI/v4RNozWAtnzQ+uRypDynJq6o6+M9e0GhwEXCZOUe 33MXt55c7RqqQSVf9jyOzV88fFL9j5SCYumZ7FoQ0YOJtJgP8C842soEk6HNox39srqC aOGQ== 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:content-disposition :mime-version:mail-followup-to:message-id:subject:to:from:date :arc-authentication-results:arc-message-signature:sender :dkim-signature:arc-authentication-results; bh=MIft/uZrIxRa9eZ787d5MxOTLDx28UuIj1VVxJaZtFg=; b=L9vYqpIO9toIqc/t2z+9o/qpSOC6LWFeYsCAsNBmH8syOO2LvTOgyNU5iPI0QKAUNJ hp0EW+KinzYYSowtP29rv5yrrtcNmI4DRAU/3rfV25BiTpiZYoVff3mh/xPw88pYfo84 EiO+bjDG1EPvYOqpIjxjRca1WnA+6g0byIbGpU4D6pEqeAccLCAZLPIRfBj60H9BeTfo T9CK6ZlX+09wt7gPe2wmR5bVSeWStqmMaAvfFTIFxE3Tff580dNdshU9wAP1HxH7FOQY 0sh3Vdj11+5bJkvS7PChhDPWET3x7zXEU0699xgD1WZSnD+5WakcRxkFSLo+SeCRwL+o CM/Q== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=Z21MZYeh; spf=pass (google.com: domain of per.review-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org designates 80.241.60.212 as permitted sender) smtp.mailfrom=per.review-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mailbox.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:subject:message-id:mail-followup-to :mime-version:content-disposition: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=MIft/uZrIxRa9eZ787d5MxOTLDx28UuIj1VVxJaZtFg=; b=Mydqy0dFC4SJdnGbv3FwIfR2Xlgxu6CNkGNjfOjZhBLT7byHjmx5mEB6XZ5IJF+TXB hQ771ruSvDBjZfg3UqpRxlUSWKVs87cWbqNM0li/jdJUiO2nzh5wDPREbiv+noawS3hw mjgLHbJrdWOjU/Fpeir/0einANbR+D89ccJ8G9uU+X4IJwzy+2iobCFATNEs87Cza8z4 9669MVYCdj4GY6qHfHmi6Szt/A4UK03CGHwI/6ISiOmozE1eGbUDGHydQ9SGLSihQNPx aIV95MWeO5j+3ohq+U2aEuyVScv28Zay88zXnT7eWjxFNQE60nEUxywOdPrPfYZu5pFI /YSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:subject:message-id :mail-followup-to:mime-version:content-disposition: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=MIft/uZrIxRa9eZ787d5MxOTLDx28UuIj1VVxJaZtFg=; b=VqVIb+3mFoKmivI1jSb9WGeSq8sVEMix7Z/T+GJy7s4HKL4C2ve8DTkpwd+QOJiaG3 /tG764LhrDEahyaxM4XVC4TzGxBlp+b8ptVmoB3lsdrqHrcVEm8zgsxW59Wz2RaA0Ni3 w9iJWz9Cy4SAJH6N61nM1qCOTZiwPb8NyvRLGuaic++pARGkAh2/itySkYbu96B8atRS LxB3BK5nQkYr4Pf00Kdq2bGuTlkPsbs646PDoqmLJONWQzm4hoyvvtvDK5QTot4VDOl1 MdfxqyNvs2lXQ4ot5ZbNkPfZKbsDfNoJqVDEP2dMSKKfbVbZWSoiVTRz9fKIeuStNrGh s/ig== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APt69E0QuZgsX65nabTuWXX90rSmQNdceB8gJDDccOkCcmK7ehAiGjML ++DzSRdZzBx/I6M9ue51+4s= X-Google-Smtp-Source: ADUXVKKpS3toueC1guzkaf0D3LH2vFGCLDWBLyyuW+mKrSRMHfX9qnukp45pBL4FEA6g5p3WmPq8Eg== X-Received: by 2002:adf:e690:: with SMTP id r16-v6mr5201wrm.11.1528815070041; Tue, 12 Jun 2018 07:51:10 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:adf:fd05:: with SMTP id e5-v6ls606881wrr.4.gmail; Tue, 12 Jun 2018 07:51:09 -0700 (PDT) X-Received: by 2002:adf:c909:: with SMTP id m9-v6mr73816wrh.17.1528815069146; Tue, 12 Jun 2018 07:51:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528815069; cv=none; d=google.com; s=arc-20160816; b=zNrsPQ3WxLLaZAej3vTUy92qC8I+m+x/nA4AxUgi4z2b04OzKVA1GEIjujts3javuY aRSEkUwyzZ8xOXnUpojyjLYOdAlxJb8dMGr6jGwxmcNHItpRnh2f+mJ3t6q7UR6Lg/S6 xWBG+yvSSvwAu66AZzwb+iFMJjg6dS6be00HMV+53itHjDmnXTMLIOSfvAwpsJF8kodT cY46NxEP6uFSaF1rqHLx1GTA6TyCvLkkuXgzUozMJcpG7uvPOE15hagjk1yGKgCFmHVy EqNYjFaYjzmEDtQczE7kOaCAjpc9osgJCz/x8wMh+rzVoLE/Q1eCXir9l+hb373FjjNR OWkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:mail-followup-to:message-id :subject:to:from:date:dkim-signature:arc-authentication-results; bh=EWxy044PlhGREFm7iKmeqt+FqrZFUt+npVODp94xG5w=; b=U9dKIewMq4IsoqDwsNufahL+ueum8+oOyWr6jSciEnPehiy5Mb2BSJwRgWZEOqWfl3 l+55ldx6XTAG2tlEuSYXklzP+ilHRDmJgdAqBO5exP3PB5ZeofG+77hFjPJddEtW0ADt PEQpveYaAF6Ecd7he8p3GDpdS73ZnjXnzWI4BPc3Lrun+bCaRk0LpiwMVezrQxiI9tup bxyMuuBUSH99IWQKftv3Lp+2kzmum1byD0OelAW7F0P1A/MQa9itFcoQnHixBfdduFa4 z3lRCuUcPwS9Ix1Ij3LpCQzkwdmxIJGnSCLeA6VXWV8rcWOtReh9gevnAXtGTqS5f7d5 BwnQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=Z21MZYeh; spf=pass (google.com: domain of per.review-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org designates 80.241.60.212 as permitted sender) smtp.mailfrom=per.review-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mailbox.org Original-Received: from mx1.mailbox.org (mx1.mailbox.org. [80.241.60.212]) by gmr-mx.google.com with ESMTPS id v3-v6si21069wmh.0.2018.06.12.07.51.09 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jun 2018 07:51:09 -0700 (PDT) Received-SPF: pass (google.com: domain of per.review-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org designates 80.241.60.212 as permitted sender) client-ip=80.241.60.212; Original-Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id C345044583 for ; Tue, 12 Jun 2018 16:51:08 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Original-Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter02.heinlein-hosting.de (spamfilter02.heinlein-hosting.de [80.241.56.116]) (amavisd-new, port 10030) with ESMTP id 3Zd7h96NRaZu for ; Tue, 12 Jun 2018 16:51:08 +0200 (CEST) Mail-Followup-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Content-Disposition: inline X-Original-Sender: per.review-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=Z21MZYeh; spf=pass (google.com: domain of per.review-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org designates 80.241.60.212 as permitted sender) smtp.mailfrom=per.review-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mailbox.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:20352 Archived-At: 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