Some routines for generating LaTeX documents from Python.