fix the formatting of template.tex (stupid \mbox{}s )