pandoc-3.1.2: Conversion between markup formats
CopyrightCopyright (C) 2020-2023 John MacFarlane
LicenseGNU GPL, version 2 or above
MaintainerJohn MacFarlane <jgm@berkeley.edu>
Stabilityalpha
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Text.Pandoc.Readers.BibTeX

Description

Parses BibTeX or BibLaTeX bibliographies into a Pandoc document with empty body and references and nocite fields in the metadata. A wildcard nocite is used so that if the document is rendered in another format, the entire bibliography will be printed.

Synopsis

Documentation

readBibTeX :: (PandocMonad m, ToSources a) => ReaderOptions -> a -> m Pandoc Source #

Read BibTeX from an input string and return a Pandoc document. The document will have only metadata, with an empty body. The metadata will contain a references field with the bibliography entries, and a nocite field with the wildcard `[@*]`.

readBibLaTeX :: (PandocMonad m, ToSources a) => ReaderOptions -> a -> m Pandoc Source #

Read BibLaTeX from an input string and return a Pandoc document. The document will have only metadata, with an empty body. The metadata will contain a references field with the bibliography entries, and a nocite field with the wildcard `[@*]`.