pandoc-citeproc-0.15.0.1: Supports using pandoc with citeproc

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

Text.CSL.Proc

Description

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

Synopsis

Documentation

data ProcOpts Source #

Constructors

ProcOpts 

Fields

Instances
Eq ProcOpts Source # 
Instance details

Defined in Text.CSL.Proc

Methods

(==) :: ProcOpts -> ProcOpts -> Bool

(/=) :: ProcOpts -> ProcOpts -> Bool

Read ProcOpts Source # 
Instance details

Defined in Text.CSL.Proc

Methods

readsPrec :: Int -> ReadS ProcOpts

readList :: ReadS [ProcOpts]

readPrec :: ReadPrec ProcOpts

readListPrec :: ReadPrec [ProcOpts]

Show ProcOpts Source # 
Instance details

Defined in Text.CSL.Proc

Methods

showsPrec :: Int -> ProcOpts -> ShowS

show :: ProcOpts -> String

showList :: [ProcOpts] -> ShowS

data BibOpts Source #

Constructors

Select [(String, String)] [(String, String)] 
Include [(String, String)] [(String, String)] 
Exclude [(String, String)] [(String, String)] 
Instances
Eq BibOpts Source # 
Instance details

Defined in Text.CSL.Proc

Methods

(==) :: BibOpts -> BibOpts -> Bool

(/=) :: BibOpts -> BibOpts -> Bool

Read BibOpts Source # 
Instance details

Defined in Text.CSL.Proc

Methods

readsPrec :: Int -> ReadS BibOpts

readList :: ReadS [BibOpts]

readPrec :: ReadPrec BibOpts

readListPrec :: ReadPrec [BibOpts]

Show BibOpts Source # 
Instance details

Defined in Text.CSL.Proc

Methods

showsPrec :: Int -> BibOpts -> ShowS

show :: BibOpts -> String

showList :: [BibOpts] -> ShowS

FromJSON BibOpts Source # 
Instance details

Defined in Text.CSL.Proc

Methods

parseJSON :: Value -> Parser BibOpts

parseJSONList :: Value -> Parser [BibOpts]

newtype FieldVal Source #

Constructors

FieldVal 

Fields

Instances
Show FieldVal Source # 
Instance details

Defined in Text.CSL.Proc

Methods

showsPrec :: Int -> FieldVal -> ShowS

show :: FieldVal -> String

showList :: [FieldVal] -> ShowS

FromJSON FieldVal Source # 
Instance details

Defined in Text.CSL.Proc

Methods

parseJSON :: Value -> Parser FieldVal

parseJSONList :: Value -> Parser [FieldVal]

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

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] Source #

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

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

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] Source #

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] Source #

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

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

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

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 Source #

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