drasil-printers-0.1.10.0: A framework for code and document generation for scientific software - Printers SubPackage
Safe HaskellSafe-Inferred
LanguageHaskell2010

Language.Drasil.TeX.Print

Description

Defines main LaTeX printer functions. For more information on each of the helper functions, please view the source files.

Synopsis

Documentation

genTeX :: Document -> PrintingInformation -> Doc Source #

Generates a LaTeX document.

pExpr :: Expr -> D Source #

Print an expression to a document.

pUnit :: USymb -> D Source #

Prints units.

spec :: Spec -> D Source #

Prints all Exprs.

fence :: OpenClose -> Fence -> D Source #

Prints fencing notation ("(),{},|,||").

data OpenClose Source #

Determine wether braces and brackets are opening or closing.

Constructors

Open 
Close 

pMatrix :: [[Expr]] -> (Doc -> [D] -> D) -> Doc -> (Expr -> D) -> D Source #

For printing a Matrix.

cases :: [(Expr, Expr)] -> (Doc -> [D] -> D) -> Doc -> (Expr -> D) -> D Source #

Helper for printing case expression.