0

2 template (with two columns) and I would like to have the author of the paper in the same row and the affiliations all together below the authors. I'm using the following code:

\documentclass[reprint,amsmath,amssymb,aps,]{revtex4-2}
\usepackage{graphicx}
\graphicspath{{C:..}}
\usepackage{dcolumn}
\usepackage{bm}  

\begin{document}    
\title{Title}  

\author{Author1}    
\affiliation{Affiliation1}    
\author{Author2}    
\affiliation{Affiliation2}

\collaboration{Z}    
\date{\today} 

\begin{abstract}    
Article abstract     
\end{abstract} 

\maketitle

\end{document}

In this way I obtain the first author and below it the affiliation, even more below it the second author and below the second author its affiliation. Like this:

what i obtain

How can I have the authors in the same row and below the the affiliations like this?

what I want to obtain

1
  • Welcome to TeX.SX! Have you tried to list first all \author statements and then all \affiliation statements?
    – gernot
    Commented Jan 27, 2021 at 14:11

2 Answers 2

0

First list all \authors, then all \affiliations. By default, multiple authors/affiliations are separated by and, but this can be changed to , using

\def\andname{\unskip,}

enter image description here

\documentclass[reprint,amsmath,amssymb,aps,]{revtex4-2}
\usepackage{graphicx}
\graphicspath{{C:..}}
\usepackage{dcolumn}
\usepackage{bm}  
\def\andname{\unskip,}
\begin{document}    
\title{Title}  

\author{Author1}    
\author{Author2}    
\affiliation{Affiliation1}    
\affiliation{Affiliation2}

\collaboration{Z}    
\date{\today} 

\begin{abstract}    
Article abstract     
\end{abstract} 

\maketitle

\end{document}
1
  • It works, Thanks a lot.
    – santo
    Commented Jan 27, 2021 at 15:10
1

I think superscriptaddress option in the documentclass is the official way to achieve the same result.

reference: Revtex 4-2 Switching order of alt-affiliations

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .