backend-0.1.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Language.Ltml.ToLaTeX.PreLaTeXType

Description

module that serves as an edsl to be used to write latex code. only that the code is first transformed into the intermediate structure PreLaTeX. provides all necessary functions and can be extended if needed.

Documentation

data PreLaTeX Source #

Constructors

IText Text 
IRaw Text

raw unescaped PreLaTeX

ICommandS Text

command

ICommand Text [Text] [PreLaTeX]

command[opts]{args}

IEnvironment Text [Text] [PreLaTeX]

begin{env}[opts] ... end{env}

IBraced PreLaTeX

used for wrapping in braces

ISequence [PreLaTeX]

concatenation

MissingRef Label

the reason why we introduced this intermediate data type

Instances

Instances details
Monoid PreLaTeX Source # 
Instance details

Defined in Language.Ltml.ToLaTeX.PreLaTeXType

Semigroup PreLaTeX Source #

We want to be able to connect PreLaTeX structures and avoid deeply rooted sequences. Here we are using a monoid to be able to concat PreLaTeX structures while flattening sequences.

Instance details

Defined in Language.Ltml.ToLaTeX.PreLaTeXType

Show PreLaTeX Source # 
Instance details

Defined in Language.Ltml.ToLaTeX.PreLaTeXType

Eq PreLaTeX Source # 
Instance details

Defined in Language.Ltml.ToLaTeX.PreLaTeXType