Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Document Description Language.
Synopsis
- data SecCons
- data Partition
- data Section = Section {}
- lab :: Lens' Section Reference
- data Document
- data ShowTableOfContents
- checkToC :: Document -> Document
- llcc :: Reference -> RawContent -> LabelledContent
- ulcc :: RawContent -> UnlabelledContent
- mkParagraph :: Sentence -> Contents
- mkFig :: Reference -> RawContent -> Contents
- mkRawLC :: RawContent -> Reference -> LabelledContent
- section :: Sentence -> [Contents] -> [Section] -> Reference -> Section
- extractSection :: Document -> [Section]
- getSec :: Section -> [Section]
- getSecCons :: SecCons -> [Section]
- fig :: Lbl -> Filepath -> RawContent
- figNoCap :: Lbl -> Filepath -> RawContent
- figWithWidth :: Lbl -> Filepath -> MaxWidthPercent -> RawContent
- figNoCapWithWidth :: Lbl -> Filepath -> MaxWidthPercent -> RawContent
- docNs :: UID -> UID
- docUid :: String -> UID
- makeTabRef :: String -> Reference
- makeFigRef :: String -> Reference
- makeSecRef :: String -> Sentence -> Reference
- makeEqnRef :: String -> Reference
- makeURI :: String -> String -> ShortName -> Reference
- makeTabRef' :: UID -> Reference
- makeFigRef' :: UID -> Reference
- makeSecRef' :: UID -> Sentence -> Reference
- makeEqnRef' :: UID -> Reference
- makeURI' :: UID -> String -> ShortName -> Reference
Section Types
Section Contents are split into subsections or contents, where contents
are standard layout objects (see Contents
).
data ShowTableOfContents Source #
Determines whether or not the table of contents appears on the generated artifacts.
checkToC :: Document -> Document Source #
Manually removes the first section of a document (table of contents section). temp fix for Notebook (see if we need this in notebook later)
Content Constructors
llcc :: Reference -> RawContent -> LabelledContent Source #
Smart constructor for labelled content chunks.
ulcc :: RawContent -> UnlabelledContent Source #
Smart constructor for unlabelled content chunks (no Reference
).
mkParagraph :: Sentence -> Contents Source #
Smart constructor that wraps UnlabelledContent
into Contents
.
mkFig :: Reference -> RawContent -> Contents Source #
Smart constructor that wraps LabelledContent
into Contents
.
mkRawLC :: RawContent -> Reference -> LabelledContent Source #
Smart constructor similar to llcc
, but takes in RawContent
first.
Section Constructors
extractSection :: Document -> [Section] Source #
getSecCons :: SecCons -> [Section] Source #
fig :: Lbl -> Filepath -> RawContent Source #
Figure
smart constructor with a Lbl
and a Filepath
. Assumes 100% of page width as max width. Defaults to WithCaption
.
figWithWidth :: Lbl -> Filepath -> MaxWidthPercent -> RawContent Source #
Figure
smart constructor that allows for customized max widths. Defaults to WithCaption
.
figNoCapWithWidth :: Lbl -> Filepath -> MaxWidthPercent -> RawContent Source #
Figure
smart constructor with customized max widths and no caption.
Reference Constructors
makeTabRef :: String -> Reference Source #
Create a reference for a table. Takes in the name of a table (which will also be used for its shortname).
makeFigRef :: String -> Reference Source #
Create a reference for a figure. Takes in the name of a figure (which will also be used for its shortname).
makeSecRef :: String -> Sentence -> Reference Source #
Create a reference for a section. Takes in the name of a section and a shortname for the section.
makeEqnRef :: String -> Reference Source #
Create a reference for a equation. Takes in the name of the equation (which will also be used for its shortname).
makeTabRef' :: UID -> Reference Source #
Variants of makeTabRef
that takes a UID
instead of a String
.
makeFigRef' :: UID -> Reference Source #
Variants of makeFigRef
that takes a UID
instead of a String
.
makeSecRef' :: UID -> Sentence -> Reference Source #
Variants of makeSecRef
that takes a UID
instead of a String
.
makeEqnRef' :: UID -> Reference Source #
Variants of makeEqnRef
that takes a UID
instead of a String
.