0

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
1

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}

enter image description here

0

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

Sample output

\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
Gratification, More address \quad \textsuperscript{2}The University of Instant
Gratification, More address\\ }
\maketitle\lipsum[1-20]
\end{document}
  • 2
    Welcome to TeX - LaTeX! Can you show us the coding you used. – Andrew Swann Jun 20 '18 at 12:11
  • As it stands this too vague and not much help to future visitors. – Andrew Swann Aug 7 '18 at 15:02
  • Thank you. I have added a modified version of your code to your answer. – Andrew Swann Aug 8 '18 at 6:36

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.