2

When using superscript formatting for citations, the citations are grouped in the superscript with either a comma (if there are two) or an en-dash (if there are more than two). However, if I have a footnote and a citation that are sequential, then there is no comma in the superscript, just the two numbers side-by-side.

example.tex:

\documentclass[aip]{revtex4-2}

\begin{document}

Text\cite{Ref1,Ref2}

Text\footnote{Blah}\cite{Ref1}

\bibliography{test}

\end{document}

and test.bib:

@article{Ref1,
title = {Tit1},
author = {Aut1}
}

@article{Ref2, title = {Tit2}, author = {Aut2} }

Produce

enter image description here

Is there a way to group together mixed footnote and citation references like the two citations?

Justin
  • 55
  • 5
  • There are packages that allows multiple footnotes, and some of them have some support with citations. But there are quite a few different citation styles/packages. Please edit your question with a minimum example that shows whether you are using bibtex or biblatex, and whether you are using something like apacite or natbib. – Willie Wong Jun 01 '23 at 21:46
  • Added an example. revtex uses bibtex and natbib, I believe. – Justin Jun 01 '23 at 22:26
  • Thanks @DaiBowen, I tried that solution as well, but found that I would have to specify some arbitrarily high note number just so that it didn't conflict with the other notes. So, I think I like the solution that Willie Wong proposed slightly better. – Justin Jun 09 '23 at 16:35

1 Answers1

2

The solution using fnpct also works here:

enter image description here

\documentclass[aip]{revtex4-2}
\usepackage{fnpct}

\AdaptNote\cite{oom}{% \IfNoValueTF{#1} {#NOTE{#3}} {\IfNoValueTF{#2}{#NOTE[#1]{#3}}{#NOTE[#1][#2]{#3}}}% }

\begin{document}

Text\cite{Ref1,Ref2}

Text\footnote{Blah}\cite{Ref1}

\bibliography{test}

\end{document}

Willie Wong
  • 24,733
  • 8
  • 74
  • 106