I dont like the citations in moste presentations. If you wanna look up a special reference, you most likely forgot the number when de reference are shown at the end. Therefor i made a custom citation command \mycite
, acting like cite, but adding some brief informations in the footnote (without footnote index). Sometimes i just want to add a reference to the whole frame, without any explicit reference in the text, therefor i made a second command \myframecite
. But on the latter one i have some dificulties, because it adds some empty space in the text, while it should only operate on the footnote.
\documentclass{beamer}
\usetheme{Boadilla}
\usepackage{filecontents}
\begin{filecontents}{jobname.bib}
@article{Doe2013,
title = {Lorem Ipsum},
volume = {1},
journal = {J. Foo},
author = {J. Doe},
year = {2013},
pages = {1--10},
}
@article{Public2013,
title = {Dolor Sit Amet},
volume = {1},
journal = {J. Foo},
author = {J. Q. Public},
year = {2013},
pages = {11--20},
}
\end{filecontents}
\usepackage[backend=biber, style=numeric]{biblatex}
\addbibresource{jobname.bib}
\makeatletter
\newbibmacro*{myframecite}{%
\renewcommand{\@makefntext}[1]{\noindent\scriptsize##1}%
\footnotetext{%
\blxmkbibnote{foot}{%
\printtext[labelnumberwidth]{%
\printfield{prefixnumber}%
\printfield{labelnumber}}%
\addspace%
\printnames{author}%
\setunit{\addcomma\addspace}%
\printfield{title}%
\setunit{\addcomma\addspace}%
\printfield{year}%
}}}
\DeclareCiteCommand{\myframecite}%
{}
{\usebibmacro{myframecite}}
{}
{}
\makeatother
\newcommand{\mycite}[1]{\cite{#1} \myframecite{#1}}
\begin{document}
\begin{frame}
\begin{definition}test\end{definition}
\begin{definition}test\end{definition}
\mycite{Doe2013}
\begin{definition}test\end{definition}
\myframecite{Public2013}
\begin{definition}test\end{definition}
\end{frame}
\end{document}
The small example produces the following frame:
I dont want the empty line between the third and fourth definition, but i have no clue how to get rid of it. Of course, i could put the \myframecite
command at the end of the frame, where the emply line wouldn't be that disturbing. Nevertheless, the additional empty line results in an odd (asymmetric) spacing, which i would like to avoid.