suchow / Dissertate

Beautiful LaTeX dissertation templates.
GNU Affero General Public License v3.0
717 stars 164 forks source link

Error on multi-line title #29

Closed yxiong closed 9 years ago

yxiong commented 9 years ago

I am quite a novice to latex and apologize in advance if this rookie question is not related to the package itself.

When I was trying to make an multi-line title, and according to this post, I should use

\title{First line \\
second line}

But I got the following error from the console:

! Argument of \reserved@a has an extra }.
<inserted text>
                \par
l.3 second line}

Am I missing something here? And what is the right way to make a multi-line title in the dissertate package? Thanks!

suchow commented 9 years ago

Can you try:

\title{First line \protect\\
second line}

as per http://tex.stackexchange.com/a/136326?

Note the \protect before \\.

yxiong commented 9 years ago

Yep, that works! Thanks so much for the pointer!