Revised three options: usesmallcapitalsintitle, usesectionslide and nototalslides.
README.md: - Added explanation for these three options. beamerthemem: - Renamed all three options: * usesmallcapitalsintitle -> nosmallcapitals * usesectionslide -> nosectionslide * nototalslides -> usetotalslideindicator - Disabled all options by default. I.e., you have to enable them explicitly.
This commit is contained in:
parent
d74c3c7b7b
commit
ef61b7197e
10
README.md
10
README.md
|
@ -54,6 +54,16 @@ make content more centered on the frame. If using more content per
|
||||||
slide, this can be turned off at the package-level by passing the
|
slide, this can be turned off at the package-level by passing the
|
||||||
`nooffset` option.
|
`nooffset` option.
|
||||||
|
|
||||||
|
With option `nosectionslide`, no dedicated slide is produced when a new section
|
||||||
|
starts. By default when using the `\section` command, a slide is created with
|
||||||
|
just the title on it.
|
||||||
|
|
||||||
|
The `nosmallcapitals` option supresses the usage of small capitals on
|
||||||
|
title page, frame titles and dedicated section slides.
|
||||||
|
|
||||||
|
Option `usetotalslideindicator` creates slide numbering in lower right corner
|
||||||
|
in following format: #current/#total. By default, just current page number is
|
||||||
|
printed.
|
||||||
|
|
||||||
#### Commands
|
#### Commands
|
||||||
|
|
||||||
|
|
|
@ -13,15 +13,15 @@
|
||||||
|
|
||||||
\newif\if@useTitleProgressBar
|
\newif\if@useTitleProgressBar
|
||||||
\newif\if@protectFrameTitle
|
\newif\if@protectFrameTitle
|
||||||
\newif\if@useSmallCapitalsInTitle
|
\newif\if@noSmallCapitals
|
||||||
\newif\if@useSectionSlide
|
\newif\if@noSectionSlide
|
||||||
\newif\if@noTotalSlides
|
\newif\if@useTotalSlideIndicator
|
||||||
|
|
||||||
\@useTitleProgressBarfalse
|
\@useTitleProgressBarfalse
|
||||||
\@protectFrameTitlefalse
|
\@protectFrameTitlefalse
|
||||||
\@useSmallCapitalsInTitlefalse
|
\@noSmallCapitalsfalse
|
||||||
\@useSectionSlidefalse
|
\@noSectionSlidefalse
|
||||||
\@noTotalSlidesfalse
|
\@useTotalSlideIndicatorfalse
|
||||||
|
|
||||||
\newlength{\@mtheme@voffset}
|
\newlength{\@mtheme@voffset}
|
||||||
\setlength{\@mtheme@voffset}{2em}
|
\setlength{\@mtheme@voffset}{2em}
|
||||||
|
@ -37,9 +37,9 @@
|
||||||
\PackageWarning{beamerthemem}{Unknown option `\CurrentOption'}%
|
\PackageWarning{beamerthemem}{Unknown option `\CurrentOption'}%
|
||||||
}
|
}
|
||||||
|
|
||||||
\DeclareOptionBeamer{usesmallcapitalsintitle}{\@useSmallCapitalsInTitletrue}
|
\DeclareOptionBeamer{nosmallcapitals}{\@noSmallCapitalstrue}
|
||||||
\DeclareOptionBeamer{usesectionslide}{\@useSectionSlidetrue}
|
\DeclareOptionBeamer{nosectionslide}{\@noSectionSlidetrue}
|
||||||
\DeclareOptionBeamer{nototalslides}{\@noTotalSlidestrue}
|
\DeclareOptionBeamer{usetotalslideindicator}{\@useTotalSlideIndicatortrue}
|
||||||
|
|
||||||
\ProcessOptionsBeamer
|
\ProcessOptionsBeamer
|
||||||
|
|
||||||
|
@ -86,7 +86,11 @@
|
||||||
\vfill
|
\vfill
|
||||||
\ifx\inserttitle\@empty%
|
\ifx\inserttitle\@empty%
|
||||||
\else%
|
\else%
|
||||||
|
\if@noSmallCapitals%
|
||||||
{\raggedright\linespread{1.0}\usebeamerfont{title}\usebeamercolor[fg]{title}\inserttitle\par}%
|
{\raggedright\linespread{1.0}\usebeamerfont{title}\usebeamercolor[fg]{title}\inserttitle\par}%
|
||||||
|
\else%
|
||||||
|
{\raggedright\linespread{1.0}\usebeamerfont{title}\usebeamercolor[fg]{title}\scshape\MakeLowercase{\inserttitle}\par}%
|
||||||
|
\fi%
|
||||||
\vspace*{0.5em}
|
\vspace*{0.5em}
|
||||||
\fi%
|
\fi%
|
||||||
\ifx\insertsubtitle\@empty%
|
\ifx\insertsubtitle\@empty%
|
||||||
|
@ -183,11 +187,12 @@
|
||||||
|
|
||||||
\newcommand{\insertsectionHEAD}{%
|
\newcommand{\insertsectionHEAD}{%
|
||||||
\expandafter\insertsectionHEADaux\insertsectionhead}
|
\expandafter\insertsectionHEADaux\insertsectionhead}
|
||||||
\if@useSmallCapitalsInTitle
|
|
||||||
\newcommand{\insertsectionHEADaux}[3]{\textsc{\MakeLowercase{#3}}}
|
\if@noSmallCapitals%
|
||||||
\else
|
\newcommand{\insertsectionHEADaux}[3]{#3}%
|
||||||
\newcommand{\insertsectionHEADaux}[3]{#3}
|
\else%
|
||||||
\fi
|
\newcommand{\insertsectionHEADaux}[3]{\textsc{\MakeLowercase{#3}}}%
|
||||||
|
\fi%
|
||||||
|
|
||||||
\newcommand{\plain}[2][]{%
|
\newcommand{\plain}[2][]{%
|
||||||
\begingroup
|
\begingroup
|
||||||
|
@ -219,9 +224,10 @@
|
||||||
%{{{ --- Sections ---------------------
|
%{{{ --- Sections ---------------------
|
||||||
|
|
||||||
% Insert frame with section title at every section start
|
% Insert frame with section title at every section start
|
||||||
\if@useSectionSlide
|
|
||||||
\AtBeginSection[]
|
\AtBeginSection[]
|
||||||
{
|
{
|
||||||
|
\if@noSectionSlide%
|
||||||
|
\else%
|
||||||
\begingroup
|
\begingroup
|
||||||
\setbeamercolor{background canvas}{parent=palette primary}
|
\setbeamercolor{background canvas}{parent=palette primary}
|
||||||
\begin{frame}[plain]
|
\begin{frame}[plain]
|
||||||
|
@ -229,8 +235,8 @@
|
||||||
\progressbar@sectionprogressbar%
|
\progressbar@sectionprogressbar%
|
||||||
\end{frame}
|
\end{frame}
|
||||||
\endgroup
|
\endgroup
|
||||||
|
\fi%
|
||||||
}
|
}
|
||||||
\fi
|
|
||||||
|
|
||||||
%}}}
|
%}}}
|
||||||
%{{{ --- Captions ---------------------
|
%{{{ --- Captions ---------------------
|
||||||
|
@ -246,11 +252,11 @@
|
||||||
{%
|
{%
|
||||||
\begin{beamercolorbox}[wd=\textwidth,ht=3ex,dp=3ex,leftskip=0.3cm,rightskip=0.3cm]{structure}%
|
\begin{beamercolorbox}[wd=\textwidth,ht=3ex,dp=3ex,leftskip=0.3cm,rightskip=0.3cm]{structure}%
|
||||||
\hfill\usebeamerfont{page number in head/foot}%
|
\hfill\usebeamerfont{page number in head/foot}%
|
||||||
\if@noTotalSlides
|
\if@useTotalSlideIndicator%
|
||||||
\insertpagenumber%
|
|
||||||
\else
|
|
||||||
\insertpagenumber/\insertpresentationendpage%
|
\insertpagenumber/\insertpresentationendpage%
|
||||||
\fi
|
\else%
|
||||||
|
\insertpagenumber%
|
||||||
|
\fi%
|
||||||
\end{beamercolorbox}%
|
\end{beamercolorbox}%
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -267,11 +273,21 @@
|
||||||
\setbeamertemplate{frametitle}{%
|
\setbeamertemplate{frametitle}{%
|
||||||
\nointerlineskip
|
\nointerlineskip
|
||||||
\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}
|
||||||
\if@protectFrameTitle
|
\usebeamerfont{frametitle}%
|
||||||
\usebeamerfont{frametitle}\protect\insertframetitle%
|
\if@protectFrameTitle%
|
||||||
\else
|
\protect%
|
||||||
\usebeamerfont{frametitle}\insertframetitle%
|
\if@noSmallCapitals%
|
||||||
\fi
|
\insertframetitle%
|
||||||
|
\else%
|
||||||
|
\textsc{\MakeLowercase{\insertframetitle}}%
|
||||||
|
\fi%
|
||||||
|
\else%
|
||||||
|
\if@noSmallCapitals%
|
||||||
|
\insertframetitle%
|
||||||
|
\else%
|
||||||
|
\textsc{\MakeLowercase{\insertframetitle}}%
|
||||||
|
\fi%
|
||||||
|
\fi%
|
||||||
\end{beamercolorbox}%
|
\end{beamercolorbox}%
|
||||||
\if@useTitleProgressBar
|
\if@useTitleProgressBar
|
||||||
\vspace{-.5em}
|
\vspace{-.5em}
|
||||||
|
|
Loading…
Reference in New Issue