\documentclass[xcolor=dvipsnames]{beamer}
\usecolortheme[named=blue]{structure}
%------------------------\AtBeginSubsection[]----------------------
\AtBeginSubsection[]{
\begin{frame}<beamer>[noframenumbering,plain]{Outline}
\transsplitverticalout
\tableofcontents[currentsection,currentsubsection]
\end{frame}
}
\usetheme{Madrid}
\setbeamercolor{author in head/foot}{bg=blue!30!black}
\setbeamercolor{title in head/foot}{bg=yellow!30!white,fg=blue!30!black}
\setbeamercolor{page number in head/foot}{bg=blue!30!black,fg=white}
\title[The essential numerical range and the Olsen problem]{The
essential numerical range and the Olsen problem}
\author[{Student} (University of ....)]{Student}
\useoutertheme{shadow}
\usepackage{tikz}
\usetikzlibrary{shadings}
\colorlet{titleleft}{yellow!30!white}
\colorlet{titleright}{blue!30!black}
\setbeamercolor*{frametitle}{fg=blue!30!black}
\makeatletter
\pgfdeclarehorizontalshading[titleleft,titleright]
{beamer@frametitleshade}
{\paperheight}{%
color(0pt)=(titleleft);
color(\paperwidth)=(titleright)}
\makeatother
%-----------------------------footline-----------------------------
\setbeamertemplate{footline}{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.3\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
\usebeamerfont{author in head/foot}\insertshortauthor
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.6\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
\usebeamerfont{title in head/foot}\insertshorttitle
% \hspace*{3em}
% \insertframenumber{} / \inserttotalframenumber\hspace*{1ex}
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.1\paperwidth,ht=2.25ex,dp=1ex,center]{page number in head/foot}%
% \usebeamerfont{title in head/foot}\insertshorttitle\hspace*{3em}
\insertframenumber{} / \inserttotalframenumber
\end{beamercolorbox}%
}%
\vskip0pt%
}
\begin{document}
\section{Introduction}
\section{Positive linear relations}
\section{Lattice linear relations}
\section{Domination by a positive compact relation.}
\subsection{Linear relation}
\subsection{Riesz spaces}
\begin{frame}{Linear relations}
\end{frame}
\end{document}
我想将框架标题改为 的样式
{Student} (University of ....)
。我还希望将各部分的颜色改为 ,就像脚的两种颜色一样。
答案1
您\colorlet{titleleft}{blue!30!black} \colorlet{titleright}{blue!30!black} \setbeamercolor*{frametitle}{fg=white} \setbeamercolor*{subsection in head/foot}{bg=yellow!30!white,fg=blue!30!black}
可以实现以下目标:
\documentclass[xcolor=dvipsnames]{beamer}
\usecolortheme[named=blue]{structure}
%------------------------\AtBeginSubsection[]----------------------
\AtBeginSubsection[]{
\begin{frame}<beamer>[noframenumbering,plain]{Outline}
\transsplitverticalout
\tableofcontents[currentsection,currentsubsection]
\end{frame}
}
\usetheme{Madrid}
\setbeamercolor{author in head/foot}{bg=blue!30!black}
\setbeamercolor{title in head/foot}{bg=yellow!30!white,fg=blue!30!black}
\setbeamercolor{page number in head/foot}{bg=blue!30!black,fg=white}
\title[The essential numerical range and the Olsen problem]{The
essential numerical range and the Olsen problem}
\author[{Student} (University of ....)]{Student}
\useoutertheme{shadow}
\usepackage{tikz}
\usetikzlibrary{shadings}
\colorlet{titleleft}{blue!30!black}
\colorlet{titleright}{blue!30!black}
\setbeamercolor*{frametitle}{fg=white}
\setbeamercolor*{subsection in head/foot}{bg=yellow!30!white,fg=blue!30!black}
\makeatletter
\pgfdeclarehorizontalshading[titleleft,titleright]
{beamer@frametitleshade}
{\paperheight}{%
color(0pt)=(titleleft);
color(\paperwidth)=(titleright)}
\makeatother
%-----------------------------footline-----------------------------
\setbeamertemplate{footline}{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.3\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
\usebeamerfont{author in head/foot}\insertshortauthor
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.6\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
\usebeamerfont{title in head/foot}\insertshorttitle
% \hspace*{3em}
% \insertframenumber{} / \inserttotalframenumber\hspace*{1ex}
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.1\paperwidth,ht=2.25ex,dp=1ex,center]{page number in head/foot}%
% \usebeamerfont{title in head/foot}\insertshorttitle\hspace*{3em}
\insertframenumber{} / \inserttotalframenumber
\end{beamercolorbox}%
}%
\vskip0pt%
}
\begin{document}
\section{Introduction}
\section{Positive linear relations}
\section{Lattice linear relations}
\section{Domination by a positive compact relation.}
\subsection{Linear relation}
\subsection{Riesz spaces}
\begin{frame}{Linear relations}
\end{frame}
\end{document}
对于更通用的方法,您可能还想定义自己的颜色。如果您以后想将每个蓝色元素更改为不同的颜色,则只需更改一个定义:
\colorlet{myblue}{blue!30!black}
\colorlet{myyellow}{yellow!30!white}
...
\setbeamercolor{author in head/foot}{bg=myblue}
\setbeamercolor{title in head/foot}{bg=myyellow,fg=myblue}
\setbeamercolor{page number in head/foot}{bg=myblue,fg=white}
\setbeamercolor*{subsection in head/foot}{bg=myyellow,fg=myblue}
...
\colorlet{titleleft}{myblue} %<----- left half of frame title background color
\colorlet{titleright}{myblue} %<----- right half of frame title background color
\setbeamercolor*{frametitle}{fg=white} %<---- Color of the frame title text
答案2
对不起,
你的问题不太清楚。
也许,你想要这个结果吗?
\documentclass[xcolor=dvipsnames]{beamer}
\usecolortheme[named=blue]{structure}
%------------------------\AtBeginSubsection[]----------------------
\AtBeginSubsection[]{
\begin{frame}<beamer>[noframenumbering,plain]{Outline}
\transsplitverticalout
\tableofcontents[currentsection,currentsubsection]
\end{frame}
}
\usetheme{Madrid}
\setbeamercolor{author in head/foot}{bg=blue!30!black}
\setbeamercolor{title in head/foot}{bg=yellow!30!white,fg=blue!30!black}
\setbeamercolor{page number in head/foot}{bg=blue!30!black,fg=white}
\title[The essential numerical range and the Olsen problem]{The
essential numerical range and the Olsen problem}
\author[{Student} (University of ....)]{Student}
\useoutertheme{shadow}
\usepackage{tikz}
\usetikzlibrary{shadings}
\colorlet{titleleft}{blue!30!black}
\colorlet{titleright}{blue!30!black}
\setbeamercolor*{frametitle}{fg=blue!30!white}
\makeatletter
\pgfdeclarehorizontalshading[titleleft,titleright]
{beamer@frametitleshade}
{\paperheight}{%
color(0pt)=(titleleft);
color(\paperwidth)=(titleright)}
\makeatother
%-----------------------------footline-----------------------------
\setbeamertemplate{footline}{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.3\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
\usebeamerfont{author in head/foot}\insertshortauthor
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.6\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
\usebeamerfont{title in head/foot}\insertshorttitle
% \hspace*{3em}
% \insertframenumber{} / \inserttotalframenumber\hspace*{1ex}
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.1\paperwidth,ht=2.25ex,dp=1ex,center]{page number in head/foot}%
% \usebeamerfont{title in head/foot}\insertshorttitle\hspace*{3em}
\insertframenumber{} / \inserttotalframenumber
\end{beamercolorbox}%
}%
\vskip0pt%
}
\begin{document}
\section{Introduction}
\section{Positive linear relations}
\section{Lattice linear relations}
\section{Domination by a positive compact relation.}
\subsection{Linear relation}
\subsection{Riesz spaces}
\begin{frame}{Linear relations}
\end{frame}
\end{document}