mirror of https://github.com/matze/mtheme.git
Merge pull request #45 from Schwefelsaeure/master
Add three options: usesmallcapitalsintitle, usesectionslide and nototals...
This commit is contained in:
commit
e4b48b1dce
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
|
||||
`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
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
\setbeamerfont{block title alerted}{family=\Book,size=\normalsize}
|
||||
|
||||
\setbeamerfont{subtitle}{family=\Light, size=\fontsize{12}{14}}
|
||||
\setbeamerfont{frametitle}{family=\Book, series=\scshape, size=\large}
|
||||
\setbeamerfont{frametitle}{family=\Book, size=\large}
|
||||
|
||||
\setbeamerfont{caption}{size=\small}
|
||||
\setbeamerfont{caption name}{family=\Book}
|
||||
|
|
|
@ -13,9 +13,15 @@
|
|||
|
||||
\newif\if@useTitleProgressBar
|
||||
\newif\if@protectFrameTitle
|
||||
\newif\if@noSmallCapitals
|
||||
\newif\if@noSectionSlide
|
||||
\newif\if@useTotalSlideIndicator
|
||||
|
||||
\@useTitleProgressBarfalse
|
||||
\@protectFrameTitlefalse
|
||||
\@noSmallCapitalsfalse
|
||||
\@noSectionSlidefalse
|
||||
\@useTotalSlideIndicatorfalse
|
||||
|
||||
\newlength{\@mtheme@voffset}
|
||||
\setlength{\@mtheme@voffset}{2em}
|
||||
|
@ -31,6 +37,10 @@
|
|||
\PackageWarning{beamerthemem}{Unknown option `\CurrentOption'}%
|
||||
}
|
||||
|
||||
\DeclareOptionBeamer{nosmallcapitals}{\@noSmallCapitalstrue}
|
||||
\DeclareOptionBeamer{nosectionslide}{\@noSectionSlidetrue}
|
||||
\DeclareOptionBeamer{usetotalslideindicator}{\@useTotalSlideIndicatortrue}
|
||||
|
||||
\ProcessOptionsBeamer
|
||||
|
||||
%}}}
|
||||
|
@ -76,7 +86,11 @@
|
|||
\vfill
|
||||
\ifx\inserttitle\@empty%
|
||||
\else%
|
||||
\if@noSmallCapitals%
|
||||
{\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}
|
||||
\fi%
|
||||
\ifx\insertsubtitle\@empty%
|
||||
|
@ -173,8 +187,12 @@
|
|||
|
||||
\newcommand{\insertsectionHEAD}{%
|
||||
\expandafter\insertsectionHEADaux\insertsectionhead}
|
||||
\newcommand{\insertsectionHEADaux}[3]{\textsc{\MakeLowercase{#3}}
|
||||
}
|
||||
|
||||
\if@noSmallCapitals%
|
||||
\newcommand{\insertsectionHEADaux}[3]{#3}%
|
||||
\else%
|
||||
\newcommand{\insertsectionHEADaux}[3]{\textsc{\MakeLowercase{#3}}}%
|
||||
\fi%
|
||||
|
||||
\newcommand{\plain}[2][]{%
|
||||
\begingroup
|
||||
|
@ -208,6 +226,8 @@
|
|||
% Insert frame with section title at every section start
|
||||
\AtBeginSection[]
|
||||
{
|
||||
\if@noSectionSlide%
|
||||
\else%
|
||||
\begingroup
|
||||
\setbeamercolor{background canvas}{parent=palette primary}
|
||||
\begin{frame}[plain]
|
||||
|
@ -215,6 +235,7 @@
|
|||
\progressbar@sectionprogressbar%
|
||||
\end{frame}
|
||||
\endgroup
|
||||
\fi%
|
||||
}
|
||||
|
||||
%}}}
|
||||
|
@ -231,7 +252,11 @@
|
|||
{%
|
||||
\begin{beamercolorbox}[wd=\textwidth,ht=3ex,dp=3ex,leftskip=0.3cm,rightskip=0.3cm]{structure}%
|
||||
\hfill\usebeamerfont{page number in head/foot}%
|
||||
\insertframenumber%
|
||||
\if@useTotalSlideIndicator%
|
||||
\insertpagenumber/\insertpresentationendpage%
|
||||
\else%
|
||||
\insertpagenumber%
|
||||
\fi%
|
||||
\end{beamercolorbox}%
|
||||
}
|
||||
|
||||
|
@ -248,11 +273,21 @@
|
|||
\setbeamertemplate{frametitle}{%
|
||||
\nointerlineskip
|
||||
\begin{beamercolorbox}[wd=\paperwidth,leftskip=0.3cm,rightskip=0.3cm,ht=2.5ex,dp=1.5ex]{frametitle}
|
||||
\if@protectFrameTitle
|
||||
\usebeamerfont{frametitle}\MakeLowercase{\protect\insertframetitle}%
|
||||
\else
|
||||
\usebeamerfont{frametitle}\MakeLowercase{\insertframetitle}%
|
||||
\fi
|
||||
\usebeamerfont{frametitle}%
|
||||
\if@protectFrameTitle%
|
||||
\protect%
|
||||
\if@noSmallCapitals%
|
||||
\insertframetitle%
|
||||
\else%
|
||||
\textsc{\MakeLowercase{\insertframetitle}}%
|
||||
\fi%
|
||||
\else%
|
||||
\if@noSmallCapitals%
|
||||
\insertframetitle%
|
||||
\else%
|
||||
\textsc{\MakeLowercase{\insertframetitle}}%
|
||||
\fi%
|
||||
\fi%
|
||||
\end{beamercolorbox}%
|
||||
\if@useTitleProgressBar
|
||||
\vspace{-.5em}
|
||||
|
|
Loading…
Reference in New Issue