Further update. Adding references to the yaml works but ALL references in the yaml are then place in the reference list at the end of the compiled document. On Tuesday, 1 December 2020 at 15:01:11 UTC+1 Andrew Mercer 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/26044863-4227-481e-bf49-598d385ba76fn%40googlegroups.com.