3

I am using beamer for a presentation and I want to use two footnotes at one place with a comma between them.

In the following there is no comma but the footnotes appear correctly (with pdflatex):

\documentclass{beamer}

\begin{document}

\begin{frame}
  Text\footnotemark[2]\footnotemark[3]  
  \footnotetext[1]{Text 1}
  \footnotetext[2]{Text 2}
\end{frame}

\end{document}

If using multiple-footnotes-at-one-point with \usepackage[multiple]{footmisc}, I get the comma, but the footnotes are not shown (it seems that it breaks the beamer footnote configuration footmisc-in-beamer-citations-get-lost)

Does anyone have some suggestion on how to do this?

7
  • Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass{...} and ending with \end{document}.
    – dexteritas
    Sep 29, 2021 at 11:18
  • Thanks for the suggestions! I updated the code.
    – RM Ts
    Sep 29, 2021 at 13:14
  • 1
    As you noted, footmisc is not working with beamer. As a simple workaround you could add \textsuperscript{,} between the footnotemarks.
    – dexteritas
    Sep 29, 2021 at 14:09
  • ...something like this.
    – Werner
    Sep 29, 2021 at 19:06
  • Thanks @Werner and @dexteritas! Yes, I am currently using that solution.
    – RM Ts
    Sep 29, 2021 at 21:25

1 Answer 1

3

As you noted, footmisc is not working with beamer.

New Solution: redefine command \footnotemark

Another way would be do redefine \footnotemark, using etoolbox's list processing (inspired by this solution). This allows using multiple footnotes as comma separated list as parameter: \footnotemark[1,2].

\documentclass{beamer}

\usepackage{etoolbox}
\usepackage{ifthen}

\let\origfootnotemark\footnotemark
\renewcommand{\footnotemark}[1][]{%
    \ifthenelse{\equal{#1}{}}{%
        \origfootnotemark%
    }{%
        \def\nextitem{\def\nextitem{\textsuperscript{,}}}% Separator
        \renewcommand*{\do}[1]{\nextitem\origfootnotemark[##1]}% How to process each item
        \docsvlist{#1}% Process list
    }%
}

\begin{document}

\begin{frame}
    \begin{itemize}
    \item
        first automatic footnote\footnotemark
    \item
        another automatic footnote\footnotemark
    \item
        first footnote again\footnotemark[1]
    \item
        both footnotes\footnotemark[1,2]
    \end{itemize}
    \footnotetext[1]{Text 1}
    \footnotetext[2]{Text 2}
\end{frame}

\end{document}

Result

enter image description here

Old Solution: Simple workaround

As a simple workaround you could add \textsuperscript{,} between the footnotemarks.

\documentclass{beamer}

\begin{document}

\begin{frame}
  Text\footnotemark[1]\textsuperscript{,}\footnotemark[2]  
  \footnotetext[1]{Text 1}
  \footnotetext[2]{Text 2}
\end{frame}

\end{document}

Result

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .