I use the customized footcite command from https://tex.stackexchange.com/questions/123104/inline-citations-with-only-author-title-and-year:
\newcommand{\customcite}[1]{\citeauthor{#1}, \citetitle{#1}, \citeyear{#1}}
My problem is now, when I have the same reference on multiple slides, the footnote number is increased. I would like to have the same number for the same source on every slide where it appears.
I found something with `savefootnote`, but this seems to be very complicated: https://tex.stackexchange.com/questions/27763/beamer-multiple-references-to-the-same-footnote. Also, it is only possible to store one reference at a time, but I would like to have 3 references each on 2 pages.
MWE:
\documentclass[11pt]{beamer}
%\documentclass[handout,11pt]{beamer}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usetheme{Madrid}
% literature
% only for this example, otherwise in .bib file
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{Harshman1970,
author = {and others Harshman, Richard A},
doi = {10.1134/S0036023613040165},
file = {:C$\backslash$:/Users/Isi/Documents/Research/Tensors/TensorsDocumentation/Literature/Harshman{\_}CPD.pdf:pdf},
issn = {00360236},
journal = {UCLA Working Papers in Phonetics},
pages = {1--84},
title = {{Foundations of the PARAFAC procedure: Models and conditions for an" explanatory" multimodal factor analysis}},
volume = {16},
year = {1970}
}
@article{Hitchcock1927,
author = {Hitchcock, Frank L.},
doi = {10.1002/sapm192761164},
file = {:C$\backslash$:/Users/Isi/Documents/Research/Tensors/TensorsDocumentation/Literature/Hitchcock{\_}cpd.pdf:pdf},
issn = {0097-1421},
journal = {Journal of Mathematics and Physics},
number = {1-4},
pages = {164--189},
title = {{The Expression of a Tensor or a Polyadic as a Sum of Products}},
volume = {6},
year = {1927}
}
@article{Carroll1970,
doi = {10.1007/BF02310791},
file = {:C$\backslash$:/Users/Isi/Documents/Research/Tensors/TensorsDocumentation/Literature/Carrol{\_}Chang{\_}CPD.pdf:pdf},
issn = {00333123},
journal = {Psychometrika},
number = {3},
pages = {283--319},
title = {{Analysis of individual differences in multidimensional scaling via an n-way generalization of "Eckart-Young" decomposition}},
volume = {35},
year = {1970}
}
\end{filecontents}
\usepackage[style=verbose,backend=bibtex]{biblatex}
\addbibresource{\jobname.bib}
\newcommand{\customfootcite}[1]{\footnote{\citeauthor{#1}, \citetitle{#1}, \citeyear{#1}}}
\begin{document}
\setbeamertemplate{navigation symbols}{}
\begin{frame}{Slide 1\customfootcite{Harshman1970}\customfootcite{Hitchcock1927}\customfootcite{Carroll1970}}
some text
\end{frame}
\begin{frame}{Slide 2\customfootcite{Harshman1970}\customfootcite{Hitchcock1927}\customfootcite{Carroll1970}}
some figure
\end{frame}
\end{document}
Gives this:
[![enter image description here][1]][1]
I want both slides to have the same numbers.
Thank you in advance!
[1]: https://i.stack.imgur.com/80baB.png
Top Answer
samcarter
Instead of trying to re-invent the wheel, you could let `biblatex` do the hard work for you. With an numeric style, each of your references will have it's unique number:
```
\documentclass[11pt]{beamer}
%\documentclass[handout,11pt]{beamer}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usetheme{Madrid}
\begin{filecontents}[overwrite]{\jobname.bib}
@article{Harshman1970,
author = {Harshman, Richard A and others},
doi = {10.1134/S0036023613040165},
file = {:C$\backslash$:/Users/Isi/Documents/Research/Tensors/TensorsDocumentation/Literature/Harshman{\_}CPD.pdf:pdf},
issn = {00360236},
journal = {UCLA Working Papers in Phonetics},
pages = {1--84},
title = {{Foundations of the PARAFAC procedure: Models and conditions for an" explanatory" multimodal factor analysis}},
volume = {16},
year = {1970}
}
@article{Hitchcock1927,
author = {Hitchcock, Frank L.},
doi = {10.1002/sapm192761164},
file = {:C$\backslash$:/Users/Isi/Documents/Research/Tensors/TensorsDocumentation/Literature/Hitchcock{\_}cpd.pdf:pdf},
issn = {0097-1421},
journal = {Journal of Mathematics and Physics},
number = {1-4},
pages = {164--189},
title = {{The Expression of a Tensor or a Polyadic as a Sum of Products}},
volume = {6},
year = {1927}
}
@article{Carroll1970,
doi = {10.1007/BF02310791},
file = {:C$\backslash$:/Users/Isi/Documents/Research/Tensors/TensorsDocumentation/Literature/Carrol{\_}Chang{\_}CPD.pdf:pdf},
issn = {00333123},
journal = {Psychometrika},
number = {3},
pages = {283--319},
title = {{Analysis of individual differences in multidimensional scaling via an n-way generalization of "Eckart-Young" decomposition}},
volume = {35},
year = {1970}
}
\end{filecontents}
\usepackage[style=numeric,sorting=none]{biblatex}
\addbibresource{\jobname.bib}
\setbeamertemplate{bibliography item}[text]
\makeatletter
\DeclareCiteCommand{\cite}[\mkbibsuperscript]
{\usebibmacro{prenote}}
{\usebibmacro{citeindex}%
\usebibmacro{cite}}
{\multicitedelim}
{\usebibmacro{postnote}}
\renewbibmacro*{cite}{%
\printtext[bibhyperref]{%
\printfield{labelprefix}%
\printfield{labelnumber}%
\ifbool{bbx:subentry}{%
\printfield{entrysetcount}
}{}%
}%
\footnotetext[\thefield{labelnumber}]{%
\usedriver{\DeclareNameAlias{sortname}{default}}{\thefield{entrytype}}
}%
}
\DeclareBibliographyDriver{article}{%
\usebibmacro{bibindex}%
\usebibmacro{begentry}%
\usebibmacro{author/translator+others}%
\setunit{\printdelim{nametitledelim}}\newblock
\usebibmacro{title}%
\newunit
\printlist{language}%
\newunit\newblock
\usebibmacro{byauthor}%
\newunit\newblock
\usebibmacro{date}%
\usebibmacro{finentry}}
\makeatother
\begin{document}
\begin{frame}{Slide 1\cite{Harshman1970}\cite{Hitchcock1927}\cite{Carroll1970}}
some text
\end{frame}
\begin{frame}{Slide 2\cite{Hitchcock1927}\cite{Carroll1970}}
some figure
\end{frame}
\begin{frame}
\printbibliography
\end{frame}
\end{document}
```
![Screen Shot 2019-12-16 at 23.35.47.png](/image?hash=d5d470fecabd57648344b69c909b458f7b70da15ac3b9c13c81b9297432976ee)
(I would prefer if this answer would **not** be reposted on tex.se)