Latex 修改波束器';s框架标题模板,仅更改标题页的头/脚文本颜色
我正在为我的大学建立一个带有定制的Latex 修改波束器';s框架标题模板,仅更改标题页的头/脚文本颜色,latex,beamer,Latex,Beamer,我正在为我的大学建立一个带有定制的框架标题模板的beamer模板,我希望在除了标题页之外的所有框架的下线中显示作者、标题和研究所字段 在讨论之后,我通过将标题框中的底脚线字体颜色设置为底脚线背景颜色来实现这一点 尽管此解决方案生成了我想要的输出,但我想知道是否有任何方法可以通过修改帧标题模板来获得相同的输出,以便所有自定义都发生在preamble.tex文件中 MWE: main.tex文件 \include{preamble} \标题{演示文稿标题} \作者{我的名字} \日期{\今天} \开
框架标题
模板的beamer模板,我希望在除了标题页之外的所有框架的下线中显示作者
、标题
和研究所
字段
在讨论之后,我通过将标题框中的底脚线字体颜色设置为底脚线背景颜色来实现这一点
尽管此解决方案生成了我想要的输出,但我想知道是否有任何方法可以通过修改帧标题
模板来获得相同的输出,以便所有自定义都发生在preamble.tex文件中
MWE:
main.tex文件
\include{preamble}
\标题{演示文稿标题}
\作者{我的名字}
\日期{\今天}
\开始{document}
{
\setbeamercolor{author in head/foot}{use=palete secondary,fg=palete secondary.bg}
\setbeamercolor{head/foot中的title}{use=paleteteric,fg=paleteteric.bg}
\setbeamercolor{institutein head/foot}{use=palete secondary,fg=palete secondary.bg}
\帧{\titlepage}
}
\开始{frame}
框架内容
\结束{帧}
\结束{document}
Premission.tex文件:
\文档类{beamer}
%主题和分主题
%--------------------------------------------------------------
\使用主题{柏林}
\usecolortheme{beaver}
%全局颜色设置
%--------------------------------------------------------------
\定义颜色{Maroon}{cmyk}{0,0.87,0.68,0.32}
\setbeamercolor{头/脚中的作者}{fg=Maroon}
\setbeamercolor{头部/足部研究所}{fg=Maroon}
\setbeamercolor*{title}{fg=white,bg=Maroon}
%修改的标题页模板
%--------------------------------------------------------------
\setbeamertemplate{title page}{
\插入作者
\插入机构
\插入标题
}
您可以使用此小技巧将修改移动到序言中:
\documentclass{beamer}
% Theme and sub theme
%--------------------------------------------------------------
\usetheme{Berlin}
\usecolortheme{beaver}
% Global color settings
%--------------------------------------------------------------
\definecolor{Maroon}{cmyk}{0, 0.87, 0.68, 0.32}
\setbeamercolor{author in head/foot}{fg=Maroon}
\setbeamercolor{institute in head/foot}{fg=Maroon}
\setbeamercolor*{title}{fg=white, bg=Maroon}
% Modified title page template
%--------------------------------------------------------------
\setbeamertemplate{title page}{
\insertauthor
\insertinstitute
\inserttitle
}
\makeatletter
\def\ps@navigation@titlepage{%
\setbeamercolor{author in head/foot}{use=palette secondary, fg=palette secondary.bg}
\setbeamercolor{title in head/foot}{use=palette tertiary, fg=palette tertiary.bg}
\setbeamercolor{institute in head/foot}{use=palette secondary, fg=palette secondary.bg}
\@nameuse{ps@navigation}}
\addtobeamertemplate{title page}{\thispagestyle{navigation@titlepage}}{}
\makeatother
\title{presentation-title}
\author{my-name}
\date{\today}
\begin{document}
\frame{\titlepage}
\begin{frame}
frame content
\end{frame}
\end{document}