Pandoc citations without adding a bibliography of links

Main question: Is there a way to mark Pandoc to disable the addition of bibliography, but still you have the right inline quotes?

I am writing a Markdown / Knitr document with a main file ( article.Rmd ) and several "child" files that are included in the main file using the Chitr option "child =".

Child files are mainly sections of the main file of the article, simply divided to simplify editing and management. In all of these child section files, I use citations in the Markdown text (for example, "@ author_title_1999") to refer to various documents. The main file and each child file have a YAML header, which provides the location of the BibTex file, for example:

 --- bibliography: mybibfile.bib ... 

(Enabling this YAML entry more than once is not a problem; see readme in metadata blocks .)

When I compile an entire document using Knitr, a large Markdown document is created. Then I use Pandoc with the --filter pandoc-citeproc to manage quotes. Pandoc inserts good quotes and adds a list of cited works as references / bibliographies. Cool.

When I write and edit individual child sections, I use the same quote that gives the correct lines, but unfortunately also adds links at the end, although this is only part of a larger document. I would like to compile these small child sections with inline quotes, but without a bibliography at the end.

+5
source share
1 answer

I think this is possible with the suppress-bibliography metadata field first introduced in pandoc-citeproc 0.7 (released in May 2015). From the current pandoc-citeproc page :

pandoc-citeproc will search for the following metadata fields in the input file:
...
suppress-bibliography : If this is true, the bibliography will be stopped. Otherwise, a bibliography will be inserted into each Div element with id refs . If there is no such Div, each will be created at the end of the document.

(As a workaround, you can also easily create your own CSL style that does not create a bibliography by removing the cs:bibliography child of the style. See http://docs.citationstyles.org/en/stable/specification.html#child-elements -of-cs-style .)

+5
source

Source: https://habr.com/ru/post/1204941/


All Articles