texmath-0.5.0.1: Conversion of LaTeX math formulas to MathML.Source codeContentsIndex
Text.TeXMath.Macros
Description
Functions for parsing LaTeX macro definitions and applying macros to LateX expressions.
Synopsis
data Macro
parseMacroDefinitions :: String -> ([Macro], String)
applyMacros :: [Macro] -> String -> String
Documentation
data Macro Source
show/hide Instances
parseMacroDefinitions :: String -> ([Macro], String)Source
Parses a string for a list of macro definitions, optionally separated and ended by spaces and TeX comments. Returns the list of macros (which may be empty) and the unparsed portion of the input string.
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.
Produced by Haddock version 2.6.1