texmath-0.11.2.2: Conversion between formats used to represent mathematics.

Safe HaskellSafe
LanguageHaskell2010

Text.TeXMath.TeX

Synopsis

Documentation

data TeX Source #

An intermediate representation of TeX math, to be used in rendering.

Constructors

ControlSeq String 
Token Char 
Literal String 
Grouped [TeX] 
Space 
Instances
Eq TeX Source # 
Instance details

Defined in Text.TeXMath.TeX

Methods

(==) :: TeX -> TeX -> Bool

(/=) :: TeX -> TeX -> Bool

Show TeX Source # 
Instance details

Defined in Text.TeXMath.TeX

Methods

showsPrec :: Int -> TeX -> ShowS

show :: TeX -> String

showList :: [TeX] -> ShowS

renderTeX :: TeX -> String -> String Source #

Render a TeX to a string, appending to the front of the given string.

isControlSeq :: String -> Bool Source #

escapeLaTeX :: Char -> TeX Source #