pandoc-citeproc-0.17: 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.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 -> [Text] 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 #