| Safe Haskell | None |
|---|
Text.LaTeX.Base.Syntax
Description
- data LaTeX
- data TeXArg
- (<>) :: Monoid m => m -> m -> m
- protectString :: String -> String
- protectText :: Text -> Text
LaTeX datatype
Type of LaTeX blocks.
Constructors
| TeXRaw Text | Raw text. |
| TeXComm String [TeXArg] | Constructor for commands. First argument is the name of the command. Second, its arguments. |
| TeXCommS String | Constructor for commands with no arguments. |
| TeXEnv String [TeXArg] LaTeX | Constructor for environments. First argument is the name of the environment. Second, its arguments. Third, its content. |
| TeXMath LaTeX | Mathematical expressions. |
| TeXNewLine Bool | Newline character. |
| TeXOp String LaTeX LaTeX | Operators. |
| TeXBraces LaTeX | A expression between braces. |
| TeXComment Text | Comments. |
| TeXSeq LaTeX LaTeX | |
| TeXEmpty | An empty block.
Neutral element of |
An argument for a LaTeX command or environment.
Escaping reserved characters
protectString :: String -> StringSource
Escape LaTeX reserved characters in a String.
protectText :: Text -> TextSource
Escape LaTeX reserved characters in a Text.