Man page - pandoc-citeproc-preamble(1)
Packages contains this manual
apt-get install pandoc-citeproc-preamble
Manual
PANDOC-CITEPROC-PREAMBLE.1
NAMESYNOPSIS
DESCRIPTION
USAGE
FILES
RATIONALE
AUTHOR
SEE ALSO
NAME
pandoc-citeproc-preamble - insert a preamble before Pandocās bibliography
SYNOPSIS
pandoc-citeproc-preamble
DESCRIPTION
pandoc-citeproc-preamble is a JSON filter for pandoc (1) which inserts a preamble before the output that Pandocās citeproc filter appends to the document. This preamble might include a heading (e.g. "Bibliography") and/or raw markup to format the bibliography for the output format.
USAGE
Add --filter pandoc-citeproc-preamble somewhere after --citeproc , e.g.
% pandoc -s
--citeproc --bibliography=Ė/doc/mine.bib \
--filter pandoc-citeproc-preamble \
Ė/doc/my_essay.mdwn -o Ė/my_essay.pdf
FILES
Ė/.pandoc/citeproc-preamble/default. FORMAT
Default citeproc preamble for Pandoc output format FORMAT (e.g. "latex").
To override this, you can set document metadata like this:
% pandoc ...
--filter pandoc-citeproc-preamble \
-M citeproc-preamble=Ė/mypreamble.tex ...
RATIONALE
One motivation for authoring with Pandoc is that oneās input files are agnostic with regard to the output format to which they will eventually be compiled. For example, it should not be necessary to include LaTeX code in oneās input file in order to format the bibliography. The input file might also be compiled to HTML.
However, when compiling to PDF, formatting code is usually required in order to have the entries of Pandocās bibliography line up with each other; by default, all entries except the first will be indented. Another common customisation is to set up a hanging indent for bibliography entries.
Since Pandocās citeproc filter doesnāt provide any facility to add formatting control code to its output, pandoc-citeproc-preamble is necessary to avoid the user being forced to add their control code to the end of their input files, thereby losing the input fileās agnosticity with regard to output format.
AUTHOR
Sean Whitton <spwhitton@spwhitton.name>
SEE ALSO
pandoc (1)