render package:HaTeX
The final purpose of this module is to render a Text value from a
LaTeX value. The interface is abstracted via a typeclass so you
can cast to
Text other types as well. Also, some other handy
Text-related functions are defined.
Class of values that can be transformed to
Text. You mainly
will use this to obtain the
Text output of a
LaTeX
value. If you are going to write the result in a file, consider to use
renderFile.
Consider also to use
rendertex to get
Renderable values
into
LaTeX blocks.
If you want to make a type instance of
Render and you already
have a
Show instance, you can use the default instance.
render = fromString . show
Render every element of a list and append results.
Render every element of a list and append results, separated by the
given
Char.
Render every element of a list and append results, separated by
commas.
Use this function to render a
LaTeX (or another one in the
Render class) value directly in a file.
If you can transform a value to
Text, you can insert that
Text in your
LaTeX code. That is what this function
does.
Warning: rendertex does not escape LaTeX reserved
characters. Use protectText to escape them.
Just like
rendertex, but with
LaTeXT output.
rendertexM = textell . rendertex
This function works as
tree, but use
render as rendering
function.