clean up of the latex custom templates and commands