HaTeX-3.6.0.1: The Haskell LaTeX library.

Portabilityportable
Stabilityexperimental
Safe HaskellNone

Text.LaTeX.Base.Parser

Description

LaTeX Parser based on Attoparsec

Synopsis

Documentation

latexParser :: Parser LaTeXSource

The incremental LaTeX Parser

latexBlockParser :: Parser LaTeXSource

Incremental Parser for single blocks of LaTeX

latexAtOnce :: Text -> Either String LaTeXSource

Parses a Text sequence at once; may fail or conclude.

latexDocParser :: Parser LaTeXSource

Incremental Parser that terminates after the document envionment

isMainDoc :: LaTeX -> BoolSource

Test if a LaTeX block is a document environment.