我正在使用以下代码
\documentclass[xcolor=dvipsnames]{beamer}
\usecolortheme[named=blue]{structure}
\usefonttheme[onlymath]{serif} % rendre l'écriture math plus beau
%---------------------------
%%%%%%%%%%%%%%%%%%%%%%%%%\usepackage%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%-----accent
\usepackage[utf8]{inputenc} %écrire directement les accents et il peut
poser des problème
\usepackage[T1]{fontenc}
%-----
\usepackage{amsmath,amssymb,amsfonts} %math
%-----
\usepackage{pifont} %bouni
%-----
\usepackage{fancybox} %pour faire l'encadrement
\newcommand{\cadre}[1]{
\setlength{\fboxsep}{7pt}
\begin{center}
\shadowbox{#1}
\end{center}}
%--------------------
\usepackage[tikz]{bclogo}
%----------pabox----------
\usepackage[most]{tcolorbox}
\newtcolorbox{mybox}[2][]{%
colback=bg,
colframe=blue!75!black,
fonttitle=\bfseries,
coltitle=blue!75!black,
colbacktitle=bg,
enhanced,
attach boxed title to top left={yshift=-1.2mm, xshift=2mm},
title=#2,
#1}
%--------------------
%--------------------
%%%%%%%%%%%%%%il s'agit d'une frame de passage d'une section vers une
autre%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Delete this, if you do not want the table of contents to pop up at
% the beginning of each subsection:
%------------------------\AtBeginSection[]---------------------------
-------------------------------
%-----------------------------------------------------------------------
-----------
%------------------------\AtBeginSubsection[]-----------------------------
-----------------------------
\AtBeginSubsection[]
{
\begin{frame}<beamer>{Outline}
\thispagestyle{empty}
\transsplitverticalout
\tableofcontents[currentsection,currentsubsection]
\end{frame}
\addtocounter{framenumber}{-1}% If you don't want them to affect the
slide
number
}
%------------------------------------------------------------------------
-------
---
%%%%%%%%%%%%%%\mode%%%%%%%%%%%%%%%%%%
\mode<presentation>
\usetheme{Madrid}
%%%------------------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=.7\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}}%
\vskip0pt%
}
%%%%%astuces%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setbeamertemplate{navigation symbols}{} % supprimer trace de la sourie
%\beamertemplateboldcenterframetitle % le titre des frame centré
%\setbeamertemplate{headline}{} % supprimer le headline
%%%%%%newcommand%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%------------------------------------------------
\definecolor{studentbrown}{RGB}{124,71,50}
\BeforeBeginEnvironment{lemma}{%
\setbeamercolor{block title}{fg=white,bg=studentbrown}
\setbeamercolor{block body}{fg=black, bg=studentbrown!20!white}
}
\AfterEndEnvironment{lemma}{
\setbeamercolor{block title}
{use=structure,fg=white,bg=structure.fg!75!black}
\setbeamercolor{block body}{parent=normal text,use=block
title,bg=block
title.bg!10!bg}
}
%------------------------------------------------
\BeforeBeginEnvironment{corollary}{
\setbeamercolor{block title}{fg=black,bg=orange!50!white}
\setbeamercolor{block body}{fg=black, bg=orange!30!white}
}
\AfterEndEnvironment{corollary}{
\setbeamercolor{block title}
{use=structure,fg=structure.fg,bg=structure.fg!20!bg}
\setbeamercolor{block body}{parent=normal text,use=block title,bg=block
title.bg!50!bg, fg=black}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Begin document
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
%%%%%%%%%%%%%%%%%%
\title[The essential numerical range and the Olsen problem]{The
essential
numerical range and the Olsen problem} %\emph{}
\author[{Student} (University of ....)]{Student}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}
当我编译时,我获得
但我想获得
答案1
您可以使用以下方式更改脚注的颜色
\setbeamercolor{author in head/foot}{bg=black}
\setbeamercolor{title in head/foot}{bg=blue}
其他一些评论:
如果你的评论中有换行符必须在每行前面加一个 %。有些换行符会导致编译错误,有些换行符会导致幻灯片输出不正确
\thispagestyle{empty}
不是很具有光束效果,我会改用plain
框架选项。同理
\addtocounter{framenumber}{-1}
,也可以用noframenumbering
。最好先使用
\title
和,然后您将获得合理的 pdf 元信息。\author
\begin{document}
\documentclass[xcolor=dvipsnames]{beamer}
\usecolortheme[named=blue]{structure}
%------------------------\AtBeginSubsection[]----------------------
\AtBeginSubsection[]{
\begin{frame}<beamer>[noframenumbering,plain]{Outline}
\transsplitverticalout
\tableofcontents[currentsection,currentsubsection]
\end{frame}
}
\usetheme{Madrid}
%-----------------------------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=.7\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}%
}%
\vskip0pt%
}
\setbeamercolor{author in head/foot}{bg=black}
\setbeamercolor{title in head/foot}{bg=blue}
\title[The essential numerical range and the Olsen problem]{The
essential numerical range and the Olsen problem}
\author[{Student} (University of ....)]{Student}
\begin{document}
\begin{frame}
\end{frame}
\end{document}