Different numbers for the same footnote

cross-referencingfootnotes

Can someone help me to make this?

enter image description here

Best Answer

Update 2022/05/29

The package and its documentation is basically finished and shall be published by 2022/05/31. Apart from the approach below, the final package also adopted a more convenient syntax proposed by @antshar. The commands are separated into two groups:

  • First approach (as in this answer) enter image description here
  • Second approach (proposed by @antshar in this answer) enter image description here

For examples you may refer to the documentation.


Update 2022/05/26:

I've converted this into a new package multifootnote (combined with my answer in this related question). The commands stated in the answer below have been renamed to \multifootnotemark (or still \footnotenumber) and \multifootnotetext (or simply \multifootnote).

When the documentation is finished, it shall be uploaded to CTAN. This is expected to be finished before June.


Here is an automatic version. I defined two new commands: \footnotenumber and \footnotemultiple.

  • \footnotenumber takes one optional argument, namely the label.
  • \footnotemultiple works similar as \footnote, with the optional argument here as a list of labels you wish to refer to.

Below is a complete example (if you prefer to have no hyperlink on the numbers in the footnote, simply replace \ref with \ref*).

\documentclass{article}

\usepackage{hyperref}

\ExplSyntaxOn

\NewDocumentCommand \footnotenumber { O{} }
  {
    \footnotemark
      {
        \tl_if_blank:nF { #1 }
          {
            \addtocounter { footnote } { -1 }
            \refstepcounter { footnote }
            \label { #1 }
          }
      }
  }

\NewDocumentCommand \footnotemultiple { O{} m }
  {
    \group_begin:
    \tl_if_blank:nF { #1 }
      {
        \clist_clear:N \l_tmpa_clist
        \clist_map_inline:nn { #1 }
          {
            \clist_put_right:Nn \l_tmpa_clist { \ref{ ##1 } }
          }
        \def \thefootnote { \clist_use:Nn \l_tmpa_clist { , } }
      }
    \footnotetext { #2 }
    \group_end:
  }

\ExplSyntaxOff

\begin{document}

Here\footnotenumber[fn1] are\footnotenumber[fn2] some words\footnotenumber[fn3]\footnotemultiple[fn1,fn2,fn3]{Some footnote.}.

\end{document}

enter image description here

enter image description here


Old answer

You can use \footnotemark to produce the number, and \footnotetext to produce the text (\footnote is just the combination of them). To get the 1,2,3, I locally redefined \thefootnote.

\documentclass{article}

\begin{document}

Here\footnotemark{} are\footnotemark{} some words\footnotemark{}{\def\thefootnote{1,2,3}\footnotetext{Some footnote}}.

\end{document}

enter image description here

enter image description here


By the way, this TeX FAQ page might be helpful to you: Footnotes whose texts are identical.

Related Question