| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
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
- generatePDFFromSection :: Text -> IO (Either String ByteString)
- generatePDF :: ToPreLaTeXM a => a -> IO (Either String ByteString)
- generateLaTeX :: ToPreLaTeXM a => a -> Text
Documentation
generatePDFFromSection :: Text -> IO (Either String ByteString) Source #
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.