Skip to content
Library and executable for using citeproc with pandoc
Haskell TeX Shell Makefile
Branch: master
Clone or download

Latest commit

felixonmars Allow aeson 1.5 (#452)
Builds fine and all tests pass here.
Latest commit 9273417 May 25, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Add GitHub actions CI. Nov 13, 2019
compat/Text/CSL/Compat Switch to Text (#430) Jan 6, 2020
locales Update chicago-author-date.csl and locales. Sep 3, 2019
man Update man page. Nov 19, 2019
prelude USe NoImplicitPrelude with custom prelude. Mar 18, 2018
src/Text Fix infinite loop when compiled with -embed_data_files... May 22, 2020
tests Only print labels if selected variable is non-empty. Jan 27, 2020
.gitignore Replace some of the yaml use with HsYAML-aeson Sep 22, 2019
CONTRIBUTING.md Add mktest.sh for wrangling test cases. (#364) Nov 11, 2018
LICENSE Added --license to CLI and getLicense to Text.CSL.Data. Mar 19, 2017
Makefile USe NoImplicitPrelude with custom prelude. Mar 18, 2018
README.md Add GitHub actions CI. Nov 13, 2019
Setup.hs Removed hsb2hs specific stuff from Setup.hs. Aug 15, 2017
TODO Minor documentation fixes. Sep 1, 2013
cabal.project Add pandoc-types to cabal.project. May 17, 2020
changelog Update changelog. Feb 16, 2020
chicago-author-date.csl Update chicago-author-date.csl and locales. Sep 3, 2019
hackage-docs.sh Added hackage-docs.sh to upload haddocks when Hackage can't build them. Nov 27, 2015
mktest.sh Add mktest.sh for wrangling test cases. (#364) Nov 11, 2018
pandoc-citeproc.cabal Allow aeson 1.5 (#452) May 26, 2020
pandoc-citeproc.hs Switch to Text (#430) Jan 6, 2020
stack.yaml Update stack.yaml to use dev pandoc/pandoc-types. May 13, 2020

README.md

pandoc-citeproc

CI tests

This package provides a library and executable to facilitate the use of citeproc with pandoc 1.12 and greater. (Earlier versions of pandoc have integrated citeproc support.)

pandoc-citeproc

The pandoc-citeproc executable can be used as a filter with pandoc to resolve and format citations using a bibliography file and a CSL stylesheet. It can also be used (with --bib2yaml or --bib2json options) to convert a bibliography to a YAML format that can be put directly into a pandoc markdown document or to CSL JSON. Bibliographies can be in any of several formats, but bibtex and biblatex are the best supported.

For usage and further details, see the pandoc-citeproc man page.

The current version of the package includes code from citeproc-hs, which has not been updated for some time. When citeproc-hs is brought up to date, this code can be removed and this package will depend on citeproc-hs.

Text.CSL.Pandoc

Those who use pandoc as a library (e.g. in a web application) will need to use this module to process citations.

The module exports two functions, processCites, which is pure and accepts a style and a list of references as arguments, and processCites', which lives in the IO monad and derives the style and references from the document's metadata.

You can’t perform that action at this time.