From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/20364 Path: news.gmane.org!.POSTED!not-for-mail From: "'Nick Bart' via pandoc-discuss" Newsgroups: gmane.text.pandoc Subject: Re: Pandoc doesn't define references in PDF output with --biblatex (or --natbib) Date: Thu, 14 Jun 2018 05:24:57 -0400 Message-ID: References: <20180612145052.GA8444@mailbox.org> <20180612214644.GB8444@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" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1528968188 4732 195.159.176.226 (14 Jun 2018 09:23:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 14 Jun 2018 09:23:08 +0000 (UTC) To: "pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org" Original-X-From: pandoc-discuss+bncBDR4BGVI44MRB57IRDMQKGQENYM3MQI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Jun 14 11:23:04 2018 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-wm0-f61.google.com ([74.125.82.61]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fTOT7-00012N-9V for gtp-pandoc-discuss@m.gmane.org; Thu, 14 Jun 2018 11:23:01 +0200 Original-Received: by mail-wm0-f61.google.com with SMTP id v5-v6sf3084852wmh.6 for ; Thu, 14 Jun 2018 02:25:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1528968312; cv=pass; d=google.com; s=arc-20160816; b=IjKXHICD1P7aJfnOUjf4tGpZ4vonq5IEUt68dLUedeV49HlwVmgPZW7+5nr0goc2BX CH3ULd6bZb5FFP9VUgFgZP3qW5O1cbol4fGDE+eM70ovwHAXwQ70VfYlAe5iK/h73Gk+ XynFVfAGUQT6YlGk8uHKIdQS+W+r+EcuUejlXQNQU9e4RZAGnr3jpd/vOSFNYOn+e35o G+xdPVyffonmPUualLlk3b61EwRuI5RdyE821JxgdPyz+DWIw/utANoehipc5ox0NmX2 veN27owk5V9FwmISvkYef3WqhpQNMeYrKUCIZAsnb5toa0qlpdvK38UM2T0iBXX8CXg2 yeew== 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:content-transfer-encoding :mime-version:feedback-id:references:in-reply-to:message-id:subject :reply-to:from:to:date:arc-authentication-results :arc-message-signature:dkim-signature:arc-authentication-results; bh=Ue2MZRZcUgvMSTAwd2XPwhFoYuBo2wumK7xktLLcCUs=; b=pKxsAnSpFcZkmp40xWcmQRY0xZ6yTakIiI1+SpJIAJkSPQz7PPEh8CbAjihCHVfgjk YS0hx6vnSvTW2hegWdpqkia+gN/1FQPKyA/ONev7K08NeRTQHWlwTyFUS2r5eN7c3Nwp 871/e9WWTIyxi6tcw/adUP9CKfuhz9bDegHJ4dkJ02ynFdFgEaxPKlX3T85b7MiUMYhH PJlbNAtzRiPmZbDySyrdNLQv7DZ7/uLcLqb3/pJSPd0gYZKHeMMG2+iT3qQQev9vgx7k GpkRo7sUOorjryKXtnRA4tEqleRJoWZWE6LdOYLAHufFXulHoE6uQtVhbMR2O24XQ/6k ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@protonmail.com header.s=default header.b=XWW6xahS; spf=pass (google.com: domain of njbart-g/b1ySJe57IN+BqQ9rBEUg@public.gmane.org designates 185.70.40.130 as permitted sender) smtp.mailfrom=njbart-g/b1ySJe57IN+BqQ9rBEUg@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=date:to:from:reply-to:subject:message-id:in-reply-to:references :feedback-id:mime-version:content-transfer-encoding :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=Ue2MZRZcUgvMSTAwd2XPwhFoYuBo2wumK7xktLLcCUs=; b=OnSYfv5+7EbShWktckwC6lCtsmE45id3MiRxfMrBx1erJwpwCX7l+ZXXzFbM16z6Y5 fv8cDq5hIdu8t/l8br9m3GZuFBGUAI96oIcweeR/rdp+p28DXx18g1taH/VNPkl3Ivaf JiCnL47p6dvfrmIewll0HEzKANf8YUbMev5NY6tUxfh4sIQ/99yL7oBbV7BcKoCgWblb 94/nvks9Gffb9K8H7nFeeZzc3+HcaO9dqRWSHyoS1k9SYdiLVJSa1WexJiH6L1/CW7Vk t5AKFQraaLTUxtUdwXx9D31wXePffM1oS2kkWXPC6Lnydlw49+3bk/ycWaATKRJn83rR nZ7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:to:from:reply-to:subject:message-id :in-reply-to:references:feedback-id:mime-version :content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=Ue2MZRZcUgvMSTAwd2XPwhFoYuBo2wumK7xktLLcCUs=; b=ojtuVNKFhgXKrbaBfrof6taPlO8tuazYqGw1mW2Bxc+foPKxfDNkHqy7k9laaOH2ml jf8C/P32hRu4uASqkM1z51mW7jN2uNyzcjq27pnwsk76Sh6sx/GOBqvPmNBLz3Xhfct2 1h/jyaOlJEbDSD6lObKt6L+zaqf2VhTpGek3PENBNLC25JcnBd+/LncFH4OVkrOvl1Jc tAAWakNbLzrVSKmxAG6GQanSP+wbl2LW7xRR8eAiYW+0drzejGMgZL+CHJmQUUuGYGsM KakN3zymGhAInQUFb48RPJHHHwVxle+/yYX3uKuI5yg5pVYi4YWlxXTnY+z X-Gm-Message-State: APt69E184iK+M1jRV7qSGLckOpALdKW8G5MAIdtimlbzYJbe+Qyi9E6U 7+ztNvjKXgF0T7oqn47dk1E= X-Google-Smtp-Source: ADUXVKIIz3xiMRtbpPElLf7oyZSmFrfP2kCkSBi3+P2P7qW/R1qmT3xfzablKgk8YOYLzzvockJEEw== X-Received: by 2002:adf:be90:: with SMTP id i16-v6mr16702wrh.6.1528968312751; Thu, 14 Jun 2018 02:25:12 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a1c:864a:: with SMTP id i71-v6ls1526951wmd.11.gmail; Thu, 14 Jun 2018 02:25:11 -0700 (PDT) X-Received: by 2002:a1c:ed0f:: with SMTP id l15-v6mr125249wmh.24.1528968311615; Thu, 14 Jun 2018 02:25:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528968311; cv=none; d=google.com; s=arc-20160816; b=hiSz9LLFDsNhQEwg0ElMvCGDAYfuUOqkx172md0/01bIqgtMEHrhxLDaBmdrmEJWdE igAANKVZhVYJLc4AiuPv8hRfrbwWsfRcKXw5AgCUN8/jWe/bIwa0qFwK1QbWDOkf20bI ciT2EIjqjeoIlpdDCeE+q1Vep5vxfkGJto/XA0B4rxdI1KSAPq3qMDRJAjfkcDds5eyu TwN7BMnG5GM+SDpJS+JhqW8bv7gWgSxI521kSQ7sU22mwOYT32CDvA9Qdj52+khSoU8W jN1/J/gnXiN4EwRsr9BXUcs6x0NuwbplS0jxNzmopbq4BpiL9BX/BTjnx9s5izgtMIiO ZDXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:feedback-id:references :in-reply-to:message-id:subject:reply-to:from:to:dkim-signature:date :arc-authentication-results; bh=783QRDPXcUWfqtxAxBcL/bsy4Y7EP9sLWBGi1WV1+KI=; b=zMWEumOKvIENYKZq0Mi4MpdQPPeBXGUu8gk5+u5TGabw2ZN8dVyrPv/SKkK/kBqsb5 nCnX5KCtxh4DwPUtmHO5cdEzW10iGfS9rdyBowoCGu26YxrClvZigbyqhzKU0+F8gC47 J8BkXOS41MDkSBoW94M9SOvL8OLIsYwwAyhnTcbASLID2d5IXQzDL++11Gqc+k+5Co7e 4Wb9nNlfxJIV7fz5GeVccXJJIF0rBPtWnSVrrUS0Khqcspv9UTPx9Cig6LLJEchQIvwg T6SzYFZBUUBfgABqDe6rZlXqmgV0jJFsyJh8VAURPeFwml0qkYwSXBWx0kcaIXCQlwna hMfg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@protonmail.com header.s=default header.b=XWW6xahS; spf=pass (google.com: domain of njbart-g/b1ySJe57IN+BqQ9rBEUg@public.gmane.org designates 185.70.40.130 as permitted sender) smtp.mailfrom=njbart-g/b1ySJe57IN+BqQ9rBEUg@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Original-Received: from mail-1857040130.protonmail.ch (mail-1857040130.protonmail.ch. [185.70.40.130]) by gmr-mx.google.com with ESMTPS id x3-v6si243865wrn.0.2018.06.14.02.25.11 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Jun 2018 02:25:11 -0700 (PDT) Received-SPF: pass (google.com: domain of njbart-g/b1ySJe57IN+BqQ9rBEUg@public.gmane.org designates 185.70.40.130 as permitted sender) client-ip=185.70.40.130; In-Reply-To: Feedback-ID: T7I7uPR9W9evC_OcG8CBOCN9yIeN-ZcL5eoBW0Yo0yb1KBuFiWJHPOG_haM_8t-U8KFedKZ5MEsM7XTOyk4nhw==:Ext:ProtonMail X-Original-Sender: njbart-g/b1ySJe57IN+BqQ9rBEUg@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@protonmail.com header.s=default header.b=XWW6xahS; spf=pass (google.com: domain of njbart-g/b1ySJe57IN+BqQ9rBEUg@public.gmane.org designates 185.70.40.130 as permitted sender) smtp.mailfrom=njbart-g/b1ySJe57IN+BqQ9rBEUg@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com X-Original-From: Nick Bart 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:20364 Archived-At: I have been using a Haskell filter for years now (see https://github.com/nj= bart/pandoc-tools/blob/master/addRefEnvItem.hs) to replace the Div element = with class "references" by a LaTeX "references" environment, and to prepend= "\item" to each block. (Traditionally, both bibtex and biblatex use such itemized lists for the re= ferences section, and LaTeX itself uses this internally for "quote" and man= y other environments -- so using "\item" is nothing particularly unusual.) I=E2=80=99m defining the LaTeX "references" environment in the template as = follows: \newenvironment{references} {\list{}{% \leftmargin1.5em% \itemindent-\leftmargin% $if(indent)$ \itemsep0ex% $else$ \itemsep\parsep% $endif$ \parsep0pt% \setlength{\topsep}{0pt} \setlength{\partopsep}{0pt} }} {\endlist} I think it=E2=80=99d be great if the LaTeX writer could do this by default. Note that my definition always creates a hanging indent. It might be useful= if pandoc set a "hanging" (or "csl-hanging-indent") variable that could be= evaluated in LaTeX (and possibly other) templates. As to the other CSL "Whitespace" options (see http://docs.citationstyles.or= g/en/1.0.1/specification.html#whitespace), "line-spacing" and "entry-spacin= g" could be made to be set via a variable, too. I tend to think this could = be made to work for "second-field-align", too, though I=E2=80=99m not sure = at the moment how exactly the list environment would have to look like to m= ake this somewhat table-like alignment possible. =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On June 13, 2018 5:28 PM, John MacFarlane wrote: > pandoc-citeproc wraps the whole bibliography in a Div > > element with class "references." > > This is currently just ignored by the LaTeX writer, > > but you can use a lua filter to insert a custom > > environment or some custom commands. > > We might think about having the LaTeX writer do > > something here by default. But what? The most > > flexible thing would be inserting the whole thing > > into a special environment, but then we'd need to > > add something to the default template to make sure > > this environment is defined. > > per.review-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org writes: > > > John MacFarlane jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org [2018-06-12 18:02 +0200]: > > > > > 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, ... > > > > Thanks for the quick answer! I saw the explanation of the --biblatex > > > > option in the manual, but was so certain I could remember Pandoc doing > > > > this. Turns my usage of rmarkdown/knitr, which does handle this, had > > > > contaminated my memory (and led me to only look for recent issues). > > > > However, Pandoc(-citeproc)'s implementation of CSL styles still has a > > > > long way to go in terms of customisation and styling. If the PDF output > > > > has indented paragraphs, bibliography entries will be styled the same > > > > way. I've posted a hack to deal with this: > > > > https://github.com/jgm/pandoc/issues/335#issuecomment-396739093 I don't > > > > know what you think about including anything like in the LaTeX template= ? > > > > (I understand that better support for CSL attributes are not a priority= , > > > > but I think it's a problem when something as simple a paragraph > > > > indentation breaks the styling.) > > > > -- > > > > Per > > > > -- > > > > You received this message because you are subscribed to the Google Grou= ps "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/ms= gid/pandoc-discuss/20180612214644.GB8444%40mailbox.org. > > > > For more options, visit https://groups.google.com/d/optout. > > -- > > 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/msgi= d/pandoc-discuss/m2fu1qzjdf.fsf%40johnmacfarlane.net. > > For more options, visit https://groups.google.com/d/optout. --=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 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/Qg6kaM969Hyzb8mp4AWqajN8RTCullV-EevCrKIItI4aZRBOWydJ--tFaW69= q744i99DiydmIKeIvthe8iFIu7ghAjZ4STy8dyi9FAmSs1U%3D%40protonmail.com. For more options, visit https://groups.google.com/d/optout.