[Tex/LaTex] How to add correctly numbered footnotes in RevTex4-1

bibliographiesfootnotesnumbering

So, I'm using RevTex4-1 and at some point I need to add a footnote, which in Revtex goes to the bibliography. However, the footnote is not being numbered according to the natural numeration of the bibliography: all footnotes are appearing in the last numbers. For instance, in this example:

\documentclass[aps,pre,twocolumn,showpacs,superscriptaddress,groupedaddress]{revtex4}

\begin{document}

This is a test~\cite{a} where I want correct footnotes~\footnote{footnote 1}, 
i.e. footnotes that are correctly numbered in the bibliography~\cite{b}.

\bibliography{references.bib}

\end{document}

(where references is just a simple bib file with two entries, a and b), the produced document appears as

This is a test [1] where I want correct footnotes [3], i.e. footnotes
that are correctly numbered in the bibliography [2].

which is clearly not the desired behavior of numbered bibliography.

Any solutions?

Edited:
with "Any solutions?" I meant: How can I make the footnotes to have the bibliographic numbering according to their first appearance in the text? In the example above, this should be

This is a test [1] where I want correct footnotes [2], i.e. footnotes
that are correctly numbered in the bibliography [3].

Best Answer

This seems to be normal. Remember that your paper will be processed again before publication. Here's subsection V.A of the documentation:

If you are using numbered citations (numerical or num- bered author-year), footnotes are by default incorporated into the reference section along with your bibliographic entries. This automated feature is only effective if you use BibTeX to prepare your bibliography.

Author-year style bibliography does not lend itself to such a treatment, so by default footnotes appear in text as is usual. However, be advised that, if your article is accepted for publication, footnotes may be incorporated into text during the production process.

So, don't worry: the class does this on purpose.

\begin{filecontents*}{\jobname.bib}
@article{a,
  title = {Quantum cryptography using any two nonorthogonal states},
  author = {Bennett, Charles H.},
  journal = {Physical Review Letters},
  volume = {68},
  number = {21},
  pages = {3121--3124},
  numpages = {3},
  year = {1992},
  month = {May},
  doi = {10.1103/PhysRevLett.68.3121},
  publisher = {American Physical Society}
}

@article{b,
 author={Bonfrate, G. and Harlow, M. and Ford, C. and Maxwell, G. and Townsend, P.D.},
 journal={Electronics Letters},
 title={Asymmetric Mach-Zehnder germano-silicate channel waveguide interferometers for quantum cryptography systems},
 year={2001},
 month={jun},
 volume={37},
 number={13},
 pages={846--847},
 doi={10.1049/el:20010508}
}
\end{filecontents*}

\documentclass[aps,pre,twocolumn,showpacs,superscriptaddress,groupedaddress]{revtex4}

\begin{document}

This is a test~\cite{a} where I want correct footnotes~\footnote{footnote 1}, 
i.e. footnotes that are correctly numbered in the bibliography~\cite{b}.

Another footnote~\footnote{footnote 2}.

\bibliography{\jobname.bib}

\end{document}

enter image description here

Related Question