5

From the KOMA-Script manual:

The following commands only define the contents of the title. Therefore they must be used before \maketitle. It is, however, not necessary and, when using the babel package not recommended, to include these in the preamble before \begin{document} (see [BB13]).

However, I failed to find anything relevant in the Babel manual.

What is the reason for that recommendation? Is it still relevant?

1
  • 2
    Because depending on the language babel makes certain characters active, but that happens only at \begin{document}, so if you use any of the babel shorthands in the \title or \author or ... then they only apply after \begin{document}. Nov 3, 2020 at 13:17

1 Answer 1

5

babel shorthands don't work in the preamble. So this

\documentclass{article}
\usepackage[ngerman]{babel}
\title{Gr"u"se}
\begin{document}
\maketitle
\end{document}

gives

enter image description here

But nowadays this isn't so relevant anymore. I wouldn't use shorthands here, but simply input the title as \title{Grüße} and this works fine in the preamble (and I normally add the title in the preamble).

3
  • So, unless I use babel shorthands, I'm fine? Nov 3, 2020 at 13:25
  • Yes, and even with shorthands you could do it, you only would have to activate the shorthand first. Nov 3, 2020 at 13:26
  • I didn't even know they existed. Nov 3, 2020 at 13:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .