# Affiliations on single line with RevTeX-4.1

I wonder if there is an easy way to get all affiliations on one line with RevTeX-4.1.

• Could you add an minimal working example (MWE)? – Stefan Pinnow May 1 '18 at 4:41
• @StefanPinnow, no because I do not know how to get all affiliations on one line. Perhaps you want an example where RevTeX-4.1 does NOT do what I want (i.e. puts affiliations on separate lines), but that is just the default setting, so anyone that uses RevTeX-4.1 has plenty of examples. – user1271772 May 2 '18 at 19:44

There is no easy way. You have to modify an internal macro. Also it will look really ugly. Don't do that.

\documentclass[superscriptaddress]{revtex4-1}

\makeatletter
\def\@affil@script#1#2#3#4{%
\@ifnum{#1=\z@}{}{%
%\par % <--- comment out
\begingroup
\frontmatter@affiliationfont
\@ifnum{\c@affil<\affil@cutoff}{}{%
\def\@thefnmark{#1}\@makefnmark
}%
\ignorespaces#3%
\@if@empty{#4}{}{\frontmatter@footnote{#4}}%
%\par % <--- comment out
\endgroup
}%
}%
\makeatother

\begin{document}

\author{John Doe}
\affiliation{University of Neverland, Road to Nowhere 123, 12345 Nevercounty}
\author{Jane Smith}
\affiliation{Bogus Institute of Something, Madeup Place 654, 65432 Anywhere}

\maketitle

\end{document}


I 'solved' this myself by adding my list of affiliations as a single author with linebreaks, \textit and \sciptsize

\documentclass[superscriptaddress]{revtex4-1}
\usepackage{lipsum}
\begin{document}
\title{A Potential Solution}
\author{A. Whoever\textsuperscript{1} and B. Wohever\textsuperscript{2}\endgraf
\scriptsize\itshape \textsuperscript{1}The University of Instant