How can I use \supercite as an argument to \footnotemark and \footnotetext?
(My goal is to have citations as footnotes and their indices matching the index in the bibliography. For me, existing answers have undesired results when using minipage.)
MWE:
\documentclass{beamer}
\usepackage[style=ieee,backend=bibtex]{biblatex}
\usepackage{csquotes}
\usepackage{filecontents}
% https://tex.stackexchange.com/a/299084
\begin{filecontents}{\jobname.bib}
@misc{Doe12,
author = {Doe, John},
year = {2012},
title = {A macro for formatting names},
}
\end{filecontents}
\addbibresource{\jobname.bib}
% https://tex.stackexchange.com/a/559986
\makeatletter
\def\blfootnote{\xdef\@thefnmark{}\@footnotetext}
\makeatother
\DeclareCiteCommand{\myfullcite}
{\usebibmacro{prenote}}
{{\printtext[labelnumberwidth]{%
\printfield{prefixnumber}
\printfield{labelnumber}}}
\usedriver%
{\DeclareNameAlias{sortname}{default}}
{\thefield{entrytype}}}
{\par\hspace{-1em}}
{\usebibmacro{postnote}}
\newcommand{\PresCite}[1]{%
\autocite{#1}%
\begin{NoHyper}%
\blfootnote{\hspace{-1em}\myfullcite{#1}}%
\end{NoHyper}
}
%% FIXME This \renewcommand is silly but without it the MWE fails to compile:
% ! Missing $ inserted.
% <inserted text>
% $
% l.50 \end{frame}
\renewcommand{\supercite}[1]{2}
\begin{document}
\begin{frame}
\begin{minipage}{.5\textwidth}
MWE\footnotemark[\supercite{Doe12}]
\end{minipage}%
\begin{minipage}{.5\textwidth}
Existing solution & \texttt{minipage}:~\PresCite{Doe12}
\end{minipage}
\footnotetext[\supercite{Doe12}]{\footnotesize\texttt{fullcite} should be here: \fullcite{Doe12}}
\end{frame}
\begin{frame}{Bibliography}
\printbibliography%
\end{frame}
\end{document}


