mirror of https://github.com/matze/mtheme.git
Finish name change to metropolis
Attention: this breaks the theme loading that is described all over the internet by now.
This commit is contained in:
parent
e68a93855c
commit
e84a7adeff
2
Makefile
2
Makefile
|
@ -1,4 +1,4 @@
|
||||||
INS = source/beamerthemem.ins
|
INS = source/beamerthememetropolis.ins
|
||||||
PACKAGE_SRC = $(wildcard source/*.dtx)
|
PACKAGE_SRC = $(wildcard source/*.dtx)
|
||||||
PACKAGE_STY = $(notdir $(PACKAGE_SRC:%.dtx=%.sty))
|
PACKAGE_STY = $(notdir $(PACKAGE_SRC:%.dtx=%.sty))
|
||||||
DEMO_SRC = demo/demo.tex demo/demo.bib
|
DEMO_SRC = demo/demo.tex demo/demo.bib
|
||||||
|
|
19
README.md
19
README.md
|
@ -1,6 +1,12 @@
|
||||||
## Metropolis
|
## Metropolis
|
||||||
|
|
||||||
Metropolis is a simple, modern Beamer theme suitable for anyone to use. It tries to minimize noise and maximize space for content; the only visual flourish it offers is an (optional) progress bar added to each slide. The core design principles of the theme were described in a blog post [here](http://bloerg.net/2014/09/20/a-modern-beamer-theme.html).
|
**NOTICE: The package name changed from *m* to *metropolis*!**
|
||||||
|
|
||||||
|
Metropolis is a simple, modern Beamer theme suitable for anyone to use. It tries
|
||||||
|
to minimize noise and maximize space for content; the only visual flourish it
|
||||||
|
offers is an (optional) progress bar added to each slide. The core design
|
||||||
|
principles of the theme were described in a blog post
|
||||||
|
[here](http://bloerg.net/2014/09/20/a-modern-beamer-theme.html).
|
||||||
|
|
||||||
Not convinced? Have a look at the [demo slides](demo/demo.pdf).
|
Not convinced? Have a look at the [demo slides](demo/demo.pdf).
|
||||||
|
|
||||||
|
@ -24,11 +30,12 @@ Installing Metropolis, like any Beamer theme, involves four easy steps:
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
The following code shows a minimal example of a Beamer presentation using Metropolis.
|
The following code shows a minimal example of a Beamer presentation using
|
||||||
|
Metropolis.
|
||||||
|
|
||||||
```latex
|
```latex
|
||||||
\documentclass{beamer}
|
\documentclass{beamer}
|
||||||
\usetheme{m} % Use metropolis theme
|
\usetheme{metropolis} % Use metropolis theme
|
||||||
\title{A minimal example}
|
\title{A minimal example}
|
||||||
\date{\today}
|
\date{\today}
|
||||||
\author{Matthias Vogelgesang}
|
\author{Matthias Vogelgesang}
|
||||||
|
@ -47,4 +54,8 @@ Detailed information on using Metropolis can be found in the [manual](doc/metrop
|
||||||
|
|
||||||
## License
|
## 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.
|
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.
|
||||||
|
|
BIN
demo/demo.pdf
BIN
demo/demo.pdf
Binary file not shown.
|
@ -1,6 +1,6 @@
|
||||||
\documentclass[10pt]{beamer}
|
\documentclass[10pt]{beamer}
|
||||||
|
|
||||||
\usetheme{m}
|
\usetheme{metropolis}
|
||||||
|
|
||||||
\usepackage{booktabs}
|
\usepackage{booktabs}
|
||||||
\usepackage[scale=2]{ccicons}
|
\usepackage[scale=2]{ccicons}
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
Enable the theme by loading
|
Enable the theme by loading
|
||||||
|
|
||||||
\begin{verbatim} \documentclass{beamer}
|
\begin{verbatim} \documentclass{beamer}
|
||||||
\usetheme{m}\end{verbatim}
|
\usetheme{metropolis}\end{verbatim}
|
||||||
|
|
||||||
Note, that you have to have Mozilla's \emph{Fira Sans} font and XeTeX
|
Note, that you have to have Mozilla's \emph{Fira Sans} font and XeTeX
|
||||||
installed to enjoy this wonderful typography.
|
installed to enjoy this wonderful typography.
|
||||||
|
|
|
@ -143,7 +143,7 @@
|
||||||
|
|
||||||
\newcommand{\themename}{\textbf{\textsc{metropolis}}\xspace}
|
\newcommand{\themename}{\textbf{\textsc{metropolis}}\xspace}
|
||||||
|
|
||||||
\GetFileInfo{beamerthemem.dtx}
|
\GetFileInfo{beamerthememetropolis.dtx}
|
||||||
\title{Modern Beamer Presentations with the \themename{} package}
|
\title{Modern Beamer Presentations with the \themename{} package}
|
||||||
\author{Matthias Vogelgesang \\ \url{matthias.vogelgesang@gmail.com}}
|
\author{Matthias Vogelgesang \\ \url{matthias.vogelgesang@gmail.com}}
|
||||||
\date{v0.x.x}
|
\date{v0.x.x}
|
||||||
|
@ -247,7 +247,7 @@ The following code shows a minimal example of a Beamer presentation using \theme
|
||||||
|
|
||||||
\begin{lstlisting}
|
\begin{lstlisting}
|
||||||
\documentclass{beamer}
|
\documentclass{beamer}
|
||||||
\usetheme{m} % Use metropolis theme
|
\usetheme{metropolis} % Use metropolis theme
|
||||||
\title{A minimal example}
|
\title{A minimal example}
|
||||||
\date{\today}
|
\date{\today}
|
||||||
\author{Matthias Vogelgesang}
|
\author{Matthias Vogelgesang}
|
||||||
|
@ -292,9 +292,9 @@ $ pandoc -t beamer --latex-engine=xelatex -V theme:m -o output.pdf input.md
|
||||||
The theme provides a number of options. The options use a key=value interface.
|
The theme provides a number of options. The options use a key=value interface.
|
||||||
So every option is controlled by a key its value. To use an option you can
|
So every option is controlled by a key its value. To use an option you can
|
||||||
either provide a comma separated list of options when invoking
|
either provide a comma separated list of options when invoking
|
||||||
\textsc{mtheme} in the preamble of the presentation.
|
\textsc{metropolis} in the preamble of the presentation.
|
||||||
\begin{lstlisting}
|
\begin{lstlisting}
|
||||||
\usetheme[<key=value list>]{m}
|
\usetheme[<key=value list>]{metropolis}
|
||||||
\end{lstlisting}
|
\end{lstlisting}
|
||||||
Or you can set them at any time with the |\metroset| macro.
|
Or you can set them at any time with the |\metroset| macro.
|
||||||
\begin{lstlisting}
|
\begin{lstlisting}
|
||||||
|
@ -451,7 +451,7 @@ presentation that you create with the theme.
|
||||||
|
|
||||||
\section{Implementation}
|
\section{Implementation}
|
||||||
|
|
||||||
\DocInput{beamerthemem.dtx}
|
\DocInput{beamerthememetropolis.dtx}
|
||||||
\DocInput{beamerinnerthememetropolis.dtx}
|
\DocInput{beamerinnerthememetropolis.dtx}
|
||||||
\DocInput{beamerouterthememetropolis.dtx}
|
\DocInput{beamerouterthememetropolis.dtx}
|
||||||
\DocInput{beamerfontthememetropolis.dtx}
|
\DocInput{beamerfontthememetropolis.dtx}
|
||||||
|
|
Binary file not shown.
|
@ -99,7 +99,7 @@
|
||||||
Fira Sans Italic OT}{%
|
Fira Sans Italic OT}{%
|
||||||
\setsansfont[BoldFont={Fira Sans OT}]{Fira Sans Light OT}%
|
\setsansfont[BoldFont={Fira Sans OT}]{Fira Sans Light OT}%
|
||||||
}{%
|
}{%
|
||||||
\PackageWarning{beamerthemem}{%
|
\PackageWarning{beamerthememetropolis}{%
|
||||||
Could not find Fira Sans fonts.%
|
Could not find Fira Sans fonts.%
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -110,7 +110,7 @@
|
||||||
\iffontsexist{Fira Mono OT, Fira Mono Bold OT}{%
|
\iffontsexist{Fira Mono OT, Fira Mono Bold OT}{%
|
||||||
\setmonofont{Fira Mono OT}%
|
\setmonofont{Fira Mono OT}%
|
||||||
}{%
|
}{%
|
||||||
\PackageWarning{beamerthemem}{%
|
\PackageWarning{beamerthememetropolis}{%
|
||||||
Could not find Fira Mono fonts.%
|
Could not find Fira Mono fonts.%
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -119,7 +119,7 @@
|
||||||
\addfontfeature{Numbers={Monospaced}}%
|
\addfontfeature{Numbers={Monospaced}}%
|
||||||
}
|
}
|
||||||
}{%
|
}{%
|
||||||
\PackageWarning{beamerthemem}{%
|
\PackageWarning{beamerthememetropolis}{%
|
||||||
You need to compile with XeLaTeX or LuaLaTeX to use the Fira fonts.%
|
You need to compile with XeLaTeX or LuaLaTeX to use the Fira fonts.%
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,15 +10,15 @@
|
||||||
% International License (https://creativecommons.org/licenses/by-sa/4.0/).
|
% International License (https://creativecommons.org/licenses/by-sa/4.0/).
|
||||||
% ------------------------------------------------------------------------- \fi
|
% ------------------------------------------------------------------------- \fi
|
||||||
% \iffalse
|
% \iffalse
|
||||||
%<driver> \ProvidesFile{beamerthemem.dtx}
|
%<driver> \ProvidesFile{beamerthememetropolis.dtx}
|
||||||
%<*package>
|
%<*package>
|
||||||
\NeedsTeXFormat{LaTeX2e}
|
\NeedsTeXFormat{LaTeX2e}
|
||||||
\ProvidesPackage{beamerthemem}[2015/06/12 Metropolis Beamer theme]
|
\ProvidesPackage{beamerthemem}[2015/06/12 Metropolis Beamer theme]
|
||||||
%</package>
|
%</package>
|
||||||
%<driver> \documentclass{ltxdoc}
|
%<driver> \documentclass{ltxdoc}
|
||||||
%<driver> \usepackage{beamerthemem}
|
%<driver> \usepackage{beamerthememetropolis}
|
||||||
%<driver> \begin{document}
|
%<driver> \begin{document}
|
||||||
%<driver> \DocInput{beamerthemem.dtx}
|
%<driver> \DocInput{beamerthememetropolis.dtx}
|
||||||
%<driver> \end{document}
|
%<driver> \end{document}
|
||||||
% \fi
|
% \fi
|
||||||
% \CheckSum{0}
|
% \CheckSum{0}
|
|
@ -29,8 +29,8 @@ International License (https://creativecommons.org/licenses/by-sa/4.0/).
|
||||||
---------------------------------------------------------------------------
|
---------------------------------------------------------------------------
|
||||||
\endpreamble
|
\endpreamble
|
||||||
|
|
||||||
\generate{\file{beamerthemem.sty}{%
|
\generate{\file{beamerthememetropolis.sty}{%
|
||||||
\from{beamerthemem.dtx}{package}}
|
\from{beamerthememetropolis.dtx}{package}}
|
||||||
}
|
}
|
||||||
\generate{\file{beamerinnerthememetropolis.sty}{%
|
\generate{\file{beamerinnerthememetropolis.sty}{%
|
||||||
\from{beamerinnerthememetropolis.dtx}{package}}
|
\from{beamerinnerthememetropolis.dtx}{package}}
|
||||||
|
@ -54,7 +54,7 @@ International License (https://creativecommons.org/licenses/by-sa/4.0/).
|
||||||
\Msg{* To finish the installation you have to move the following *}
|
\Msg{* To finish the installation you have to move the following *}
|
||||||
\Msg{* files into a directory searched by TeX: *}
|
\Msg{* files into a directory searched by TeX: *}
|
||||||
\Msg{* *}
|
\Msg{* *}
|
||||||
\Msg{* beamerthemem.sty *}
|
\Msg{* beamerthememetropolis.sty *}
|
||||||
\Msg{* beamerinnerthememetropolis.sty *}
|
\Msg{* beamerinnerthememetropolis.sty *}
|
||||||
\Msg{* beamerouterthememetropolis.sty *}
|
\Msg{* beamerouterthememetropolis.sty *}
|
||||||
\Msg{* beamerfontthememetropolis.sty *}
|
\Msg{* beamerfontthememetropolis.sty *}
|
Loading…
Reference in New Issue