我希望 Beamer 演示文稿中的标题栏是纯色(如幻灯片底部的栏)。下面我在代码中定义了颜色“橙色”:
\documentclass[11pt]{beamer}
\usetheme{Warsaw}
\definecolor{orange}{rgb}{1,0.4,0}
\usecolortheme[named=orange]{structure}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{multicol}
\setbeamersize{text margin left=0.2in,text margin right=0.2in}
\author[Author]{}
\title{Title}
\begin{document}
\beamertemplatenavigationsymbolsempty
\begin{frame}[t]{Title Bar}
Here is some text.
\end{frame}
\end{document}
如何使标题栏变成纯橙色而不是从左到右逐渐变成黑色?
答案1
您可以\setbeamercolor{frametitle right}{bg=frametitle.bg}
按照以下示例所示使用:
\documentclass[11pt]{beamer}
\usetheme{Warsaw}
\definecolor{orange}{rgb}{1,0.4,0}
\usecolortheme[named=orange]{structure}
\setbeamersize{text margin left=0.2in,text margin right=0.2in}
\setbeamercolor{frametitle right}{bg=frametitle.bg}
\begin{document}
\beamertemplatenavigationsymbolsempty
\begin{frame}[t]{Title Bar}
Here is some text.
\end{frame}
\end{document}