Formatting of latex templates.