fix tex typo in templates