HaTeX-3.0.0: LaTeX code writer.
Text.LaTeX.Base.Writer
Contents
LaTeXT
Synopsis
data LaTeXT m a Source
Newtype wrapper over the WriterT monad transformer, with LaTeX as writer state.
WriterT
LaTeX
Instances
type LaTeXT_ m = LaTeXT m ()Source
runLaTeXT :: LaTeXT m a -> m (a, LaTeX)Source
execLaTeXT :: Functor m => LaTeXT m a -> m LaTeXSource
This is the usual way to run the LaTeXT monad and obtain a LaTeX value.
extractLaTeX :: Monad m => LaTeXT m a -> LaTeXT m (a, LaTeX)Source
This function run a LaTeXT computation, lifting the result again in the monad.
extractLaTeX_ :: Monad m => LaTeXT m a -> LaTeXT m LaTeXSource
textell :: Monad m => LaTeX -> LaTeXT m ()Source
With textell you can append LaTeX values to the state of the LaTeXT monad.
textell