I'm using the LaTeX class package to write my thesis according to University of Maine formatting guidelines. I'm running into an issue with line breaks in the title. I'm required to break my title manually in a certain spot, but the following:

\title{An AUV Simulator for Incorporating \\ Physical Feedback}

gives the following error after running pdflatex:

! Use of \@icentercr doesn't match its definition.
<argument> \def

l.59 \titlepage

Instead of \\, I've also tried \newline and \par, but nothing seems to work (no errors, but no spacing either). I've also done what was suggested here, but it gives the same error.

I'm not really sure how the class package does titles, and am generally have no experience with advanced formatting. Is there a way to accomplish a line break here?

(Note: \newline works, but the first line will be off-center relative to the rest of the page.)

  • 4
    Well line-breaking with \\ should be possible (almost) everywhere, so this might be considered a bug in your university's LaTeX class. You should contact the maintainers of that class about it. Maybe they explicitly forbid manual line breaking in the title for some reason. For this site, your question is too localised I'm afraid. – Stephan Lehmke Jun 20 '12 at 2:33
  • Alternatively, you can use ~ to ensure that certain words stay grouped together. \title{An~AUV~Simulator~for~Incorporating Physical~Feedback}. – Mateen Ulhaq Jun 12 '20 at 9:02

For this particular class, you need to \protect the manual line-breaking commands (as Stephan Lehmke comments, this is not the behaviour for other classes; is this a bug or a feature of your university's document class?):


\title{Some Long title \protect\\ with manual \protect\\ linebreaks}







enter image description here

  • Does wrapping it in a \parbox allow for \\ ? – Werner Jun 20 '12 at 3:17
  • @Werner no; that was also my first idea, but using a \parbox you need to \protect both the \parbox and the line breaking commands. – Gonzalo Medina Jun 20 '12 at 3:22
  • 3
    Excellent! Believe it or not, this was the last thing I needed to do... I can finally submit my thesis! I'll definitely have to let them know about the bug. Thanks! – derefed Jun 21 '12 at 1:56
  • @derefed I'm glad I could help. Good luck! – Gonzalo Medina Jun 21 '12 at 1:57
  • Is there any general approach for this without this bug in the package? – Léo Léopold Hertz 준영 Apr 1 '17 at 8:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.