Portability | GHC |
---|---|
Stability | unstable |
Maintainer | stefan.berthold@gmx.net |
Safe Haskell | None |
Text.SmallCaps.LaTeX
Contents
Description
This modules specifies the data types LaTeX
and LaTeXElement
.
- type LaTeX = [LaTeXElement]
- data LaTeXElement
- isPrintable :: LaTeXElement -> Bool
- isMacro :: LaTeXElement -> Bool
- isEnvironment :: LaTeXElement -> Bool
- isBlock :: LaTeXElement -> Bool
- isBBlock :: LaTeXElement -> Bool
- isComment :: LaTeXElement -> Bool
- name :: LaTeXElement -> Text
- content :: LaTeXElement -> Text
- printable :: LaTeXElement -> Text
- body :: LaTeXElement -> LaTeX
- unlatex :: LaTeX -> Text
- unlatexElement :: LaTeXElement -> Text
- cc :: [Text] -> Text
Documentation
type LaTeX = [LaTeXElement]Source
data LaTeXElement Source
Constructors
Printable Text | (hopefully) printable text |
Macro Text LaTeX | macro name + following blocks |
Environment Text LaTeX | environment name + content |
Block LaTeX | separate block |
BBlock LaTeX | block between square brackets |
Comment Text | comment starting with |
Instances
Query
isMacro :: LaTeXElement -> BoolSource
isBlock :: LaTeXElement -> BoolSource
isBBlock :: LaTeXElement -> BoolSource
isComment :: LaTeXElement -> BoolSource
Accessors
name :: LaTeXElement -> TextSource
content :: LaTeXElement -> TextSource
printable :: LaTeXElement -> TextSource
body :: LaTeXElement -> LaTeXSource