我找到了一个我喜欢的模板,但是标题不是固定的,它会随着文档中存在的节数而增加。这是奈梅亨拉德堡德大学提供的模板。
我想删除 5 行文本(简介、背景信息等),并保留黑色(空白)。问题是,如果我这样做,标题的高度会降低。是否可以将其固定在特定高度?
我认为代码的相关部分是这样的:
\defbeamertemplate*{headline}{ru theme}{%
\leavevmode%
\@tempdimb=2.4375ex%
\multiply\@tempdimb by\beamer@sectionmax%
\pgfdeclareimage[height=.9\@tempdimb]{logo}{ru_logo}%
\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=.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%
}
提前感谢您提供的任何有用的提示!
答案1
就像是
\defbeamertemplate*{headline}{ru theme}{%
\leavevmode%
% set a minimum number of sections, here 5 is used
\ifnum\beamer@sectionmax<5\relax
\beamer@sectionmax=5
\fi
\@tempdimb=2.4375ex%
\multiply\@tempdimb by\beamer@sectionmax%
\pgfdeclareimage[height=.9\@tempdimb]{logo}{ru_logo}%
\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=.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%
}