citeproc-hs-0.3.9: A Citation Style Language implementation in Haskell

Portabilityunportable
Stabilityunstable
MaintainerAndrea Rossato <andrea.rossato@unitn.it>
Safe HaskellNone

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