Skip to content

Instantly share code, notes, and snippets.

@bluenex
Created September 2, 2015 18:22
Show Gist options
  • Save bluenex/9fdd2ec5726937e477b3 to your computer and use it in GitHub Desktop.
Save bluenex/9fdd2ec5726937e477b3 to your computer and use it in GitHub Desktop.
The preparation in order to get mtheme works on my system.

Introduction

I'm now trying to move from MS Powerpoint to LaTeX Beamer, and thus I've found a theme on Github called mtheme (Metropolis package). It's somehow hard to use at first so that I write this Gist to remind myself when next time installation comes. The system for this setup is Mac OSX 10.10.5 with BasicTeX 2015.

Dependencies


LaTeX Packages Installation

Open TeX Live Utility and install the following packages:

  • pgfopts.sty
  • ccicons.sty
  • pgfplots.sty

mtheme Installation

  1. Clone mtheme repo.
  • In the cloned directory, check if any error raised by compiling demo.tex - this also compiles mtheme.dtx.
$ make
  • If there is any error appears, install them (mostly should be .sty).
  • Install theme by using $ make install command.

Create Slide

A minimal example:

\documentclass[10pt]{beamer}
\usetheme{m}                          % load mtheme
\title{A modern beamer theme}         % define title
\date{\today}                         % define date
\author{Matthias Vogelgesang}         % define author
\institute{Institute}                 % define institute
\begin{document}
\maketitle                            % create titlepage
\section{First Section}               % create section
\begin{frame}{First Frame}            % first frame
  Lorem ipsum dolor sit amet, ...
\end{frame}
\begin{frame}{Second Frame}           % second frame
  Lorem ipsum dolor sit amet, ...
\end{frame}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment