pandoc-citeproc: Supports using pandoc with citeproc

[ bsd3, library, program, text ] [ Propose Tags ]
Versions 0.1, 0.1.1,,, 0.1.2,, 0.2, 0.3,, 0.3.1, 0.4,, 0.5, 0.6,, 0.7,,, 0.7.1,, 0.7.2, 0.7.3,, 0.7.4, 0.8,, 0.8.1,,,, 0.9, 0.9.1,, 0.10, 0.10.1,,,,, 0.10.2,,, 0.10.3, 0.10.4,, 0.10.5,, 0.11, 0.11.1,,,, 0.12, 0.12.1,, 0.12.2,,,,,, 0.13,, 0.14, 0.14.1,,,,,, 0.14.2, 0.14.3
Change log changelog
Dependencies aeson (>=0.7 && <0.11), aeson‑pretty, attoparsec, base (>=4), bytestring, containers (>=0.4), data‑default, directory, filepath, ghc‑prim, hs‑bibutils (>=0.3), mtl, old‑locale, pandoc (>=1.13), pandoc‑citeproc, pandoc‑types (>=1.12.3), parsec, pretty‑show, process, rfc5051, setenv (==0.1.*), split, syb, tagsoup, temporary (>=1.1), text, text‑icu, time, unordered‑containers (==0.2.*), vector (>=0.10), xml‑conduit (>=1.2 && <1.4), yaml (>= [details]
License BSD-3-Clause
Author John MacFarlane, Andrea Rossato
Category Text
Source repo head: git clone git://
Uploaded by JohnMacFarlane at Sat Nov 14 21:39:15 UTC 2015
Distributions Arch:, Debian:0.9, Fedora:, FreeBSD:, LTSHaskell:, NixOS:, openSUSE:
Executables test-citeproc, pandoc-citeproc
Downloads 37079 total (488 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2016-11-30 [all 4 reports]
Hackage Matrix CI

The pandoc-citeproc library exports functions for using the citeproc system with pandoc. It relies on citeproc-hs, a library for rendering bibliographic reference citations into a variety of styles using a macro language called Citation Style Language (CSL). More details on CSL can be found here:

Currently this package includes a heavily revised copy of the citeproc-hs code. When citeproc-hs is updated to be compatible, this package will simply depend on citeproc-hs.

This package also contains an executable: pandoc-citeproc, which works as a pandoc filter, and also has a mode for converting bibliographic databases a YAML format suitable for inclusion in pandoc YAML metadata.

[Skip to Readme]


  • Text
    • Text.CSL
      • Text.CSL.Data
      • Text.CSL.Eval
        • Text.CSL.Eval.Common
        • Text.CSL.Eval.Date
        • Text.CSL.Eval.Names
        • Text.CSL.Eval.Output
      • Input
        • Text.CSL.Input.Bibtex
        • Text.CSL.Input.Bibutils
      • Output
        • Text.CSL.Output.Pandoc
        • Text.CSL.Output.Plain
      • Text.CSL.Pandoc
      • Text.CSL.Parser
      • Text.CSL.Proc
        • Text.CSL.Proc.Collapse
        • Text.CSL.Proc.Disamb
      • Text.CSL.Reference
      • Text.CSL.Style



Use Chris Putnam's Bibutils.


Embed locale files into the library (needed for windows packaging)


Use Haskell bindings to the International Components for Unicode (ICU) libraries


Build the test-citeproc program


Turn on debug tracing.


Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainer's Corner

For package maintainers and hackage trustees

Readme for pandoc-citeproc-

[back to package description]


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.)


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.


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.