LaTeX template With thanks to Daniel Gratzer and Jon Sterling for a lot of the macros. Use latexmk to compile.