Simplifying the latex template