Beamer:如何在每张幻灯片中都包含徽标?

Beamer:如何在每张幻灯片中都包含徽标?

我正在准备使用 的演示文稿beamer

作为先决条件,我需要在每张幻灯片中加入我的资助计划的徽标,最好是在左下角。徽标只是一个 .png 图像。

我知道如何在演示文稿中添加图形,但有没有一种简单的方法可以在每张幻灯片的左下角(或其他地方)添加图像?

答案1

右下角很简单:

\documentclass{beamer}

\logo{\includegraphics[width=.1\textwidth]{example-image}}

\begin{document}

\begin{frame}
    abc
\end{frame} 

\end{document}

并且使用一种肮脏的技巧,它可以被移动到左边:

\documentclass{beamer}

\logo{\includegraphics[width=.1\textwidth]{example-image}\hspace*{.88\paperwidth}}

\begin{document}

\begin{frame}
    abc
\end{frame} 

\end{document}

答案2

肯定有很多人来这里是为了在右上角落。为此,请使用以下方法:

\setbeamertemplate{headline}{\hfill\includegraphics[width=1.5cm]{example-image}\hspace{0.2cm}\vspace{-1cm}}

相应调整参数(widthhspacevspace)。

答案3

我发现这是最好的解决方案:

% Method to add an item that will appear in every slide
\addtobeamertemplate{footline}{%
  \setlength\unitlength{1ex}%
  \begin{picture}(0,0) 
    % \put{} defines the position of the frame
    \put(140,6){\makebox(0,0)[bl]{
    \includegraphics{figures/image1.png}
    \includegraphics{figures/image2.png}
    \includegraphics{figures/image3.png}
    }}%
  \end{picture}%
}{}

相关内容