我正在尝试从 beamer 定制 Palo Alto 主题以获得如下效果:
但到目前为止我设法得到了这个:[更新]:好的,最终我得到了这个:
% Document structure
\documentclass{beamer}
\usetheme[width=1.25cm]{PaloAlto}
% Titlepage
\title{Basic information about affiliation}
\author[Marcin Lembke]{Autor iksiński}
\institute[]{Instytut Radioelektroniki\\Wydział Elektroniki i Technik Informacyjnych\\Politechnia Warszawska}
\date{Braniewo, 2011}
% Beamer settings
% Resize header
\makeatletter
\setlength{\beamer@headheight}{0.85cm}
\makeatother
% Define colors
\definecolor{primary}{RGB}{200,131,53}
\definecolor{secondary}{RGB}{253,250,200}
% Set colors
\setbeamercolor*{palette primary}{use=structure,fg=black,bg=primary}
\setbeamercolor*{palette secondary}{use=structure,fg=black,bg=primary}
\setbeamercolor*{palette quaternary}{fg=black,bg=secondary}
\setbeamercolor{frametitle}{bg=primary, fg=black} %controls the color of the headline
\setbeamercolor{sidebar}{bg=secondary} %controls the color of the sidebar
\setbeamercolor{footer}{bg=primary}
\setbeamercolor{logo}{bg=primary} %controls the color of the logo area
% Disable navigation bar
\beamertemplatenavigationsymbolsempty
% Define headline
%\makeatletter
%\setlength{\beamer@headheight}{1cm}
%\makeatother
\makeatletter
\pgfdeclarehorizontalshading{beamer@headfade}{1cm}
{%
color(0cm)=(secondary);
color(3cm)=(primary);
color(\paperwidth)=(primary)%
}
\addtoheadtemplate{\pgfuseshading{beamer@headfade}}{}
\makeatother
% Define sidebar
\setbeamertemplate{sidebar left}{%
\vspace*{3cm}
\vspace*{\fill}
%\includegraphics[width=1.25cm]{ire_logo.png}\\
%\includegraphics[width=1.25cm]{weiti_logo.png}\\
%\includegraphics[width=1.25cm]{pw_logo.png}
\vspace*{0.1cm}
\vfill
}
% Define footer
\setbeamertemplate{footline}{bg=primary}
\makeatother
\setbeamertemplate{footline}
{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.4\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
\usebeamerfont{author in head/foot}\insertshortauthor\ (IRE PW)
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.6\paperwidth,ht=2.25ex,dp=1ex,right]{title in head/foot}%
\usebeamerfont{title in head/foot}\insertshorttitle
\hfill
\insertframenumber{}\hspace{1ex}
\end{beamercolorbox}}%
}
\makeatletter
\begin{document}
\maketitle
\section{Section}
\begin{frame}{Frametitle}{Framesubtitle}
\end{frame}
\end{document}
因此,我可以调整侧边栏的大小并设置其颜色并在其中包含图像,我可以定义页脚并进行一些更改(但我不知道如何将帧号移动到右侧并更改画布颜色)。我不知道如何制作阴影标题并在页脚中进行我之前提到的更改。
你能帮我吗?有什么想法或建议吗?[更新]:我认为还可以。我仍然不知道如何更改页脚右侧的颜色,但看起来不错。感谢@Ignasi 的帮助 :)
答案1
定义页脚时:
% Define footer
\setbeamertemplate{footline}{bg=primary}
\makeatother
\setbeamertemplate{footline}
{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.4\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
\usebeamerfont{author in head/foot}\insertshortauthor\ (IRE PW)
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.6\paperwidth,ht=2.25ex,dp=1ex,right]{title in head/foot}%
\usebeamerfont{title in head/foot}\insertshorttitle
\hfill
\insertframenumber{}\hspace{1ex}
\end{beamercolorbox}}%
}
\makeatletter
该行在\begin{beamercolorbox}[wd=.6\paperwidth,ht=2.25ex,dp=1ex,right]{title in head/foot}
右下角创建颜色框,并且title in head/foot
是此框在 Beamer 中的颜色定义。因此,您可以重新定义此 Beamer 元素的颜色:
\setbeamercolor{title in head/foot}{parent=palette secondary}
或者直接替换title in head/foot
以author in head/foot
获得与左边框相同的颜色。