bibtex: Parse, format and processing BibTeX files

[ bsd3, library, text ] [ Propose Tags ]
Versions 0.0.1, 0.0.3, 0.0.4, 0.0.5, 0.0.6,, 0.1,,,,,,
Dependencies base (>=1.0 && <5), bytestring (==0.9.*), Cabal (>=1.6 && <1.10), containers (>=0.1 && <0.4), old‑time (==1.0.*), parsec (>=2.1 && <3.1), special‑functors (==1.0.*), tar (==0.3.*), utf8‑string (>=0.3.4 && <0.4), utility‑ht (>=0.0.5 && <0.1) [details]
License BSD-3-Clause
Author Henning Thielemann <>
Maintainer Henning Thielemann <>
Category Text
Home page
Source repo head: darcs get
this: darcs get --tag 0.0.6
Uploaded by HenningThielemann at Thu Nov 18 20:15:47 UTC 2010
Distributions LTSHaskell:, NixOS:, Stackage:, openSUSE:
Executables hackage-bibtex, publication-overview
Downloads 4900 total (46 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI

This package allows parsing, formatting and processing of BibTeX files. BibTeX files are databases for literature for the natbib package of the LaTeX typesetting system.

The package contains two examples:

Both examples will be build as stand-alone executable when running

cabal install -fbuildExamples bibtex

For the first example see the "tex" directory of this package. You can start the program and build an example document by running

make pubs

Technically the program generates a list of custom \nocite commands for the LaTeX package multibib. You can add the custom bibtex field subtype to BibTeX entries for more detailed categorization of an entry. See "tex/publications.bib" for examples.

The second example can be executed using

make hackbib

The file hackage.bib is written to the current directory. The program reads an uncompressed tar archive from standard input and writes the result bibliography file to standard output.

Note that hackage.bib exceeds some limits of standard BibTeX and LaTeX: There are currently much more than 5000 versions of packages, the maximum my BibTeX can handle at once. That is, you can use the bibliography file, but you cannot cite all entries with \nocite*. If there are more than 26 uploads by the same author in a year, the BibTeX style alpha generates identifiers including curly braces which interacts badly with LaTeX's handling of them. If you reduce the Bibliography file to 5000 entries and try to generate an overview of all entries with \nocite, then pdflatex hits its limits:

TeX capacity exceeded, sorry [save size=5000]





Choose the new smaller, split-up base package.


Build example executables


Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainer's Corner

For package maintainers and hackage trustees