Hey guys, I'm pretty new to LaTeX however am really enjoying it and have a question about why I always have a "1" on my title page. I use Overleaf
All the other pages and numbering is fine
This is my (now standard issue for every assignment's start) code:
Use \maketitle or the titlepage environment. Without the environment there would be three possible ways:
You can set the titlepage option when loading the class.
You put \thispagestyle{empty} immediately after \maketitle.
You use the \patchcmd command of the etoolbox package to replace the \thispagestyle{plain} command in the definition of the \maketitle command with the same command but with the empty argument.
Off-topic:
Do you really need utf8x option. I most cases, utf8 should be enough. You can remove the package and the option in your preamble, if your TeX distribution is up to date. Read more in the document of ltnews.
\selectlanguage{ngerman} is not needed because of the babel option.
Last edited by Bartman on Tue Dec 08, 2020 10:50 pm, edited 2 times in total.
Bartman wrote:Use \maketitle or the titlepage environment. Without the environment there would be three possible ways:
You can set the titlepage option when loading the class.
You put \thispagestyle{empty} immediately after \maketitle.
You use the \patchcmd command of the etoolbox package to replace the \thispagestyle{plain} command in the definition of the \maketitle command with the same command but with the empty argument.
Thank you for your quick answer, but I still have the same problem unfortunately.
I am very new to this, and to my knowledge I am using a titlepage environment. Most of my knowledge is purely from forums and having copy & pasted working solutions.
Do you mind just fixing my messy code whyever LaTeX thinks the titlepage needs a "1" before starting my ToC?
% \begin{titlepage}
% \thispagestyle{empty}
\title{Aufgabe 4\\Konstruktion einer Hubeinheit\\Maschinenelemente 2}
\author{\\xxx\\ yyy\\zzz\\ \\ aaa\\}
% I have replaced the hyphen with a dash because of the context.
\date{Oktober 2020 -- Februar 2021, Kiel}
% \end{titlepage}
\begin{document}
% \selectlanguage{ngerman}
\maketitle
\thispagestyle{empty}
\newpage
Last edited by Bartman on Tue Dec 08, 2020 5:42 pm, edited 1 time in total.