我正在尝试修改 Beamer 的伯克利主题。我想让每张幻灯片底部的斜蓝线在幻灯片中间断开,并在白色背景上镜像插入另一个徽标。不幸的是,我对如此复杂的 LaTeX 代码不太熟练。
答案1
在文件中beamerthemeUCBerkeley.sty
,搜索\setbeamertemplate{background}
并用此代码替换。
\setbeamertemplate{background}{%
\begin{tikzpicture}[overlay,remember picture]
\fill[BerkeleyBlue] (current page.south west) -- +(0, 0.18\paperheight) -- +(0.5*\paperwidth, 0.08\paperheight) -- (current page.south) -- cycle;
\node[anchor=south west,inner sep=0pt,draw=none,xshift=0.055\paperheight,yshift=0.04\paperheight] at (current page.south west) {\pgfuseimage{logo}};%
% 2nd logo
\node[anchor=south east, inner sep=5pt, xshift=-0.055\paperheight, yshift=0.04\paperheight, fill=BerkeleyBlue] at (current page.south east) {\pgfuseimage{logo}};
\end{tikzpicture}%
}
输出:
您可以调整xshift
第二yshift
个徽标的位置,使其符合您的喜好。此inner sep
设置控制徽标和其填充边框之间的填充。