如何使图形显示在 Beamer 标题的前景中

如何使图形显示在 Beamer 标题的前景中

我正在 Beamer 中做第一次演示,但我不知道如何让我公司的徽标出现在幻灯片右上角的标题顶部。徽标出现在正确的位置,但它隐藏在标题横幅下。我的虚拟图像 CompanyLogo.png 的 MWE:

\documentclass[11pt, aspectratio=169]{beamer}

\graphicspath{{Images/}{./}}

\usepackage{booktabs}
\usepackage{hyperref}
\usepackage{siunitx}
\usepackage[super]{nth}
\usepackage{graphicx}
\usepackage{palatino}
\usepackage[default]{opensans}

\usetheme{Darmstadt}
\usecolortheme{seagull}
\usefonttheme{default}
\usefonttheme{structurebold}
\useinnertheme{circles}
\useoutertheme{default}

\setbeamertemplate{footline}[text line]{\parbox{\linewidth}{\vspace*{-8pt}Company\hfill Proprietary\hfill\insertpagenumber}} %

\setbeamertemplate{navigation symbols}{}

\logo{\hspace*{.8\paperwidth}\includegraphics[width=.15\textwidth]{CompanyLogo.png}\vspace*{.8\paperheight}}

\title[Short Title]{Title}
\author{Author}
\institute[Company]{Company \\ \smallskip \textit{Email}}
\date[1/19/23]{January 19, 2023}

\sisetup{detect-all = true, detect-family = true}

\makeatletter
\patchcmd{\beamer@sectionintoc}{\vskip1.5em}{\vskip0.5em}{}{}
\makeatother

\AtBeginSection[]{
    \begin{frame}{Outline}
        \tableofcontents[currentsection,hideothersubsections]
    \end{frame} }

\begin{document}

\begin{frame}[plain]
    \titlepage
\end{frame}

\begin{frame}
    \frametitle{Presentation Overview}

    \tableofcontents[hideallsubsections] 

\end{frame}

\section[S1]{Section 1}

\subsection{Subsection 1.1}

\begin{frame} \frametitle{Frame 1} 

\end{frame}

\section[S1]{Section 2}

\subsection{Subsection 2.1}

\begin{frame} \frametitle{Frame 2} 

\end{frame}

\begin{frame}[plain]
    \begin{center}
        {\Huge Thank You!}
        
        \bigskip\bigskip
        
        {\LARGE Questions? Comments?}
    \end{center}
\end{frame}


\end{document}

答案1

如果您想确保徽标位于其他所有内容的前面,可以将其添加到脚注模板中。这是框架中最前面的一层,请参阅 Beamer 用户指南中的图 1

在此处输入图片描述

\documentclass[11pt, aspectratio=169]{beamer}

\graphicspath{{Images/}{./}}

\usepackage{booktabs}
%\usepackage{hyperref}
\usepackage{siunitx}
\usepackage[super]{nth}
%\usepackage{graphicx}
\usepackage{palatino}
\usepackage[default]{opensans}
%
\usetheme{Darmstadt}
\usecolortheme{seagull}
\usefonttheme{default}
\usefonttheme{structurebold}
\useinnertheme{circles}
\useoutertheme{default}
%
\setbeamertemplate{footline}{%
\smash{\hspace*{.8\paperwidth}\raisebox{.8\textheight}{\includegraphics[width=.15\textwidth]{example-image-duck}}}

\hspace{1cm}\parbox{\linewidth}{\vspace*{-8pt}Company\hfill Proprietary\hfill\insertpagenumber}} %

\setbeamertemplate{navigation symbols}{}

\title[Short Title]{Title}
\author{Author}
\institute[Company]{Company \\ \smallskip \textit{Email}}
\date[1/19/23]{January 19, 2023}

\sisetup{detect-all = true, detect-family = true}

\makeatletter
\patchcmd{\beamer@sectionintoc}{\vskip1.5em}{\vskip0.5em}{}{}
\makeatother

\AtBeginSection[]{
    \begin{frame}{Outline}
        \tableofcontents[currentsection,hideothersubsections]
    \end{frame} }

\begin{document}

\begin{frame}[plain]
    \titlepage
\end{frame}

\begin{frame}
    \frametitle{Presentation Overview}

    \tableofcontents[hideallsubsections] 

\end{frame}

\section[S1]{Section 1}

\subsection{Subsection 1.1}

\begin{frame} \frametitle{Frame 1} 

\end{frame}

\section[S1]{Section 2}

\subsection{Subsection 2.1}

\begin{frame} \frametitle{Frame 2} 

\end{frame}

\begin{frame}[plain]
    \begin{center}
        {\Huge Thank You!}
        
        \bigskip\bigskip
        
        {\LARGE Questions? Comments?}
    \end{center}
\end{frame}


\end{document}

相关内容