你能帮助我吗?
我怎样才能删除标题栏并添加不带标题栏的标题?请帮帮我
答案1
您需要添加
\setbeamercolor{titlelike}{parent=transparent}
或者
\setbeamercolor{titlelike}{parent=transparent, fg=red}
指定文本颜色以隐藏标题背景。但是,这也会隐藏所有其他框架的标题背景。解决方法是添加:
\setbeamercolor{frametitle}{ bg=beamer@blendedblue, fg=green}
。
颜色beamer@blendedblue
是 Beamer 中使用的默认颜色。您可以将其更改为任何您想要的颜色,例如bg=yellow
改为。更改下方栏颜色的方法是使用:
\setbeamercolor{palette secondary}{bg=green, fg=orange} %left palette
\setbeamercolor{palette tertiary}{bg=yellow, fg=blue} %middle palette
\setbeamercolor{palette primary}{bg=red, fg=black} %right palette
输出如下:
\documentclass{beamer}
\usetheme{Madrid}
\setbeamercolor{titlelike}{parent=transparent, fg=red} %hides title
%background (first page only)
\setbeamercolor{palette secondary}{bg=green, fg=orange} %left palette
\setbeamercolor{palette tertiary}{bg=yellow, fg=blue} %middle palette
\setbeamercolor{palette primary}{bg=red, fg=black} %right palette
\setbeamercolor{frametitle}{ bg=beamer@blendedblue, fg=green}%adds beamer blue background
%to the title for 2nd and
%above slides.
\title[Title]{Title}
\author{Name}
\institute{University name}
\date{\today}
\begin{document}
\frame{\titlepage}
\begin{frame}{The Title of the Slide}
Some text!
\end{frame}
\end{document}