| 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 |
Instances
| Eq LaTeX | |
| Fractional LaTeX | Division uses the LaTeX |
| Num LaTeX | Careful! Method |
| Show LaTeX | |
| IsString LaTeX | Method |
| Monoid LaTeX | Method |
| LaTeXC LaTeX | This instance just sets |
| Render LaTeX |
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.