Template Toolkit extensions for generating LaTeX documents