Questions tagged [pandoc-citeproc]

Pandoc filter and Haskell library for working with bibliographies. This is deprecated in favour of citeproc since 2020.

The pandoc-citeproc executable can be used as a filter with pandoc to resolve and format citations using a bibliography file and a CSL stylesheet. It can also be used (with --bib2yaml or --bib2json options) to convert a bibliography to a YAML format that can be put directly into a pandoc markdown document or to CSL JSON. Bibliographies can be in any of several formats, but bibtex and biblatex are the best supported. This is deprecated in favour of citeproc since 2020, and no additinal filter is required.

71 questions
30
votes
3 answers

Pandoc conversion to PDF not providing colored hyptertext links

Consider the following snippet of a PDF generated from pandoc by way of latex. Were you able to identify the hypertext links in there? Neither was I... It turns out that the second Kaplan Meier has a fully functional link to an external site. …
WestCoastProjects
  • 58,982
  • 91
  • 316
  • 560
23
votes
2 answers

How to cite multiple papers in RMarkdown

How do I cite multiple papers in RMarkdown as I would do in LaTex with \cite{Bartel2004, Bartel2009a} I tried [@Bartel2004, @Bartel2009a] which renders to (D. P. Bartel 2004, David P. Bartel (2009)) which is not too bad, but the second brackets…
Gregor Sturm
  • 2,792
  • 1
  • 25
  • 34
13
votes
2 answers

R Markdown: suppress parentheses in specific citations

I have an R Markdown document that includes some citations. I am using the default citation style, which usually works well for me. But I have some sentences that lie within parentheses, and in these sentences, I want to cite works without adding a…
user697473
  • 2,165
  • 1
  • 20
  • 47
7
votes
0 answers

pandoc citations in revealjs from markdown

I use pandoc to generate Reveal.js slides from a Markdown file. All the citations are dumped in in the last slide, so I finish the .md file with the title # References, which is fitting. However, all references are in the same slide, and they would…
Trylks
  • 1,458
  • 2
  • 18
  • 31
6
votes
1 answer

How to move superscript citation numbers inside of punctuation in Markdown file?

I am using Rmarkdown to write a paper with citations. When I use Nature's CSL (or any superscript numeric style) and render with Pandoc and pandoc-citeproc, the in line citations are outside of the punctuation. How can I move them inside the…
Daijiang Li
  • 697
  • 4
  • 16
6
votes
1 answer

Show all used references when using compact numeric citation style

I'm rendering html from markdown using bookdown, and using a compact numeric citation style so that e.g., 1, 2, 3 is shown as 1-3. I'd like references to be shown at the bottom of each page (link-citations: yes), but only the first and last…
jbaums
  • 27,115
  • 5
  • 79
  • 119
5
votes
1 answer

knitr/Rmarkdown/pandoc : How to set bibliography paths globally in .Rmd files

[FYI: This question is related to rmarkdown: how to use multiple bibliographies for a document In LaTeX documemnts or even in Rmarkdown .Rnw, I can simply use something like \bibliography{graphics, statistics, timeref} to have BibTeX search for the…
user101089
  • 3,756
  • 1
  • 26
  • 53
4
votes
2 answers

pandoc does not produce bibliography when biblio file is in YAML-metadata only

I assume that inserting a reference to a BibTex bibliography in a YAML-metadata is sufficient for the references to be produced. This is like pandoc does not print references when .bib file is in YAML, which was perhaps misunderstood and which has…
user855443
  • 2,596
  • 3
  • 25
  • 37
4
votes
2 answers

Can I specify multiple bibliography (BibTeX) files in Pandoc Metadata?

Often, scientific journal websites and other sources offer downloadable *.bib files for referring to individual articles. If I use these, I like to keep them as they are instead of merging them into a single file. On the command line, several files…
das-g
  • 9,718
  • 4
  • 38
  • 80
3
votes
1 answer

Building a self-contained binary executable in Haskell with the dependency pandoc-citeproc

I'm trying to compile a self-contained executable for a CLI tool written in Haskell. I followed this example to automatically build the executables for different operating systems with Github Actions using Cabal v3.2 and ghc v8.10.3. This seems to…
nevrome
  • 1,471
  • 1
  • 13
  • 28
3
votes
1 answer

How to use --citeproc instead of pandoc-citeproc in RStudio when bibliography is used in an RMarkdown document?

I get the following error when trying to render a RMarkdown document in RStudio with bibliography specified in the YAML as bibliography: references.bib: [WARNING] Deprecated: pandoc-citeproc filter. Use --citeproc instead. Error running filter…
ForEverNewbie
  • 357
  • 2
  • 10
3
votes
1 answer

Pandoc conversion from LaTeX+BibLaTeX to Markdown

This should be relatively simple but I can't find a clear answer about how to do it. I am using the command: pandoc -s myfile.tex -o outfile.md --bibliography mybib.bib But outfile.md does not end up having any bibliography. What is going on?
Joshua Meyers
  • 619
  • 1
  • 8
  • 17
3
votes
1 answer

Organizing references by year in Pandoc when generating HTML

I am relatively new with Pandoc and I am trying to generate an HTML file with my publications to put up on my website. I'd like to have the publication list numbered and organized by year first, with the most recent first and the oldest last. I can…
TomCho
  • 3,204
  • 6
  • 32
  • 83
3
votes
1 answer

How can I use a URL for the bibliography YAML element in an RMarkdown document?

Goal: I am able to use a URL to specify the csl for my document within my YAML front matter, and I'd like to be able to do the same for the bibliography element. Question: Is this possible? Motivation: Using URLs for these elements, as opposed to…
mikoontz
  • 592
  • 5
  • 11
3
votes
2 answers

Bibtex authors appearing as dashed lines in references when using bookdown and pandoc

I'm generating a reference section using Rmarkdown, bookdown and pandoc. I have a reference section with 6 entries. One of the entries does not have the author list, and instead appears as: ———. 2004. “Multimodel Inference.” Sociological Methods &…
Michael Barton
  • 8,868
  • 9
  • 35
  • 43
1
2 3 4 5