LaTeX code

LaTeX packages I develop and maintain.

When a package is also listed as being available on CTAN, that should be viewed as the primary source. (The versions hosted on this site are usually identical to the CTAN versions, though they may occasionally be updated slightly earlier.)

Quick download links:

LaTeX cleveref package

LaTeX cleveref package 18 October 2018 The Cleveref package (also available from CTAN) does clever things with cross-references:

  • automatic formatting of cross-references based on the type of object referred to (chapter, section, equation, theorem, etc.);
  • full control and customisation of the reference format;
  • cross-references and page references to multiple items;
  • automatic (optional) sorting and compression of multiple cross-references or page references;
  • optional output of a sed script that can strip out Cleveref commands and replace them with standard LaTeX, allowing Cleveref to be used e.g. in articles sent to journals or collaborators that don't (yet!) support Cleveref.

A number of other LaTeX packages provide similar features. Some are venerable enough to be documented in The LaTeX Companion, or even included in the standard LaTeX distribution itself. But all those that I've come across provide only a subset of the Cleveref features. (See the Introduction to the package documentation for some comparisons.)

LaTeX quantum package

LaTeX quantum package 2 October 2012 The Quantum package defines a number of commands and short-hands useful when writing about quantum mechanics, and quantum information theory in particular.

There is no separate documentation; read the package source to find out what commands it provides.

  • Quantum package

LaTeX authord package

LaTeX authord package 27 July 2012 Gives a complete solution to the problem of precedence in scientific pubication, in a way that Knuth and Heisenberg would surely approve of.

  • Authord package
  • Authord documentation