My university has a titlepage template that they want us to use for the masters thesis.
However, it adds an additional empty page before and after the titlepage (gives two afterwards, so one unwanted). I found out that short titles dont have the problem. Any ideas how to fix it? It doesn't help if I break my title manually.
Also, the name of the university ends up on the third page sometimes...
The sty file we are given is:
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{MA_Titlepage}[2010/04/25]
\newcommand*{\betreuer}[1]{\def\@betreuer{#1}}
\betreuer{}
\newcommand*{\ausarbeitungstyp}[1]{\def\@ausarbeitungstyp{#1}}
\ausarbeitungstyp{}
\newcommand*{\geburtsdatum}[1]{\def\@geburtsdatum{#1}}
\geburtsdatum{}
\newcommand*{\geburtsort}[1]{\def\@geburtsort{#1}}
\geburtsort{}
\newcommand*{\institut}[1]{\def\@institut{#1}}
\institut{}
\newcommand*{\authornew}[1]{\def\@authornew{#1}}
\authornew{}
\renewcommand\maketitle{\begin{titlepage}
\let\footnotesize\small
\let\footnoterule\relax
\let \footnote \thanks
\null\vfil
\begin{center}%
\parbox{10cm}{\begin{center}\Huge\bfseries \@title \par\end{center}}\\
\vspace{1em}
{\Large
\vspace{1em}
\@authornew}\\
\vspace{1em}
Born \@geburtsdatum \ in \@geburtsort\\
\vspace{1em}
{\large \@date}
\vspace{15em}
{\large \@ausarbeitungstyp}\\
\vspace{1em}
{\large \@betreuer}\\
\vspace{1em}
\centerline{{\large\sc \@institut}}
\vspace{15em}
\centerline{{\large\sc Mathematische Fakult\"at der}}
\vspace{1em}
\centerline{{\large\sc Universitaet Nordpol}}
\end{center}
\vfil\null
\clearpage
\thispagestyle{empty}\mbox{}
\clearpage
\pagenumbering{arabic}
\end{titlepage}
\setcounter{footnote}{0}%
\global\let\maketitle\relax
\global\let\@author\@empty
\global\let\@date\@empty
\global\let\@title\@empty
\global\let\title\relax
\global\let\author\relax
\global\let\date\relax
\global\let\and\relax
}
\endinput
and I am currently using it via
\documentclass[11pt, a4paper, UKenglish]{article}
\usepackage[UKenglish]{babel}
\usepackage{MA_Titlepage}
\authornew{X Y}
\geburtsdatum{1st April 1900}
\geburtsort{New York, U.S.A.}
\date{\today}
\betreuer{Advisor: Prof. Dr. Z Z}
\institut{Mathematical Institute}
\title{This is only an example}
\ausarbeitungstyp{Master's Thesis Mathematics}
\begin{document}
\maketitle
\end{document}
If I replace "This is only an example" by "example" I get what I want.