pandoc-citeproc-0.8.1.3: 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.Collapse

Description

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

Synopsis

Documentation

collapseCitGroups :: Style -> [CitationGroup] -> [CitationGroup] Source

Collapse citations according to the style options.

getCollapseOptions :: Style -> [String] Source

Get the collapse option set in the Style for citations.

groupConsec :: [Int] -> [[Int]] Source

Group consecutive integers:

groupConsec [1,2,3,5,6,8,9] == [[1,2,3],[5,6],[8,9]]

groupConsecWith :: (a -> Int) -> [a] -> [[a]] Source