Using Citations in Pandoc: A Guide
Ce contenu n’est pas encore disponible dans votre langue.
In Pandoc, citation management is facilitated by employing Citation Style Language (CSL) and files, along with the style processor, Citeproc. Here are the basic steps for incorporating citations in Pandoc documents:
- Create a Bibliography:
- Generate a bibliography file in BibTeX using CiteDrive. This file contains information about the cited sources.
- Example BibTeX file, as exported by CiteDrive:
mylibrary.bib
- Select a Citation Style Language (CSL) File:
- Choose a CSL file that defines the desired citation format. CSL files can be downloaded from websites such as Citation Style Language - Style Repository.
Example: apa.csl
- Pandoc Command for Citations:
- Use the
--citeproc
switch of Pandoc to enable citation processing. - Specify the bibliography file (
--bibliography
) and the CSL file (--csl
).
Example:
Citations in Text:
- Insert citation markers in the text to reference the corresponding entries in the bibliography.
Example in Markdown:
-
Here,
author2020title
is replaced by the BibTeX key of the cited entry. -
Generate Bibliography:
- A bibliography is automatically created at the end of the document when using the
--citeproc
switch.
Note that the exact steps and commands may vary depending on specific requirements and citation styles you are using. It is advisable to consult the official Pandoc documentation and the documentation of the chosen citation style for precise information.