From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/26866 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pranesh Prakash Newsgroups: gmane.text.pandoc Subject: Re: citeproc citation not found Date: Wed, 18 Nov 2020 11:53:15 -0800 (PST) Message-ID: <3e0b4d78-7fa0-49a1-9aec-76f0f35a68dbn@googlegroups.com> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_759_352925400.1605729195617" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37977"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDA2Z3PTWYIBBLHX2X6QKGQEZHP7FVY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Nov 18 20:53:20 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oi1-f186.google.com ([209.85.167.186]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kfTW4-0009k5-Ms for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 18 Nov 2020 20:53:20 +0100 Original-Received: by mail-oi1-f186.google.com with SMTP id w67sf1423140oia.13 for ; Wed, 18 Nov 2020 11:53:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=TswksmSEnpDD+OIrWutAqx9yWed3BPQbwOIuU8tbV0E=; b=KkR3YIqzaN0ZvxAum6uYYKfncS9j+kke+dONPBsJ+xoxEPY1UqxRWWm09XmrnrlzBt EX2pxCzWXQ/0Ufbhu/GW/hOXQ+MeSIX1GzGSvCkoKYE2IQ/xVXeQmRQc3Jtumkx6GKed BSoB1xk6E/SN+3BK0+7L4UVs4TOoG3fijXZTBC+AoOn9ZYAD90Qf98oBYG2NKDrkNtt/ mwwXadKGTBbeP6PvbVvd4wpcB6D1GNpdFERfBrSOzjtmWMH0KPIcozZYd4u/iOy7jlf3 xOZMxkpd0X62hjGBcESAf559v+aAjdT2cZAIfz+GxdPOFyAqSrI2dWz9dDyf7Km0j6xB Nwfw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=TswksmSEnpDD+OIrWutAqx9yWed3BPQbwOIuU8tbV0E=; b=hwEQNkCzH2GTs2ANF9Hn3WYKUylYkMeXtpIuSSXT2LWC+RF4kXiHOqzPtMak/oZ32v NGa1ZnFgpyx3rFKV7O3/ZANxOxOAcyHzwbwuLe/9gB/pQxOsM+lQg5QISp7pqa2vZbuC Shc1BQRH8tm8k5NfM803vpe3AOiwahErpfxnMtMtoPxF7HTCrbMnk2ZrGHR2CoAm2ExI LS+MgCrU9d6/jeoKOlV3XvGumvxelukt7vo7CHyWKaJKrmfxa8Bg3CUc8WrNg0zrdZdc u9vhzHGdtQZnuMMWyyCWxORbNRYKQ1xC+XXvDY5g/5w3eWJhq+ZmQhSB2juutjXq7pRZ OCXA== 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:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=TswksmSEnpDD+OIrWutAqx9yWed3BPQbwOIuU8tbV0E=; b=VG/8BgHVhaoNECEgyjIXLJD3GZUNxN6PgQ1biMZsyMtKj46XMXihcj2HTGDlWfHh40 1X36y0h0LJyn21FLsurP3tHzTWZAwVv//CNFasoKERwHWYdNaMW38DAxRGfekEPSvqO9 lkzmQqujzp3QJL52tPsRU2vCFms0FzWZ7RDm1bPD4ZnikL9Q96/IAOrlAi+NPzp3hMJ0 gWsaSIhKLTtlWL2abnTAi1YiunQpfCrilOAcZEDKV0C0OqQb1jZeG+cv3ZXfyjrFAeB+ ecPqlFyW/geWzhhv/818KAf6sPX4S5TmB1oNQTNWleHWUO3RnsYPve1ahpRrg/eG6ioh br6w== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532kulLcB4UzjIwGzDiQckHrKvHxa24H4nzRwVHlO7/U1jYgWZV4 q2tD8lW51PKd/KThwb9AJvQ= X-Google-Smtp-Source: ABdhPJxNc9BILVwi9eRJDxbc/rv2uQyYoy7UfG3JzmB9lxl9wmLcLJ+ilI+ShO5SsODyDQTcI/CXKA== X-Received: by 2002:a05:6830:1f5a:: with SMTP id u26mr7820361oth.250.1605729199631; Wed, 18 Nov 2020 11:53:19 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6830:1f59:: with SMTP id u25ls158412oth.1.gmail; Wed, 18 Nov 2020 11:53:16 -0800 (PST) X-Received: by 2002:a9d:694e:: with SMTP id p14mr6971925oto.254.1605729196216; Wed, 18 Nov 2020 11:53:16 -0800 (PST) In-Reply-To: X-Original-Sender: the.solipsist-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:26866 Archived-At: ------=_Part_759_352925400.1605729195617 Content-Type: multipart/alternative; boundary="----=_Part_760_575462466.1605729195617" ------=_Part_760_575462466.1605729195617 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi. I tried to reproduce this without pandoc-crossref, but failed. Perhaps= =20 that is what is causing issues? Could you check if your command works=20 without pandoc-crossref? I used your text, and ran: ``` pandoc -s --toc --citeproc --csl=3Dapa.csl --bibliography=3Dlibrary.json -f= =20 markdown MinWrkEx.md -o MinWrkEx.pdf=20 ``` I'm running Pandoc 2.11.1.1. =20 Also, I think cslreferences -> CSLReferences in the default LaTeX template= =20 was changed already: ``` $ pandoc -D latex | grep -i cslref \newenvironment{CSLReferences}[3] % #1 hanging-ident, #2 entry spacing ``` I believe it was changed when citeproc was added to pandoc: https://github.com/jgm/pandoc/commit/e0984a43a99231e72c02a0a716c8d0315de9ab= df#diff-64a9e5fa4509dce2699276c9e39993b4474e2446c3e86941a2f78a379f8c4079 On Wednesday, 18 November, 2020 at 11:15:32 pm UTC+5:30 mercer...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org= =20 wrote: > The new citeproc is behaving very oddly. > > Firstly, the latex template is incorrect, cslreferences needs now to read= =20 > CSLReferences > > But there are two problems I haven't been able to fix. > The first problem is a little odd,: the first reference gets "10"=20 > prepended to the first author name . > > The second problem is really confusing. > At first citeproc would not find references in a bib file. A single=20 > reference in the yaml was found but nothing else. I then converted the=20 > reference in the bib to yaml and added it to the yaml markdown documents= =20 > yaml. This works. > What is odd is that I converted the bib to yaml using pandoc without a=20 > problem. I am confused. > > *Here is the markdown text with two references in the yaml.* > > *---* > *title: Minimum Working Example* > *author: Andrew Mercer* > *date: V.1* > *papersize: a4* > *geometry: margin=3D2cm* > *font: 11* > *linestretch: 1.2* > *references:* > *- id: auth2020* > * type: article-journal* > * author:* > * - family: Surname* > * given: Firstname* > * - family: Efternamn* > * given: F=C3=B6rnamn* > * issued:* > * - year: 2019* > * title: Title of article* > * container-title: Journal Name* > * page: 1-12* > * volume: '1'* > * issue: '1'* > * abstract: 'The abstract text describing the article '* > *- author:* > * - family: Rees* > * given: William Gareth* > * id: rees2013physical* > * issued: 2013* > * publisher: Cambridge University Press* > * title: Physical principles of remote sensing* > * type: book* > *---* > > *# Section heading {#sec:sec1}* > > *Here is some text with a reference in the yaml @auth2020* > *Here is a reference to a bib entry @rees2013physical.* > > > *# References* > > > *This is the command I used and the message returned:* > > *```C:\Users\anwmer\Documents\MinWrkEx>pandoc -s --toc --filter=20 > pandoc-crossref --citeproc --csl=3Dapa7.csl --bibliography=3Drefs.bib=20 > --resource-path=3D.;figures MinWrkEx.md -o MinWrkEx.pdf* > *WARNING: pandoc-crossref was compiled with pandoc 2.11.0.4 but is being= =20 > run through 2.11.1.1. This is not supported. Strange things may (and like= ly=20 > will) happen silently.* > *[WARNING] Citeproc: citation rees2013physical not found```* > > I have no control over the citeproc version as it now is embedded in pand= oc > > --=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/3e0b4d78-7fa0-49a1-9aec-76f0f35a68dbn%40googlegroups.com. ------=_Part_760_575462466.1605729195617 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi. I tried to reproduce this without pandoc-crossref, but failed.&nbs= p; Perhaps that is what is causing issues?  Could you check if your co= mmand works without pandoc-crossref?

I used yo= ur text, and ran:
```
pandoc -s --toc --citeproc --csl= =3Dapa.csl --bibliography=3Dlibrary.json -f markdown MinWrkEx.md -o MinWrkE= x.pdf
```
I'm running Pandoc 2.11.1.1. 

Also, I think  cslreferences -> CSLReferences = in the default LaTeX template was changed already:

```
$ pandoc -D latex | grep -i cslref
\newenvironment{CSLRef= erences}[3] % #1 hanging-ident, #2 entry spacing
```

I believe it was changed when citeproc was added to pandoc= :
https://github.com/jgm/pandoc/commit/e0984a43a99231e72c02a0a716= c8d0315de9abdf#diff-64a9e5fa4509dce2699276c9e39993b4474e2446c3e86941a2f78a3= 79f8c4079
On Wednesday, 18 November, 2020 at 11:15:32 pm UTC+5:30 mercer...= @gmail.com wrote:
The new citeproc is behaving very oddly.

Firstly, t= he latex template is incorrect, cslreferences needs now to read CSLReferenc= es

But=C2=A0 there are two problems I haven't = been able to fix.
The first problem is a little odd,: the first r= eference gets "10" prepended to the first author name=C2=A0.

The second problem is really confusing.
At fir= st citeproc would not find references in a bib file. A single reference in = the yaml was found but nothing else. I then converted the reference in the = bib to yaml and added it to the yaml markdown documents yaml. This works.
What is odd is that I converted the bib to yaml using pandoc witho= ut a problem. I am confused.

Here is the markdo= wn text with two references in the yaml.

---
title: Minimum Working Example
= author: Andrew Mercer
date: V.1
papers= ize: a4
geometry: margin=3D2cm
font: 11
linestretch: 1.2
references:
- id: auth2020
=C2=A0 type: article-journal
<= div>=C2=A0 author:
=C2=A0 - family: Surname
=C2=A0 =C2=A0 given: Firstname
=C2=A0 - family: Efte= rnamn
=C2=A0 =C2=A0 given: F=C3=B6rnamn
= =C2=A0 issued:
=C2=A0 - year: 2019
=C2=A0= title: Title of article
=C2=A0 container-title: Journal N= ame
=C2=A0 page: 1-12
=C2=A0 volume: '= ;1'
=C2=A0 issue: '1'
=C2=A0 = abstract: 'The abstract text describing the article '
- author:
=C2=A0 - family: Rees
= =C2=A0 =C2=A0 given: William Gareth
=C2=A0 id: rees2013phy= sical
=C2=A0 issued: 2013
=C2=A0 publishe= r: Cambridge University Press
=C2=A0 title: Physical princ= iples of remote sensing
=C2=A0 type: book
<= div>---

# Section heading {#sec:s= ec1}

Here is some text with a refere= nce in the yaml @auth2020
Here is a reference to a bib ent= ry @rees2013physical.


=
# References


T= his is the command I used and the message returned:

```C:\Users\anwmer\Documents\MinWrkEx>pandoc -s --toc --fi= lter pandoc-crossref --citeproc --csl=3Dapa7.csl --bibliography=3Drefs.bib = --resource-path=3D.;figures MinWrkEx.md -o MinWrkEx.pdf
WA= RNING: pandoc-crossref was compiled with pandoc 2.11.0.4 but is being run t= hrough 2.11.1.1. This is not supported. Strange things may (and likely will= ) happen silently.
[WARNING] Citeproc: citation rees2013ph= ysical not found```

I have no control ov= er the citeproc version as it now is embedded in pandoc

--
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/3e0b4d78-7fa0-49a1-9aec-76f0f35a68dbn%40googlegroups.= com.
------=_Part_760_575462466.1605729195617-- ------=_Part_759_352925400.1605729195617--