Using the 'aps' option for a revtex4-1 documentclass, the following solution allows to keep all other particularities of the aps bibliographic style unchanged. Notably, it is possible to use a modified version of apsrev4-1.bst but this will probably affect the other behaviours. Here we will simply overwrite the parameters passed to apsrev4-1.bst style file.
Originally, the output of the RevTex package without 'longbibliography' will be
Now when you add the 'longbibliography' option you get this
with the awful mix of initials and full first names.
Actually the parameters for building the bibliography are stored in an extension of the .bib file called [Your file]Notes.bib of your document folder. To overwrite its output, add into your preamble, after the calls to packages,
\AtBeginDocument{%
\newwrite\bibnotes
\def\bibnotesext{Notes.bib}
\immediate\openout\bibnotes=\jobname\bibnotesext
\immediate\write\bibnotes{@CONTROL{REVTEX41Control}}
\immediate\write\bibnotes{@CONTROL{%
apsrev41Control,author="08",editor="1",pages="1",title="0",year="1"}}
\if@filesw
\immediate\write\@auxout{\string\citation{apsrev41Control}}%
\fi
}%
This will replace the text generated at the time of building the file. You can set manually all parameters in these lines of code. Here author="08" stands for "initials for authors". The integer value used for authors is actually encoded in a sum of powers of two, each one corresponding to a different parameter. title="0" allows the production of the article titles. Your output now looks like this
Note that the use of 'longbibliography' option is now ineffective but replaced by the manual values.
Beyond just initials, here is the list of all authors parameters as found in apsrev4-1.bst
'control.author.jnrlst swap$ duplicate$ #64 control.decode
'control.author.dotless swap$ duplicate$ #32 control.decode
'control.author.nospace swap$ duplicate$ #16 control.decode
'control.author.initials swap$ duplicate$ #8 control.decode
'control.author.nocomma swap$ duplicate$ #4 control.decode
'control.author.first swap$ duplicate$ #2 control.decode
'control.author.reversed swap$ duplicate$ #1 control.decode
so for example use 16+8+1=25 to reverse order without spaces and use of initials. You need to set editor="0" to allow full control over author format. The parameter entered for author="HH" is actually an hexdecimal value. This means that for the previous example you have to set author="19"
Here's a solution. I've made a new command \addauthornote
which takes a single argument, a number corresponding to the n-th additional affiliation. This will add the footnote mark corresponding to that additional affiliation and add it to the current author.
Here's a complete example using 4 authors with 2 additional affiliations.
%%%% Proceedings format for most of ACM conferences (with the exceptions listed below) and all ICPS volumes.
\documentclass[sigconf]{acmart}
\makeatletter
% Use this command to add an existing supplemental affiliation to an author
% \addauthornote{1} adds n-th additional affiliation mark.
\newcommand\addauthornote[1]{%
\if@ACM@anonymous\else
\g@addto@macro\addresses{\@addauthornotemark{#1}}%
\fi}
\newcommand\@addauthornotemark[1]{\let\@tmpcnta\c@footnote
\setcounter{footnote}{#1}\addtocounter{footnote}{-1}
\g@addto@macro\@currentauthors{\footnotemark\relax\let\c@footnote\@tmpcnta}}
\makeatother
\usepackage{booktabs} % For formal tables
\setcopyright{rightsretained}
% DOI
\acmDOI{10.475/123_4}
% ISBN
\acmISBN{123-4567-24-567/08/06}
%Conference
\acmConference[THIS '17]{Some ACM Conference}{July 2017}{Anywhere, USA}
\acmYear{2017}
\copyrightyear{2017}
\acmPrice{15.00}
\begin{document}
\title{My Title}
\author{Author One}
\additionalaffiliation{%
\institution{Author 1 Secondary Organization}
\city{Commonville}
\state{State}
}
\affiliation{%
\institution{My Company}
\streetaddress{1234 Here Ave}
\city{Location}
\state{State}
\postcode{12345}
}
\email{author_one@mycompany.com}
\author{Author Two}
\additionalaffiliation{%
\institution{Author 2 Secondary Organization}
\city{Commonville}
\state{State}
}
\affiliation{%
\institution{My Company}
\streetaddress{1234 Here Ave}
\city{Location}
\state{State}
\postcode{12345}
}
\email{author_two@mycompany.com}
\author{Author Three}
\addauthornote{2}
\affiliation{%
\institution{Other Company}
\streetaddress{5678 There St}
\city{Place}
\state{State}
\postcode{67890}
}
\email{author_three@othercompany.net}
\author{Author Four}
\addauthornote{1}
\affiliation{%
\institution{Other Company}
\streetaddress{5678 There St}
\city{Place}
\state{State}
\postcode{67890}
}
\email{author_four@othercompany.net}
\begin{abstract}
Here is my abstract
\end{abstract}
\keywords{this, that, another}
\maketitle
\end{document}
Best Answer
The substyle file for
aip
doesso all you need is to revert the redefinition, but also to flip a switch that would otherwise make the code for
\maketitle
to choose again\@alph
.Side note: there is no
graphicx
option to the document class. If you plan to include graphic files, addinstead.