I'm currently setting up a .sty
file for an experimental protocol. In that style file, I'm editing the \maketitle
command so that it prints my titlepage
with all the information set in the various "variables" like \author{}
.
That said, I wondered how I could print the different authors below each other. The default command is:
\begin{tabular}[t]{c}%
\@author
\end{tabular}\par%
This results in an output like:
Author 1 Author 2
(evenly spread over the linewidth)
What I want is
Author 1
Author 2
How can I achieve this?
Edit
I should point out, that I'm modifying the output of the authors based on the state of the self defined \supervisor
variable. If a supervisor is set, the output should be
\begin{minipage}{0.5\linewidth}
\begin{flushleft} \large
\emph{Authors:}\\
\begin{tabular}[t]{c}%
\@author
\end{tabular}\par%
\end{flushleft}
\end{minipage}%
\begin{minipage}{0.5\linewidth}
\begin{flushright} \large
\emph{Supervisor:} \\
\@supervisor
\end{flushright}
\end{minipage}
Which results in this:
In this case (where the supervisor is set), the names of the authors should be printed one below of the other.
MWE
\documentclass{article}
\usepackage[utf8]{inputenc}
\title{Experimental Protocol Title}
\author{Jon Doe \and Jane Doe}
\date{\today}
\begin{document}
\maketitle
\end{document}
Which generates the following output
Best Answer
Quick and dirty hack to get multiple rows in the tabular (which will probably break all kinds of stuff, I just don't know yet which):