Update template.latex

This formatting is intense, I'm just guessing now...