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

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