Replace nosmallcapitals option
This commit is contained in:
parent
6eb3f881f3
commit
d8500a100f
|
@ -13,13 +13,11 @@
|
||||||
|
|
||||||
\newif\if@useTitleProgressBar
|
\newif\if@useTitleProgressBar
|
||||||
\newif\if@protectFrameTitle
|
\newif\if@protectFrameTitle
|
||||||
\newif\if@noSmallCapitals
|
|
||||||
\newif\if@noSectionSlide
|
\newif\if@noSectionSlide
|
||||||
\newif\if@useTotalSlideIndicator
|
\newif\if@useTotalSlideIndicator
|
||||||
|
|
||||||
\@useTitleProgressBarfalse
|
\@useTitleProgressBarfalse
|
||||||
\@protectFrameTitlefalse
|
\@protectFrameTitlefalse
|
||||||
\@noSmallCapitalsfalse
|
|
||||||
\@noSectionSlidefalse
|
\@noSectionSlidefalse
|
||||||
\@useTotalSlideIndicatorfalse
|
\@useTotalSlideIndicatorfalse
|
||||||
|
|
||||||
|
@ -37,7 +35,6 @@
|
||||||
\PackageWarning{beamerthemem}{Unknown option `\CurrentOption'}%
|
\PackageWarning{beamerthemem}{Unknown option `\CurrentOption'}%
|
||||||
}
|
}
|
||||||
|
|
||||||
\DeclareOptionBeamer{nosmallcapitals}{\@noSmallCapitalstrue}
|
|
||||||
\DeclareOptionBeamer{nosectionslide}{\@noSectionSlidetrue}
|
\DeclareOptionBeamer{nosectionslide}{\@noSectionSlidetrue}
|
||||||
\DeclareOptionBeamer{usetotalslideindicator}{\@useTotalSlideIndicatortrue}
|
\DeclareOptionBeamer{usetotalslideindicator}{\@useTotalSlideIndicatortrue}
|
||||||
|
|
||||||
|
@ -96,11 +93,7 @@
|
||||||
\linespread{1.0}%
|
\linespread{1.0}%
|
||||||
\usebeamerfont{title}%
|
\usebeamerfont{title}%
|
||||||
\usebeamercolor[fg]{title}%
|
\usebeamercolor[fg]{title}%
|
||||||
\if@noSmallCapitals%
|
\mthemetitleformat{\inserttitle}%
|
||||||
\inserttitle%
|
|
||||||
\else%
|
|
||||||
\scshape\mthemetitleformat{\inserttitle}%
|
|
||||||
\fi%
|
|
||||||
\vspace*{0.5em}
|
\vspace*{0.5em}
|
||||||
}}
|
}}
|
||||||
\fi
|
\fi
|
||||||
|
@ -178,20 +171,16 @@
|
||||||
\newcommand{\insertsectionHEAD}{%
|
\newcommand{\insertsectionHEAD}{%
|
||||||
\expandafter\insertsectionHEADaux\insertsectionhead}
|
\expandafter\insertsectionHEADaux\insertsectionhead}
|
||||||
|
|
||||||
\if@noSmallCapitals%
|
\newcommand{\insertsectionHEADaux}[3]{\mthemetitleformat{#3}}%
|
||||||
\newcommand{\insertsectionHEADaux}[3]{#3}%
|
|
||||||
\else%
|
|
||||||
\newcommand{\insertsectionHEADaux}[3]{\scshape \mthemetitleformat{#3}}%
|
|
||||||
\fi%
|
|
||||||
|
|
||||||
\def\mthemetitleformat#1{#1}
|
\def\mthemetitleformat#1{\scshape #1}
|
||||||
|
|
||||||
\newcommand{\plain}[2][]{%
|
\newcommand{\plain}[2][]{%
|
||||||
\begingroup
|
\begingroup
|
||||||
\setbeamercolor{background canvas}{use=palette primary,bg=palette primary.fg}
|
\setbeamercolor{background canvas}{use=palette primary,bg=palette primary.fg}
|
||||||
\begin{frame}{#1}
|
\begin{frame}{#1}
|
||||||
\centering
|
\centering
|
||||||
\vfill\vspace{1em}\usebeamerfont{section title}\textcolor{white}{\scshape \mthemetitleformat{#2}}\vfill
|
\vfill\vspace{1em}\usebeamerfont{section title}\textcolor{white}{\mthemetitleformat{#2}}\vfill
|
||||||
\end{frame}
|
\end{frame}
|
||||||
\endgroup
|
\endgroup
|
||||||
}
|
}
|
||||||
|
@ -281,18 +270,9 @@
|
||||||
\begin{beamercolorbox}[wd=\paperwidth,leftskip=0.3cm,rightskip=0.3cm,ht=2.5ex,dp=1.5ex]{frametitle}
|
\begin{beamercolorbox}[wd=\paperwidth,leftskip=0.3cm,rightskip=0.3cm,ht=2.5ex,dp=1.5ex]{frametitle}
|
||||||
\usebeamerfont{frametitle}%
|
\usebeamerfont{frametitle}%
|
||||||
\if@protectFrameTitle%
|
\if@protectFrameTitle%
|
||||||
\protect%
|
\mthemetitleformat{\protect\insertframetitle}%
|
||||||
\if@noSmallCapitals%
|
|
||||||
\insertframetitle%
|
|
||||||
\else%
|
|
||||||
\scshape\mthemetitleformat{\insertframetitle}%
|
|
||||||
\fi%
|
|
||||||
\else%
|
\else%
|
||||||
\if@noSmallCapitals%
|
\mthemetitleformat{\insertframetitle}%
|
||||||
\insertframetitle%
|
|
||||||
\else%
|
|
||||||
\scshape\mthemetitleformat{\insertframetitle}%
|
|
||||||
\fi%
|
|
||||||
\fi%
|
\fi%
|
||||||
\end{beamercolorbox}%
|
\end{beamercolorbox}%
|
||||||
\if@useTitleProgressBar
|
\if@useTitleProgressBar
|
||||||
|
|
Loading…
Reference in New Issue