texmath-0.4: Conversion of LaTeX math formulas to MathML.

Text.TeXMath.Macros

Description

Functions for parsing LaTeX macro definitions and applying macros to LateX expressions.

Synopsis

# Documentation

data Macro Source

Constructors

 Macro FieldsmacroDefinition :: String macroParser :: forall st. GenParser Char st String

Instances

 Show Macro


applyMacros :: [Macro] -> String -> StringSource

Applies a list of macros to a string recursively until a fixed point is reached. If there are several macros in the list with the same name, earlier ones will shadow later ones.