I want to reuse footnotes. The problem is that it is inside \authors, and some solutions won't work.
I tried first the fixfoot package, but it gives an error, and the package is not being updated for 4 years now.
This fantastic answer I found here at TeX Stackexchange works just fine, but I'm interested in understanding and creating a simple tweak.
1st: how it is working
\documentclass{article}
\newcommand{\setfoot}[2]{%
\footnote{#2}%
\newcounter{#1}%
\setcounter{#1}{\value{footnote}}%
}
\newcommand{\getfoot}[1]{%
\footnotemark[\value{#1}]%
}
\title{Comparing two solutions}
\author{Last1, A.\setfoot{unia}{University of Pedramburguer}\ a1@some.dd\and
Last2, B.\getfoot{unia}\ email1@some.dd \and
Last3, C.\getfoot{unia}\ email3@some.dd \and
Last4, D.\setfoot{unib}{University of Martalface}\ email4@some.dd}
\begin{document}
\maketitle
body...
\end{document}
2nd: how I would like it to work
\documentclass{article}
\newcommand{\setfoot}[2]{%
\footnote{#2}% <<<<<<<<<<<< error when you
\newcounter{#1}%
\setcounter{#1}{\value{footnote}}%
}
\newcommand{\getfoot}[1]{%
\footnotemark[\value{#1}]%
}
\title{Comparing two solutions}
\setfoot{unia}{University of Pedramburguer} %<<<<<<<<<<< try to set it out
\setfoot{unib}{University of Martalface} %<<<<<<<<<<< of begin document
\author{Last1, A.\getfoot{unia}\ a1@some.dd\and
Last2, B.\getfoot{unia}\ email1@some.dd \and
Last3, C.\getfoot{unia}\ email3@some.dd \and
Last4, D.\getfoot{unib}\ email4@some.dd}
\begin{document}
\maketitle
body...
\end{document}
So, to be able to set the foot with command \setfoot out of the \begin{document} it is necessary some TeX magic. Any help on this specific example? Thanks.
