1
0
mirror of https://github.com/matze/mtheme.git synced 2024-06-25 07:27:45 +02:00

Merge pull request #58 from rchurchley/unlowercase

Remove MakeLowercase
This commit is contained in:
Matthias Vogelgesang 2015-06-01 08:09:40 +02:00
commit a63f45b822
2 changed files with 23 additions and 28 deletions

View File

@ -61,13 +61,26 @@ 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.
#### Title formatting
The main title, section titles, and frame titles are all formatted according
to the custom command `\mthemetitleformat`. By default, this is equivalent to
`scshape` and sets the titles in small capitals, but you can change it in your
preamble. For example:
```latex
\renewcommand{\mthemetitleformat}{} % no small capitals
\renewcommand{\mthemetitleformat}{\scshape\MakeLowercase} % all small capitals
\renewcommand{\mthemetitleformat}{\MakeUppercase} % all capitals
```
Note that `\MakeLowercase` and `\MakeUppercase` can have unexpected behaviour
in math mode, are disabled when `protectframetitle` is used, and cause crashes
when an unprotected frametitle appears on a slide with `allowframebreaks`.
#### Commands

View File

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