Add two footnotes at one position in beamer

beamerfootnotes

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?

Best Answer

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