Safe Haskell | Safe-Inferred |
---|
This module exports those minimal things you need to work with HaTeX. Those things are:
- The
LaTeX
datatype. - The
<>
operator, to appendLaTeX
values. - The Text.LaTeX.Base.Render module, to render a
LaTeX
value intoText
. - The Text.LaTeX.Base.Types module, which contains several types used by other modules.
- The Text.LaTeX.Base.Commands module, which exports the LaTeX standard commands and environments.
- The Text.LaTeX.Base.Writer module, to work with the monad interface of the library.
- The Text.LaTeX.Base.Texy module, which exports the
Texy
class. Useful to pretty-print values in LaTeX form.
- data LaTeX
- protectString :: String -> String
- protectText :: Text -> Text
- module Text.LaTeX.Base.Render
- module Text.LaTeX.Base.Types
- module Text.LaTeX.Base.Commands
- module Text.LaTeX.Base.Writer
- module Text.LaTeX.Base.Texy
- module Data.Monoid
LaTeX
datatype
Type of LaTeX
blocks.
Eq LaTeX | |
Floating 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 | |
Texy LaTeX |
Escaping reserved characters
protectString :: String -> StringSource
Escape LaTeX reserved characters in a String
.
protectText :: Text -> TextSource
Escape LaTeX reserved characters in a Text
.
Internal re-exports
module Text.LaTeX.Base.Render
module Text.LaTeX.Base.Types
module Text.LaTeX.Base.Commands
module Text.LaTeX.Base.Writer
module Text.LaTeX.Base.Texy
External re-exports
Since the Monoid
instance is the only way to append LaTeX
values, a re-export of Data.Monoid is given here.
module Data.Monoid