如何在投影仪中放置图形的参考?

如何在投影仪中放置图形的参考?

我正在做一个演示。其中一张幻灯片以图形方式展示了统计数据。我想引用我从哪里获取这些统计数据。我该怎么做?

平均能量损失

\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}

这导致幻灯片中的数字位置很尴尬(靠近幻灯片的右下角)。我该如何让这个数字出现在图片周围?

答案1

正如 cfr 在她的评论中提到的,更好看的方法是不要使用脚注引用图片。尝试将引用放在图片正下方,如下所示:

在此处输入图片描述

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

编辑: 尝试制作图形堆栈和图像源引用的命令。为此,我使用了包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}

答案2

作为 Zarko 的补充,我会使用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}

可能更容易理解。当然,这不会使其自动化,但很容易将其包装为类似于\figciteZarkos 答案中的宏。

相关内容