# Centering issues with multiple authors with the same affiliation, EPTCS format

I am using the EPTCS LaTeX style. This is (a minimal part of) the example that comes with it:

\documentclass[adraft]{eptcs}

\title{Title}
\author{
% first author
Rob van Glabbeek
\institute{School of Computer Science and Engineering\\
University of New South Wales\\
Sydney, Australia}
\email{rvg@cs.stanford.edu}
\and
% two other authors (common affiliation)
\institute{Stanford Univeristy\\
California, USA}
}

\begin{document}
\maketitle
\end{document}


This is the result:

Spacing is done by putting some \quad and \qquad. However, centering stuff by hand quickly becomes annoying when there are more authors, longer names, affiliations and emails of different length, etc...

Is there a better (possibly automatic) way to properly center authors (and their emails) having common affiliations?

\RequirePackage{array}
\newenvironment{authors}[1]%
{\begingroup
\newcommand\estyle{}%
\renewcommand\institute[1]%
{\\\multicolumn{#1}{@{}c@{}}{\scriptsize\begin{tabular}[t]{@{}>{\footnotesize}c@{}}##1\end{tabular}}}%
\renewcommand\email[1]%
{\gdef\estyle{\footnotesize\ttfamily}\\##1\gdef\estyle{}}
\begin{tabular}[t]{@{}*{#1}{>{\estyle}c}@{}}
}%
{\end{tabular}%
\endgroup
}


Then you can add multiple authors with the same affiliation but different email addresses to the \author command as follows:

\begin{authors}{NUMBER OF AUTHORS}
Name1 & Name2 & ...
\institute{Common\\Affiliation}
\email{Email1 & Email2 & ...}
\end{authors}


\author{
Rob van Glabbeek
\institute{School of Computer Science and Engineering\\
University of New South Wales\\
Sydney, Australia}
\email{rvg@cs.stanford.edu}
\and
\begin{authors}{2}
Co Author & Yet S. Else
\institute{Stanford Univeristy\\
California, USA}
\email{is@gmail.com & somebody@else.org}
\end{authors}
}


\documentclass[adraft]{eptcs}
\RequirePackage{array}
\newenvironment{authors}[1]%
{\begingroup
\newcommand\estyle{}%
\renewcommand\institute[1]%
{\\\multicolumn{#1}{@{}c@{}}{\scriptsize\begin{tabular}[t]{@{}>{\footnotesize}c@{}}##1\end{tabular}}}%
\renewcommand\email[1]%
{\gdef\estyle{\footnotesize\ttfamily}\\##1\gdef\estyle{}}
\begin{tabular}[t]{@{}*{#1}{>{\estyle}c}@{}}
}%
{\end{tabular}%
\endgroup
}
\title{Title}
\author{
Rob van Glabbeek
\institute{School of Computer Science and Engineering\\
University of New South Wales\\
Sydney, Australia}
\email{rvg@cs.stanford.edu}
\and
\begin{authors}{2}
Co Author & Yet S. Else
\institute{Stanford Univeristy\\
California, USA}
\email{is@gmail.com & somebody@else.org}
\end{authors}
}

\begin{document}
\maketitle
\end{document}

• The problem has been recognized by the LaTeX style maintainer and this answer is now suggested as a possible solution in the example page. – effeffe Feb 28 '17 at 11:15

Maybe something like a stack could be helpful here...

\documentclass[adraft]{eptcs}
\usepackage[usestackEOL]{stackengine}
\title{Title}
\author{
% first author
Rob van Glabbeek
\institute{School of Computer Science and Engineering\\
University of New South Wales\\
Sydney, Australia}
\email{rvg@cs.stanford.edu}
\and
% two other authors (common affiliation)
\Longunderstack{Co Author$^*$, \\ Yet S. Else$^\dag$}\smallskip
\institute{Stanford Univeristy\\
California, USA}
\email{\Longunderstack{$^*$is@gmail.com,\\ $^\dag$somebody@else.org}}
}

\begin{document}
\maketitle
\end{document}


If one wanted the Stanford names and emails locally left aligned, while at the same time retaining the overall centered appearance, then this:

\documentclass[adraft]{eptcs}
\usepackage[usestackEOL]{stackengine}
\title{Title}
\author{
% first author
Rob van Glabbeek
\institute{School of Computer Science and Engineering\\
University of New South Wales\\
Sydney, Australia}
\email{rvg@cs.stanford.edu}
\and
% two other authors (common affiliation)
\Longunderstack[l]{Co Author$^*$, \\ Yet S. B. Else$^\dag$}\smallskip
\institute{Stanford Univeristy\\
California, USA}
\email{\Longunderstack[l]{$^*$is@gmail.com,\\ $^\dag$somebody@else.org}}
}

\begin{document}
\maketitle
\end{document}


• This is not exactly what I was looking for, but it makes sense. It could be used when the authors are just too many to fit in a single line. – effeffe Dec 24 '16 at 14:22