backend-0.1.0.0
Safe HaskellNone
LanguageHaskell2010

Language.Ltml.ToLaTeX.PDFGenerator

Description

Module that provides the relevant functions to render a given AST into a PDF-bytestring. Core function is the generatePDF function that takes part of an ast and returns either a bytestring or an errortext.

Synopsis

Documentation

generatePDF :: ToPreLaTeXM a => a -> IO (Either String ByteString) Source #

top level function to generate a pdf bytestring from part of an ast. its main purpose is to catch all exceptions that might be thrown in compilePDF

generateLaTeX :: ToPreLaTeXM a => a -> Text Source #

function that encapsules the state logic to generate latex code from the ast.