HaTeX-3.5: The Haskell LaTeX library.

Safe HaskellNone

Text.LaTeX.Base.Warnings

Contents

Description

This module provides functionality for check a LaTeX value for possibly undesired things (like the call to an undefined label), returning Warnings. These are called Warnings because they never terminates the program execution.

Synopsis

Warnings datatype

data Warning Source

List of possible warnings.

Constructors

UnusedLabel Text

There is an unused label. Argument is its name.

UndefinedLabel Text

There is a reference to an undefined label. Arguments is the name.

NoClassSelected

No class selected with documentclass.

NoDocumentInserted

No document inserted.

CustomWarning Text

Custom warning for custom checkings. Use it as you want.

Instances

data TeXCheck Source

A TeXCheck is a function that checks possible warnings from a LaTeX value. Use the Monoid instance to combine check functions.

Instances

check :: TeXCheck -> LaTeX -> [Warning]Source

Apply a checking.

checkFromFunction :: (LaTeX -> [Warning]) -> TeXCheckSource

Build a TeXCheck from a function.

Several checkings

checkLabels :: TeXCheckSource

Checking for unused labels or references tu undefined labels.

checkClass :: TeXCheckSource

Check if a document class is specified for the document (using documentclass).

checkDoc :: TeXCheckSource

Check if the document environment is called in a LaTeX.

Complete checking