The HaTeX package

[Tags: bsd3, library]

This library provides a bridge between LaTeX and Haskell, implementing the LaTeX syntax in Haskell.

Some of the things you can do with HaTeX are:

Write LaTeX documents with all the advantages you already have in Haskell (recursion, type system, high order functions, ...), create a LaTeX backend for your own program, parse a LaTeX file and obtain its Abstract Syntax Tree (AST), pretty-print Haskell values in LaTeX, generate TikZ scripts easily, ...

Browse the examples directory in the source distribution to see some simple examples. It would be good to get you started. The HaTeX User's Guide is available at

[Skip to ReadMe]


Versions1.0.0, 1.0.1, 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.1.2, 2.1.3, 3.0.0, 3.1.0, 3.2,, 3.3, 3.4, 3.5, 3.6,,,,,,,,,,,,,,,,,,,
Change logNone available
Dependenciesattoparsec (>=0.10.2 && <0.11), base (==4.*), bytestring (>= && <0.11), containers (>= && <0.6), matrix, text (>= && <2), transformers (>=0.2.2 && <0.4) [details]
AuthorDaniel Díaz
MaintainerDaniel Díaz (dhelta `dot` diaz `at` gmail `dot` com)
CategoryText, LaTeX
Home page
Bug tracker
Source repositoryhead: git clone
UploadedTue Dec 10 17:21:35 UTC 2013 by DanielDiaz
DistributionsLTSHaskell:, NixOS:, Stackage:
Downloads8614 total (388 in last 30 days)
0 []
StatusDocs available [build log]
Successful builds reported [all 1 reports]




Maintainers' corner

For package maintainers and hackage trustees

Readme for HaTeX-

The HaTeX library

HaTeX is a Haskell library that implements the LaTeX syntax. Check a list of examples of usage in the Examples directory. A good starting point may be simple.hs. Run any example script executing the main function.

Installation notes

To install HaTeX, use cabal-install. $ cabal update $ cabal install HaTeX This will install the latest official release (recommended). If you want to try a newer version, use git to clone the code contained in this repository. $ git clone $ cd HaTeX $ cabal install However, note that the API may be unstable and is subject to any kind of change. In the other hand, this package follows the Package Versioning Policy, so it is unlikely to suffer from API breakages if you follow it too when importing the library.

Travis automatic build

Build Status

HaTeX User's Guide

The HaTeX User's Guide lives here... and is also done in Haskell! It is free source and anybody can contribute to it. Doing so, you will help current and future users! A downloadable version (not necessarily the last version, but most likely) can be found here. To be sure that you are reading the last version, go to the github repository of the guide and follow instructions to build it. It is fairly easy.

Community and Contributions

There are many ways to get involved in the HaTeX project.

TODO list

Packages to be implemented

Related projects