我制作了一个自定义 latex beamer 主题,标题(右上)和部分(左上)上都有我大学的徽标和标题。我想通过包含右上部分中的子部分并删除徽标和大学标题来更改标题的设置。这可能吗?
答案1
您可以创建一个新的标题定义,如下所示:
\defbeamertemplate*{headline}{magda theme}{%
\leavevmode%
\@tempdimb=2.4375ex%
\multiply\@tempdimb by\beamer@sectionmax%
\pgfdeclareimage[height=.9\@tempdimb]{logo}{tuc_logo_3}%
\logo{\pgfuseimage{logo}}%
\ifdim\@tempdimb>0pt%
\advance\@tempdimb by 1.125ex%
\begin{beamercolorbox}[wd=.5\paperwidth,ht=\@tempdimb]{section in head/foot}%
\vbox to\@tempdimb{\vfil\insertsectionnavigation{.5\paperwidth}\vfil}%
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.5\paperwidth,ht=\@tempdimb]{subsection in head/foot}%
\vbox to\@tempdimb{\vfil\insertsubsectionnavigation{.5\paperwidth}\vfil}%
\end{beamercolorbox}%
% \begin{beamercolorbox}[wd=.4\paperwidth,ht=\@tempdimb,right]{subsection in head/foot}%
% \vbox to\@tempdimb{\vfil\vfil\textbf{\footnotesize\insertshortinstitute~~}\vfil}%
% \end{beamercolorbox}%
% \begin{beamercolorbox}[wd=.1\paperwidth,ht=\@tempdimb,left]{subsection in head/foot}%
% \vbox to\@tempdimb{\vfil\insertlogo\vfil\vfil}%
% \end{beamercolorbox}%
\fi%
}
并在以下标题之间切换:
\documentclass{beamer}
\usepackage{tuc}
\setbeamertemplate{headline}[tuc theme]
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\begin{frame}
\frametitle{Outline}
\tableofcontents[hideallsubsections]
\end{frame}
\setbeamertemplate{headline}[magda theme]
\section{Introduction}
\subsection{sub1}
\begin{frame}
test
\end{frame}
\end{document}