2014-09-19 13:05:08 +00:00
|
|
|
## Beamer mtheme
|
|
|
|
|
2014-09-22 10:09:38 +00: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).
|
|
|
|
Not convinced? Have a look at the [demo slides](demo.pdf).
|
2014-09-19 13:05:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
![Sample](http://i.imgur.com/wP4uGbS.png)
|
|
|
|
|
|
|
|
|
2014-12-03 15:40:21 +00:00
|
|
|
### Installation
|
2014-09-19 13:05:08 +00:00
|
|
|
|
2014-12-03 15:40:21 +00: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 13:05:08 +00:00
|
|
|
|
2014-12-03 15:40:21 +00:00
|
|
|
* XeLaTeX,
|
|
|
|
* the [Fira Sans](https://github.com/mozilla/Fira) font,
|
|
|
|
* TikZ and
|
|
|
|
* the Python package [Pygments](http://pygments.org/) that you can get with `pip
|
|
|
|
install pygments`.
|
2014-10-09 13:10:47 +00:00
|
|
|
|
2014-11-04 16:15:00 +00: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
|
|
|
|
`beamerfontthememetropolis.sty`.
|
|
|
|
|
2014-12-03 15:37:18 +00:00
|
|
|
|
2014-12-03 15:40:21 +00:00
|
|
|
### Usage
|
2014-12-01 21:37:51 +00:00
|
|
|
|
2014-12-03 15:40:21 +00:00
|
|
|
To build the demo slides just run `make` in the top-level directory. To use this
|
|
|
|
theme with [Pandoc](http://johnmacfarlane.net/pandoc/)-based presentations, you
|
|
|
|
can run the following command
|
2014-12-03 15:37:18 +00:00
|
|
|
|
|
|
|
$ pandoc -t beamer --latex-engine=xelatex -V theme:m -o output.pdf input.md
|
|
|
|
|
|
|
|
|
|
|
|
### Customization
|
2014-10-31 15:03:56 +00:00
|
|
|
|
2014-12-03 15:37:18 +00:00
|
|
|
#### Package options
|
2014-10-04 00:54:38 +00:00
|
|
|
|
2014-12-03 15:37:18 +00:00
|
|
|
The `titleprogressbar` option adds a thin progress bar similar to the section
|
|
|
|
progress bar underneath *each* frame title
|
2014-10-31 15:03:56 +00:00
|
|
|
|
|
|
|
![Progressbar](http://i.imgur.com/4BXHU4K.png)
|
2014-09-19 13:05:08 +00:00
|
|
|
|
2015-01-20 07:38:36 +00:00
|
|
|
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.
|
|
|
|
|
2014-10-09 13:10:47 +00:00
|
|
|
|
2014-12-03 15:37:18 +00:00
|
|
|
#### Commands
|
2014-10-09 13:10:47 +00:00
|
|
|
|
2014-12-03 15:37:18 +00: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 13:10:47 +00:00
|
|
|
|
|
|
|
|
2014-10-31 15:03:56 +00:00
|
|
|
|
2014-12-03 15:37:18 +00:00
|
|
|
#### pgfplot styles
|
2014-10-17 06:40:25 +00: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 15:03:56 +00:00
|
|
|
![Charts](http://i.imgur.com/yuEqU3j.png)
|
|
|
|
|
2014-10-17 06:40:25 +00:00
|
|
|
|
2014-09-19 13:05:08 +00: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.
|