Copyright | (c) 2015 Christopher Chalmers |
---|---|
License | BSD-style (see LICENSE) |
Maintainer | c.chalmers@me.com |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Functions for parsing Tex output and logs. This log is parser is experimental and largely untested. Please make an issue for any logs that aren't parsed properly.
Synopsis
- data Box n = Box {}
- parseBox :: Fractional n => Parser (Box n)
- data TexLog = TexLog {}
- data TexInfo = TexInfo {}
- data TexError = TexError {}
- data TexError'
- = UndefinedControlSequence ByteString
- | MissingNumber
- | Missing Char
- | IllegalUnit
- | PackageError String String
- | LatexError ByteString
- | BadBox ByteString
- | EmergencyStop
- | ParagraphEnded
- | TooMany ByteString
- | DimensionTooLarge
- | TooManyErrors
- | NumberTooBig
- | ExtraBrace
- | FatalError ByteString
- | UnknownError ByteString
- someError :: Parser TexError
- badBox :: Parser TexError
- parseUnit :: Fractional n => Parser n
- parseLog :: ByteString -> TexLog
- prettyPrintLog :: TexLog -> ByteString
Box
Data type for holding dimensions of a hbox. It is likely the internal representation will change to allow nested boxes in the future.
Errors
An error from tex with possible line number.
A subset of possible error Tex can throw.
someError :: Parser TexError Source #
Parse any line beginning with "! ". Any unknown errors are returned as UnknownError
.
parseUnit :: Fractional n => Parser n Source #
parseLog :: ByteString -> TexLog Source #
prettyPrintLog :: TexLog -> ByteString Source #