2

I am making a presentation. One of my slides has a graphical representation of statistics in a fancy manner. I want to make a reference of source from where I am pulling those stats. How can I do this.

MWE

\documentclass{beamer}
\usepackage[style=verbose]{biblatex}

\usepackage{filecontents}% to embed the file `myreferences.bib` in your `.tex` file
\begin{filecontents*}{myreferences.bib}
@online{foo12,
  year = {2012},
  title = {footnote-reference-using-european-system},
  url = {http://tex.stackexchange.com/questions/69716/footnote-reference-using-european-system},
}
\end{filecontents*}

% File is created and written to disk by the above package
\addbibresource{myreferences.bib}

\begin{document}

\begin{frame}
\includegraphics[width=\textwidth]{Fig_XYZ.png} 
\footcite{foo12}
\end{frame}

\begin{frame}
\printbibliography
\end{frame}

\end{document}

This results in an awkwardly place (towards bottom right corner of slide) number in my slide. How can I bring this number around my image?

NAASI
  • 2,809

2 Answers2

4

As cfr mentioned in her comment, better looking way is not to use footnote references for pictures. Try to put reference immediately below picture like this:

enter image description here

\begin{frame}
\includegraphics[width=\textwidth]{example-image}\\[-1ex]
{\tiny Source: \cite{foo12}}
\end{frame}

Edit: An attempt to make command for stack of figure and citation of image source. For it I use package stackengine:

\documentclass{beamer}
\usepackage{stackengine}
\newcommand{\figcite}[3]{
  \def\stackalignment{l}
  \stackunder{\includegraphics[width=#1]{#2}}{\scriptsize Source: \cite{#3}}
                        }

\usepackage[style=verbose]{biblatex} \usepackage{filecontents}% to embed the file myreferences.bib in your .tex file

\begin{filecontents}{myreferences.bib} @online{foo12, year = {2012}, title = {footnote-reference-using-european-system}, url = {http://tex.stackexchange.com/questions/69716/footnote-reference-using-european-system}, } \end{filecontents}

% File is created and written to disk by the above package \addbibresource{myreferences.bib}

\begin{document}

\begin{frame} \figcite{\textwidth}{example-image}{foo12} \end{frame}

\begin{frame} \printbibliography \end{frame} \end{document}

Zarko
  • 296,517
  • Do you think it is possible to have a custom figure enviroment that does this automatically? – alfC Aug 20 '15 at 06:37
  • @alfc, of course. See http://tex.stackexchange.com/251596/footnote-to-figure, maybe you find some idea, how to do this "semi-automaticaly", on the end you still need to write reference to your bibliography ... – Zarko Aug 20 '15 at 06:55
  • Thanks, but the link is broken. – alfC Aug 20 '15 at 07:28
  • Link is not complete ... before it you must add http://. Anyway, I will try to compose a new command which will a bit simplify placing figure and source note. – Zarko Aug 20 '15 at 10:59
  • http is not the problem, the link is broken to me. – alfC Aug 20 '15 at 21:14
2

Just as an addition to Zarko, I'd use tikz

\documentclass[a4paper]{memoir}
\usepackage{tikz}
\newcommand\PIC{\rule{5cm}{5cm}}
\begin{document}

\begin{tikzpicture}
  \node[inner sep=0pt,anchor=south west] at (0,0) {\PIC};
  \node[anchor=north west] at (0,0) {\footnotesize
    \textbf{Source:} URL};
\end{tikzpicture}

\end{document}

Might be a bit simpler to understand. Of course this does not make it automatic, but it is easy to wrap it together as macro similar to \figcite in Zarkos answer.

daleif
  • 54,450