Bundled Pandoc vs Source Pandoc

Consider the following minimal working example:

$ cat mwe.md 
Foo

|Reference                                         |
|:-------------------------------------------------|
|[@crawfordRiskFactorsMusculoskeletal2021]         |

Bar
$ cat mwe.bib 
@article{crawfordRiskFactorsMusculoskeletal2021,
  title = {The {{Risk Factors}} for {{Musculoskeletal Injuries}} in {{Thoroughbred Racehorses}} in {{Queensland}}, {{Australia}}: {{How These Vary}} for {{Two}}-{{Year}}-{{Old}} and {{Older Horses}} and with {{Type}} of {{Injury}}},
  shorttitle = {The {{Risk Factors}} for {{Musculoskeletal Injuries}} in {{Thoroughbred Racehorses}} in {{Queensland}}, {{Australia}}},
  author = {Crawford, Kylie L. and Finnane, Anna and Phillips, Clive J. C. and Greer, Ristan M. and Woldeyohannes, Solomon M. and Perkins, Nigel R. and Kidd, Lisa J. and Ahern, Benjamin J.},
  date = {2021-02},
  journaltitle = {Animals},
  volume = {11},
  pages = {270},
  publisher = {{Multidisciplinary Digital Publishing Institute}},
  doi = {10.3390/ani11020270},
  url = {https://www.mdpi.com/2076-2615/11/2/270},
  issue = {2},
  number = {2}
}

When I convert the Markdown file to LaTeX with Pandoc bundled in RStudio, I have

$ /usr/lib/rstudio/bin/pandoc/pandoc --version
pandoc 2.11.4
Compiled with pandoc-types 1.22, texmath 0.12.1, skylighting 0.10.2,
citeproc 0.3.0.5, ipynb 0.1.0.1
User data directory: /home/raniere/.local/share/pandoc or /home/raniere/.pandoc
Copyright (C) 2006-2021 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.
$ /usr/lib/rstudio/bin/pandoc/pandoc --to latex --from markdown+autolink_bare_uris+tex_math_single_backslash  --bibliography=mwe.bib --output mwe.tex mwe.md && cat mwe.tex
Foo

\begin{longtable}[]{@{}l@{}}
\toprule
Reference \\
\midrule
\endhead
{[}@crawfordRiskFactorsMusculoskeletal2021{]} \\
\bottomrule
\end{longtable}

Bar

Pandoc didn't processed my bibliography.

When I used Pandoc built from source, I have

$ pandoc --version
pandoc 2.10
Compiled with pandoc-types 1.21, texmath 0.12.0.2, skylighting 0.8.5
Default user data directory: /home/raniere/.local/share/pandoc or /home/raniere/.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.
$ pandoc --to latex --from markdown+autolink_bare_uris+tex_math_single_backslash  --bibliography=mwe.bib --output mwe.tex mwe.md && cat mwe.tex
Foo

\begin{longtable}[]{@{}l@{}}
\toprule
Reference\tabularnewline
\midrule
\endhead
(Crawford et al. 2021)\tabularnewline
\bottomrule
\end{longtable}

Bar

\hypertarget{refs}{}
\begin{cslreferences}
\leavevmode\hypertarget{ref-crawfordRiskFactorsMusculoskeletal2021}{}%
Crawford, Kylie L., Anna Finnane, Clive J. C. Phillips, Ristan M. Greer,
Solomon M. Woldeyohannes, Nigel R. Perkins, Lisa J. Kidd, and Benjamin
J. Ahern. 2021. ``The Risk Factors for Musculoskeletal Injuries in
Thoroughbred Racehorses in Queensland, Australia: How These Vary for
Two-Year-Old and Older Horses and with Type of Injury.'' \emph{Animals}
11 (2, 2): 270. \url{https://doi.org/10.3390/ani11020270}.
\end{cslreferences}

Can I have some help to debug this?

Pandoc 2.11 introduced a new citation processing . See release
https://pandoc.org/releases.html#pandoc-2.11-2020-10-11

and documentation
https://pandoc.org/MANUAL.html#citations

You need to activate pandoc citeproc using the --citeproc flag. I don't think you used this flag in your example.

Before it was Pandoc filter but it is now not used and no more shipped with Pandoc

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.