Citations
Citation SyntaxCitations go inside square brackets and are separated by semicolons. Each citation must have a key, composed of ‘@’ + the citation identifier from the database, and may optionally have a prefix, a locator, and a suffix. Here are some examples:
Blah blah [see @doe99, pp. 33-35; also @smith04, ch. 1].Blah blah [@doe99, pp. 33-35, 38-39 and *passim*].Blah blah [@smith04; @doe99].A minus sign (-) before the @ will suppress mention of the author in the citation. This can be useful when the author is already mentioned in the text:
Smith says blah [-@smith04].You can also write an in-text citation, as follows:
@smith04 says blah.@smith04 [p. 33] says blah.
Unused References (nocite)If you want to include items in the bibliography without actually citing them in the body text, you can define a dummynocite metadata field and put the citations there:
---nocite: | @item1, @item2...@item3In this example, the document will contain a citation for item3 only, but the bibliography will contain entries foritem1, item2, and item3.
Citation StylesBy default, pandoc will use a Chicago author-date format for citations and references. To use another style, you will need to specify a CSL 1.0 style file in the csl metadata field. For example:
---title: "Sample Document"output: html_documentbibliography: bibliography.bibcsl: biomed-central.csl---A primer on creating and modifying CSL styles can be found at http://citationstyles.org/downloads/primer.html. A repository of CSL styles can be found at https://github.com/citation-style-language/styles. See alsohttp://zotero.org/styles for easy browsing.
Citations for PDF OutputBy default, citations are generated by the utility pandoc-citeproc, and it works for all output formats. When the output is LaTeX/PDF, you can also use LaTeX packages (e.g. natbib) to generate citations; see [PDF documents] for details.