2

The following code gives this error:

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

l.18 \maketitle

? 

The goal is to create a title like

FOO BAR
BAZ FOO FOO
BARBAZ FOO

from

\title{Foo bar\\baz foo foo\\barbaz foo}

so I can control the line breaks and get the text upper case. How can I get the code to work?

Here is the faulty code:

\documentclass{book}
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}

\title{Hello with\\crlf}

\makeatletter
\renewcommand\maketitle{\begin{titlepage}%
    \raggedright
    {\MakeUppercase{\@title} \par}%
  \end{titlepage}%
}
\makeatother


\begin{document}
\maketitle
\end{document}
lockstep
  • 250,273
topskip
  • 37,020

0 Answers0