2014-09-19 15:05:08 +02:00
|
|
|
## Beamer mtheme
|
|
|
|
|
2014-09-22 12:09:38 +02:00
|
|
|
The *mtheme* is a Beamer theme with minimal visual. The core design principles
|
|
|
|
of the theme were described in a [blog post](http://bloerg.net/2014/09/20/a-modern-beamer-theme.html).
|
2015-06-02 08:29:48 +02:00
|
|
|
Not convinced? Have a look at the [demo slides](demo.pdf).
|
2014-09-19 15:05:08 +02:00
|
|
|
|
2015-05-21 12:11:02 +02:00
|
|
|
![Sample](http://i.imgur.com/Bxu52fz.png)
|
|
|
|
|
2014-09-19 15:05:08 +02:00
|
|
|
|
2014-12-03 16:40:21 +01:00
|
|
|
### Installation
|
2014-09-19 15:05:08 +02:00
|
|
|
|
2014-12-03 16:40:21 +01:00
|
|
|
To install the theme either run `make install` or copy the style files ending
|
|
|
|
with `.sty` to the source files of your presentation. As of now, fonts, colors
|
|
|
|
and the section indicator are hardcoded into the theme. For the demo you need
|
2014-09-19 15:05:08 +02:00
|
|
|
|
2014-12-03 16:40:21 +01:00
|
|
|
* XeLaTeX,
|
2015-04-28 20:57:00 +02:00
|
|
|
* the [Fira Sans](https://github.com/mozilla/Fira) and Mono font and
|
|
|
|
* TikZ.
|
2014-10-09 15:10:47 +02:00
|
|
|
|
2014-11-04 17:15:00 +01:00
|
|
|
Depending on the Linux distribution, the packaged name of Fira Sans might be
|
|
|
|
`Fira Sans OT` instead of `Fira Sans`. In that case, you may have to edit
|
2015-05-19 01:17:03 +02:00
|
|
|
`beamerfontthememetropolis.sty`. You may also need to install Fira Sans; see
|
2015-05-25 14:30:59 +02:00
|
|
|
the `contrib/` directory for more. Users of Debian or Ubuntu can also install
|
|
|
|
[this .deb package](https://launchpad.net/~edd/+archive/ubuntu/misc/+files/latex-mtheme_0.1.0vidid1_all.deb)
|
|
|
|
containing the theme files as well as the Fira Sans font files.
|
2014-11-04 17:15:00 +01:00
|
|
|
|
2015-06-02 08:29:48 +02:00
|
|
|
To build the demo slides run
|
|
|
|
|
|
|
|
$ make
|
2014-12-03 16:37:18 +01:00
|
|
|
|
2015-06-02 08:29:48 +02:00
|
|
|
in the top-level directory.
|
2014-12-01 22:37:51 +01:00
|
|
|
|
2015-06-02 08:29:48 +02:00
|
|
|
To use this theme with [Pandoc](http://johnmacfarlane.net/pandoc/)-based
|
|
|
|
presentations, you can run the following command
|
2014-12-03 16:37:18 +01:00
|
|
|
|
|
|
|
$ pandoc -t beamer --latex-engine=xelatex -V theme:m -o output.pdf input.md
|
|
|
|
|
|
|
|
|
|
|
|
### Customization
|
2014-10-31 16:03:56 +01:00
|
|
|
|
2014-12-03 16:37:18 +01:00
|
|
|
#### Package options
|
2014-10-04 02:54:38 +02:00
|
|
|
|
2015-06-11 00:01:00 +02:00
|
|
|
To use any of options below, call them when invoking *mtheme* in the preamble of
|
2015-06-02 08:29:48 +02:00
|
|
|
the slides, i.e.
|
2014-09-19 15:05:08 +02:00
|
|
|
|
2015-06-02 08:29:48 +02:00
|
|
|
```latex
|
2015-06-11 00:01:00 +02:00
|
|
|
\usetheme[<options>]{m}
|
2015-06-02 08:29:48 +02:00
|
|
|
```
|
2015-04-25 19:44:14 +02:00
|
|
|
|
2015-06-02 08:29:48 +02:00
|
|
|
* The `usetitleprogressbar` option adds a thin progress bar similar to the
|
|
|
|
section progress bar underneath *each* frame title
|
2014-10-09 15:10:47 +02:00
|
|
|
|
2015-06-02 08:29:48 +02:00
|
|
|
![Progressbar](http://i.imgur.com/4BXHU4K.png)
|
|
|
|
* In order to use `\cite`, `\ref` and similar commands in a frame title you have
|
|
|
|
to protect the title. This can be done automatically with the
|
|
|
|
`protectframetitle` option.
|
|
|
|
* The `blockbg` option defines extra colors used in defining the blocks. The
|
|
|
|
blocks then have a gray background similar to other beamer themes.
|
|
|
|
* By default, this package adds `\vspace{2em}` after the frametitle to center
|
|
|
|
content vertically 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.
|
|
|
|
* Option `usetotalslideindicator` creates slide numbering in lower right corner
|
|
|
|
in following format: #current/#total. By default, just current page number is
|
|
|
|
printed.
|
|
|
|
* Option `noslidenumbers` omits slide numbers entirely.
|
2015-06-15 13:44:06 +02:00
|
|
|
* Option `darkcolors` makes the background dark and the foreground light.
|
2015-05-31 02:42:37 +02:00
|
|
|
|
2015-06-11 00:01:00 +02:00
|
|
|
#### Color customization
|
|
|
|
|
|
|
|
The included `metropolis` color theme is used by default, but its colours can
|
|
|
|
be easily changed to suit your tastes. All of the theme's styles are defined
|
|
|
|
in terms of three beamer colors:
|
|
|
|
|
|
|
|
- `normal text` (dark fg, light bg)
|
|
|
|
- `alerted text` (colored fg, should be visible against dark or light)
|
|
|
|
- `example text` (colored fg, should be visible against dark or light)
|
|
|
|
|
|
|
|
An easy way to customize the theme is to redefine these colors using
|
|
|
|
|
|
|
|
```latex
|
|
|
|
\setbeamercolor{ ... }{ fg= ... , bg= ... }
|
|
|
|
```
|
|
|
|
|
|
|
|
in your preamble. For greater customization, you can redefine any of the other
|
|
|
|
colors in `beamercolorthememetropolis`, including `progress bar`.
|
|
|
|
|
2015-05-31 02:42:37 +02:00
|
|
|
|
2015-05-29 20:48:41 +02:00
|
|
|
#### 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`.
|
2015-05-21 12:11:02 +02:00
|
|
|
|
2015-05-31 02:42:37 +02:00
|
|
|
|
2015-01-30 01:03:10 +01:00
|
|
|
#### Commands
|
2014-10-09 15:10:47 +02:00
|
|
|
|
2015-01-30 01:03:10 +01:00
|
|
|
The `\plain{title=[]}{body}` command sets a slide in plain dark colors
|
|
|
|
which can be useful to focus attentation on a single image.
|
2014-10-09 15:10:47 +02:00
|
|
|
|
2014-10-31 16:03:56 +01:00
|
|
|
|
2014-12-03 16:37:18 +01:00
|
|
|
#### pgfplot styles
|
2014-10-17 08:40:25 +02:00
|
|
|
|
|
|
|
The beamer theme also contains pre-defined pgfplot styles. Use the `mlineplot`
|
|
|
|
key to plot line data and `mbarplot` or `horizontal mbarplot` to plot bar
|
|
|
|
charts.
|
|
|
|
|
2014-10-31 16:03:56 +01:00
|
|
|
![Charts](http://i.imgur.com/yuEqU3j.png)
|
|
|
|
|
2014-10-17 08:40:25 +02:00
|
|
|
|
2014-09-19 15:05:08 +02:00
|
|
|
### License
|
|
|
|
|
|
|
|
The theme itself is licensed under a [Creative Commons Attribution-ShareAlike
|
|
|
|
4.0 International License](http://creativecommons.org/licenses/by-sa/4.0/). This
|
|
|
|
means that if you change the theme and re-distribute it, you *must* retain the
|
|
|
|
copyright notice header and license it under the same CC-BY-SA license. This
|
|
|
|
does not affect the presentation that you create with the theme.
|