pandoc-citeproc-0.7.3.1: Supports using pandoc with citeproc

Copyright(c) Andrea Rossato
LicenseBSD-style (see LICENSE)
MaintainerAndrea Rossato <andrea.rossato@unitn.it>
Stabilityunstable
Portabilityunportable
Safe HaskellNone
LanguageHaskell98

Text.CSL.Proc

Description

This module provides functions for processing the evaluated Output for disambiguation and citation collapsing.

Synopsis

Documentation

data ProcOpts

Constructors

ProcOpts 

newtype FieldVal

Constructors

FieldVal 

Fields

unFieldVal :: (String, String)
 

processCitations :: ProcOpts -> Style -> [Reference] -> Citations -> [Formatted]

With a Style, a list of References and the list of citation groups (the list of citations with their locator), produce the Formatted for each citation group.

processBibliography :: ProcOpts -> Style -> [Reference] -> [Formatted]

With a Style and the list of References produce the Formatted for the bibliography.

citeproc :: ProcOpts -> Style -> [Reference] -> Citations -> BiblioData

With a Style, a list of References and the list of Citations, produce the Formatted for each citation group and the bibliography.

procRefs :: Style -> [Reference] -> [Reference]

Given the CSL Style and the list of References sort the list according to the Style and assign the citation number to each Reference.

sortItems :: Show a => [(a, [Sorting])] -> [a]

procBiblio :: BibOpts -> Style -> [Reference] -> [[Output]]

With a Style and a sorted list of References produce the evaluated output for the bibliography.

procGroup :: Style -> [(Cite, Reference)] -> CitationGroup

Given the CSL Style and the list of Cites coupled with their References, generate a CitationGroup. The citations are sorted according to the Style.

localModifiers :: Style -> Bool -> Cite -> Output -> Output

The Bool is True if we are formatting a textual citation (in pandoc terminology).