Copyright | (c) Stefan Berthold 2014-2015 |
---|---|
License | BSD3-style (see LICENSE) |
Maintainer | stefan.berthold@gmx.net |
Stability | unstable |
Portability | GHC |
Safe Haskell | Safe |
Language | Haskell2010 |
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
- isMath :: 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 |
Math LaTeX | inline math |
Comment Text | comment starting with |
Instances
Query
isPrintable :: LaTeXElement -> Bool Source
isMacro :: LaTeXElement -> Bool Source
isEnvironment :: LaTeXElement -> Bool Source
isBlock :: LaTeXElement -> Bool Source
isBBlock :: LaTeXElement -> Bool Source
isMath :: LaTeXElement -> Bool Source
isComment :: LaTeXElement -> Bool Source
Accessors
name :: LaTeXElement -> Text Source
content :: LaTeXElement -> Text Source
printable :: LaTeXElement -> Text Source
body :: LaTeXElement -> LaTeX Source
Translation
unlatexElement :: LaTeXElement -> Text Source