| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Language.Ltml.ToLaTeX.ToPreLaTeXM
Description
Provides a way to convert the AST into the intermediate structure PreLaTeX. To this end a polymorphic typeclass ToPreLaTeXM that provides the function toPreLaTeXM is introduced and instances for all datatypes of the AST are defined.
Synopsis
- class ToPreLaTeXM a where
- toPreLaTeXM :: a -> State GlobalState PreLaTeX
Documentation
class ToPreLaTeXM a where Source #
class to convert AST objects into PreLaTeX. To be able to automatically generate numbers and context for each object, the class function toPreLaTeXM works in a State monad.
Methods
toPreLaTeXM :: a -> State GlobalState PreLaTeX Source #