public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Pranesh Prakash <the.solipsist-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: citeproc citation not found
Date: Tue, 1 Dec 2020 09:22:13 -0800 (PST)	[thread overview]
Message-ID: <82852e69-e17f-466d-a08f-a7490157aacbn@googlegroups.com> (raw)
In-Reply-To: <d99b3932-8d94-4112-b5eb-3bb04bceeaaen-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>


[-- Attachment #1.1: Type: text/plain, Size: 6930 bytes --]

Sorry, the attachment didn't go through the last time.

On Tuesday, 1 December, 2020 at 8:39:58 pm UTC+5:30 Pranesh Prakash wrote:

> Dear Andrew,
> I am still unable to reproduce the error you're getting on Ubuntu 20.10 
> using pandoc 2.11.2.
>
> ~~~
> $ lsb_release -a
> No LSB modules are available.
> Distributor ID: Ubuntu
> Description: Ubuntu 20.10
> Release: 20.10
> Codename: groovy
>
> $ pandoc --version
> pandoc 2.11.2
> Compiled with pandoc-types 1.22, texmath 0.12.0.3, skylighting 0.10.0.3,
> citeproc 0.2, ipynb 0.1.0.1
> User data directory: /home/sol/.local/share/pandoc or /home/sol/.pandoc
> Copyright (C) 2006-2020 John MacFarlane. Web:  https://pandoc.org
> This is free software; see the source for copying conditions. There is no
> warranty, not even for merchantability or fitness for a particular purpose.
>
> $ cat MinWrkEx.md
> ---
> title: Minimum Working Example
> author: Andrew Mercer
> date: V.1
> papersize: a4
> geometry: margin=2cm
> font: 11
> linestretch: 1.2
> references:
> - id: auth2020
>   type: article-journal
>   author:
>   - family: Surname
>     given: Firstname
>   - family: Efternamn
>     given: Förnamn
>   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
>
> $ pandoc -s --toc --citeproc --csl=apa.csl MinWrkEx.md -o MinWrkEx.pdf
> ~~~
>
> Here's the resultant PDF.
>
> On Tuesday, 1 December, 2020 at 7:31:11 pm UTC+5:30 mercer...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org 
> wrote:
>
>> Tried confirming this on Ubuntu only to discover that pandoc doesn't 
>> create a data-dir on Ubuntu. I checked the locations indicated by --version 
>> and neither contained a pandoc directory.
>> This latest update seems to be full of holes. It would be nice if an 
>> older, functioning version were still available. Some sort of LTR 
>>
>> On Tuesday, 1 December 2020 at 14:31:33 UTC+1 Andrew Mercer wrote:
>>
>>> Removing pandoc-crossref doesn't help (and means figure refernces don't 
>>> work). 
>>> I have also tried converting the bib to json and to an external yaml but 
>>> neither of these helped
>>>
>>>
>>> On Wednesday, 18 November 2020 at 20:53:15 UTC+1 the.so...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org 
>>> wrote:
>>>
>>>> Hi. I tried to reproduce this without pandoc-crossref, but failed.  
>>>> Perhaps that is what is causing issues?  Could you check if your command 
>>>> works without pandoc-crossref?
>>>>
>>>> I used your text, and ran:
>>>> ```
>>>> pandoc -s --toc --citeproc --csl=apa.csl --bibliography=library.json -f 
>>>> markdown MinWrkEx.md -o MinWrkEx.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{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/e0984a43a99231e72c02a0a716c8d0315de9abdf#diff-64a9e5fa4509dce2699276c9e39993b4474e2446c3e86941a2f78a379f8c4079
>>>> On Wednesday, 18 November, 2020 at 11:15:32 pm UTC+5:30 
>>>> mercer...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:
>>>>
>>>>> The new citeproc is behaving very oddly.
>>>>>
>>>>> Firstly, the latex template is incorrect, cslreferences needs now to 
>>>>> read 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" 
>>>>> 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 
>>>>> 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 without a 
>>>>> 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=2cm*
>>>>> *font: 11*
>>>>> *linestretch: 1.2*
>>>>> *references:*
>>>>> *- id: auth2020*
>>>>> *  type: article-journal*
>>>>> *  author:*
>>>>> *  - family: Surname*
>>>>> *    given: Firstname*
>>>>> *  - family: Efternamn*
>>>>> *    given: Förnamn*
>>>>> *  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 
>>>>> pandoc-crossref --citeproc --csl=apa7.csl --bibliography=refs.bib 
>>>>> --resource-path=.;figures MinWrkEx.md -o MinWrkEx.pdf*
>>>>> *WARNING: pandoc-crossref was compiled with pandoc 2.11.0.4 but is 
>>>>> being run through 2.11.1.1. This is not supported. Strange things may (and 
>>>>> likely will) happen silently.*
>>>>> *[WARNING] Citeproc: citation rees2013physical not found```*
>>>>>
>>>>> I have no control over the citeproc version as it now is embedded in 
>>>>> pandoc
>>>>>
>>>>>

-- 
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/msgid/pandoc-discuss/82852e69-e17f-466d-a08f-a7490157aacbn%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 10331 bytes --]

[-- Attachment #2: MinWrkEx.pdf --]
[-- Type: application/pdf, Size: 139684 bytes --]

  parent reply	other threads:[~2020-12-01 17:22 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-18 17:45 Andrew Mercer
     [not found] ` <c5fad0e6-186d-4e31-8b38-063e12ff5547n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-11-18 19:53   ` Pranesh Prakash
     [not found]     ` <3e0b4d78-7fa0-49a1-9aec-76f0f35a68dbn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-12-01 13:31       ` Andrew Mercer
     [not found]         ` <b1de277e-6993-49ff-80be-34161ed23c18n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-12-01 14:01           ` Andrew Mercer
     [not found]             ` <0a64670e-a33d-4f2d-8e79-4e03bda6ffc6n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-12-01 15:06               ` Andrew Mercer
     [not found]                 ` <26044863-4227-481e-bf49-598d385ba76fn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-12-01 18:39                   ` John MacFarlane
     [not found]                     ` <m2im9lxtfb.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
2020-12-08  8:47                       ` Andrew Mercer
     [not found]                         ` <ac9eac16-5dab-4879-a5d7-03ab39e95953n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-12-15 15:16                           ` Andrew Mercer
     [not found]                             ` <aeffb619-6913-4d05-a293-c93656df0fecn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-12-15 16:57                               ` John MacFarlane
2020-12-01 15:09               ` Pranesh Prakash
     [not found]                 ` <d99b3932-8d94-4112-b5eb-3bb04bceeaaen-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-12-01 17:22                   ` Pranesh Prakash [this message]
2020-12-01 18:37               ` John MacFarlane

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=82852e69-e17f-466d-a08f-a7490157aacbn@googlegroups.com \
    --to=the.solipsist-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).