Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Functions for parsing LaTeX macro definitions and applying macros to LateX expressions.
Synopsis
- data Macro
- parseMacroDefinitions :: String -> ([Macro], String)
- pMacroDefinition :: (Monad m, Stream s m Char) => ParsecT s st m Macro
- applyMacros :: [Macro] -> String -> String
Documentation
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.