[Tex/LaTex] LaTeX: Multiple authors stays on same line

authorline-breaking

I have 5 authors for a paper currently added like so:

\author{First Author \\
  Affiliation / Address line 1 \\
  {\tt email@domain} \\\And
  Second Author \\
  Affiliation / Address line 1 \\
  {\tt email@domain} \\\And
  Third Author \\
  Affiliation / Address line 1 \\
  {\tt email@domain} \\\And
  Fourth Author \\
  Affiliation / Address line 1 \\
  {\tt email@domain} \\\And
  Fifth Author \\
  Affiliation / Address line 1 \\
  {\tt email@domain} \\
}

Currently they are displayed on the same line and overlapping like so:
enter image description here

I thought that LaTeX would automatically break this line, but apparently not. I would prefer to have 3 on the top row and then 2 beneath, but I haven't found how to do this properly. Found some hacks, but then I lose styling on the lower row.

Edit: After some investigating it seems to be the style package used that cases the issue. We have to use this style package since this is an assignment. Here is the style code regarding the different \and tags.

{\def\and{\unskip\enspace{\rm and}\enspace}%
 \def\And{\end{tabular}\hss \egroup \hskip 1in plus 2fil 
       \hbox to 0pt\bgroup\hss \begin{tabular}[t]{c}\bf}%
 \def\AND{\end{tabular}\hss\egroup \hfil\hfil\egroup
      \vskip 0.25in plus 1fil minus 0.125in
       \hbox to \linewidth\bgroup\large \hfil\hfil
         \hbox to 0pt\bgroup\hss \begin{tabular}[t]{c}\bf}
 \hbox to \linewidth\bgroup\large \hfil\hfil
 \hbox to 0pt\bgroup\hss \begin{tabular}[t]{c}\bf\@author 
                        \end{tabular}\hss\egroup
 \hfil\hfil\egroup
}

What would be the best way to work around this?

Best Answer

Combining the commands \And and \AND, like so:

\author{First Author \\
  Affiliation / Address line 1 \\
  {\tt email@domain} \\\And
  Second Author \\
  Affiliation / Address line 1 \\
  {\tt email@domain} \\\And
  Third Author \\
  Affiliation / Address line 1 \\
  {\tt email@domain} \\\AND
  Fourth Author \\
  Affiliation / Address line 1 \\
  {\tt email@domain} \\\And
  Fifth Author \\
  Affiliation / Address line 1 \\
  {\tt email@domain} \\
}

Gave the desired result: enter image description here

Related Question