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 Jan 27 at 14:11
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 Jan 27 at 15:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.