I noticed that my titlepage is not vertically centered. I tried \vfill
, \vspace{\fill}
, \vspace*
, and \usepackage{titling}
.
\documentclass[12pt, oneside]{article}
\usepackage{graphicx}
\usepackage{geometry}
\geometry{a4paper}
\usepackage{float}
\usepackage[american]{babel}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[onehalfspacing]{setspace}
\begin{document}
\begin{titlepage}
\begin{center}
\begin{huge}
name of university \\
\end{huge}
\begin{figure}[H]
\centering
\includegraphics[width=0.5\textwidth]{Unilogo}
\end{figure}
\vspace{1cm}
{\Large name of institute} \\
\vspace{5mm}
Research focus \textit{research name} \\
Project \textit{project name} \\
\vspace{2cm}
\begin{large}
\textbf{title of thesis} \\
\end{large}
\vspace{5mm}
Master thesis in Biomedical Sciences \\
Submitted on Date \\
\vspace{1cm}
name \\
Matriculation number: \\
\vspace{2.5cm}
\begin{tabular}{rl}
{\bfseries Supervisors} & name and name\\
{\bfseries Examiners} & name and name \\
\end{tabular}
\end{center}
\end{titlepage}
\end{document}
Best Answer
When you have markup such as
the vertical space is added after the line that contains
name
which is, I would guess, not what is intended.Avoid all use of
\\
outside tables, and always put a blank line before\vspace
produces an output with the space between the two lines of text.
If you have a size change such as
\huge
always leave a blank line before the end of the group, or you will get huge text set on a normal size baseline.Don't use
figure
inside a titlepage, just include the graphic.You can vertically centre with
\vspace*{\fill}