LatexTemplate update (still incomplete though)