我想修改这个主题。
\documentclass{beamer}
\DeclareOptionBeamer{compress}{\beamer@compresstrue}
\ProcessOptionsBeamer
\mode<presentation>
\useoutertheme[footline=authortitle]{miniframes}
\useinnertheme{circles}
\usecolortheme{whale}
\usecolortheme{orchid}
\definecolor{beamer@blendedblue}{rgb}{0.137,0.466,0.741}
\setbeamercolor{structure}{fg=beamer@blendedblue}
\setbeamercolor{titlelike}{parent=structure}
\setbeamercolor{frametitle}{fg=black}
\setbeamercolor{title}{fg=black} \setbeamercolor{item}{fg=black}
\mode <all>
\begin{document}
\begin{frame}
\frametitle{Task}
Task.
\end{frame}
\end{document}
我很高兴以这种方式获得不同的页脚。我希望拥有与 Torine 样式完全相同的页脚(从下载http://blog.barisione.org/2007-09/torino-a-pretty-theme-for-latex-beamer/) 唯一的变化是,三条条纹从左侧开始,然后向右移动(数字页也位于左侧)。有人知道如何修改吗?
答案1
只需复制模板的定义footline
并引入所需的修改:
\documentclass{beamer}
\makeatletter
\DeclareOptionBeamer{compress}{\beamer@compresstrue}
\ProcessOptionsBeamer
\mode<presentation>
\useoutertheme[footline=authortitle]{miniframes}
\useinnertheme{circles}
\usecolortheme{whale}
\usecolortheme{orchid}
% Colors.
\definecolor{beamer@blendedblue}{rgb}{0.137,0.466,0.741}
\setbeamercolor{structure}{fg=beamer@blendedblue}
\setbeamercolor{titlelike}{parent=structure}
\setbeamercolor{frametitle}{fg=black}
\setbeamercolor{title}{fg=black} \setbeamercolor{item}{fg=black}
% The footline template is a modification of the one used in the
% Torino theme, Copyright 2007 by Marco Barisione
\setbeamercolor*{lineup}{parent=palette primary}
\setbeamercolor*{linemid}{parent=palette secondary}
\setbeamercolor*{linebottom}{parent=palette tertiary}
\setbeamercolor*{page header}{parent=titlelike}
\mode <all>
% some lengths (the height of the lines)
\newlength{\beamer@decolines@linemid}
\setlength{\beamer@decolines@linemid}{.015\paperheight}
\newlength{\beamer@decolines@lineup}
\setlength{\beamer@decolines@lineup}{.025\paperheight}
\newlength{\beamer@decolines@linebottom}
\setlength{\beamer@decolines@linebottom}{.01\paperheight}
% String used between the current page and the total page count.
\def\beamer@decolines@pageofpages{/}
\defbeamertemplate*{footline}{decolines theme}
{
\leavevmode%
% First line.
\hbox{%
\begin{beamercolorbox}[wd=.8\paperwidth,ht=\beamer@decolines@lineup,dp=0pt]{lineup}%
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.2\paperwidth,ht=\beamer@decolines@lineup,dp=0pt,right]{}%
\hbox{\usebeamerfont{palette primary}\footnotesize\insertframenumber{} \beamer@decolines@pageofpages{} \inserttotalframenumber\hspace*{2ex}}%
\end{beamercolorbox}%
} %
% Second line.
\hbox{%
\begin{beamercolorbox}[wd=\paperwidth,ht=\beamer@decolines@linemid,dp=0pt]{linemid}%
\end{beamercolorbox}%
} %
% Third line.
\hbox{%
\begin{beamercolorbox}[wd=.9\paperwidth,ht=\beamer@decolines@linebottom,dp=0pt]{linebottom}%
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.1\paperwidth,ht=\beamer@decolines@linebottom,dp=0pt]{}%
\end{beamercolorbox}%
}%
}
\makeatother
\setbeamertemplate{navigation symbols}{}
\begin{document}
\begin{frame}
\frametitle{Task}
Task.
\end{frame}
\end{document}