[Tex/LaTex] Aligning names within the \author command

titles

I need to present a College assignment and it has to be in article style. My problem is that right after the title I've got to add my professor's name and my working group. I tried this:

\author{\textbf{Professor:} Professor's name 
\\  \textbf{Working Group:} Member 1 \\ Member 2 \\ Member 3}

But the result is not visually appealing 'cause nothing is aligned and looks pretty unnatural. Is there a way to improve this presentation?

Also, I would like to add my institution's name somewhere (it's not mandatory) but I don't know how to do it with the \maketitle command I’m using. Any advice on this is also appreciated.

Thanks in advance.

Best Answer

In the default article document class the authors are set in a top-aligned tabular (with one centred column), as defined in \@maketitle:

\def\@maketitle{%
  \newpage
  \null
  \vskip 2em%
  \begin{center}%
  \let \footnote \thanks
    {\LARGE \@title \par}%
    \vskip 1.5em%
    {\large
      \lineskip .5em%
      \begin{tabular}[t]{c}% <------
        \@author%            <------ Authors
      \end{tabular}\par}%    <------
    \vskip 1em%
    {\large \@date}%
  \end{center}%
  \par
  \vskip 1.5em}

As such, if you're interested in a specific alignment, set the authors using a nested tabular:

enter image description here

\documentclass{article}
\title{This is a title}
\author{\begin{tabular}{rl}
  \textbf{Professor:} & Professor's name \\
  \textbf{Working Group:} & Member 1 \\ & Member 2 \\ & Member 3
\end{tabular}}
\begin{document}
\maketitle

Here is some text.
\end{document}

Alternatively, utilize the single centred column in the following way:

enter image description here

\documentclass{article}
\title{This is a title}
\author{\textbf{Professor:} \\  Professor's name \\
  \textbf{Working Group:} \\
  Member 1 \quad Member 2 \quad Member 3}
\begin{document}
\maketitle

Here is some text.
\end{document}