2015-06-14 20:11:54 +02:00
|
|
|
% \iffalse meta-comment
|
2014-09-22 17:10:05 +02:00
|
|
|
%
|
2015-06-14 20:11:54 +02:00
|
|
|
% Copyright (C) 2015 by Matthias Vogelgesang <matthias.vogelgesang@gmail.com>
|
|
|
|
% ---------------------------------------------------------------------------
|
2014-09-22 17:10:05 +02:00
|
|
|
% Licensed under CC-BY-SA 4.0 International.
|
|
|
|
%
|
2015-06-14 20:11:54 +02:00
|
|
|
% The initial template comes from the HSRM beamer theme by Benjamin Weiss,
|
|
|
|
% which you can find at https://github.com/benjamin-weiss/hsrmbeamertheme.
|
|
|
|
% ---------------------------------------------------------------------------
|
|
|
|
%
|
2015-06-14 22:33:07 +02:00
|
|
|
% The Current Maintainer of this work is Matthias Vogelgesang.
|
2015-06-14 20:11:54 +02:00
|
|
|
%
|
|
|
|
% This work consists of the files beamercolorthememetropolis.dtx and
|
|
|
|
% beamercolorthememetropolis.ins and the derived filebase
|
|
|
|
% beamercolorthememetropolis.sty.
|
|
|
|
%
|
|
|
|
% \fi
|
|
|
|
%
|
|
|
|
% \iffalse
|
|
|
|
%<*driver>
|
|
|
|
\ProvidesFile{beamercolorthememetropolis.dtx}
|
|
|
|
%</driver>
|
|
|
|
%<package>\NeedsTeXFormat{LaTeX2e}
|
|
|
|
%<package>\ProvidesPackage{beamercolorthememetropolis}
|
|
|
|
%<*package>
|
|
|
|
[2015/06/12 1.0.0 A Modern Beamer Color Theme]
|
|
|
|
%</package>
|
|
|
|
%
|
|
|
|
%<*driver>
|
|
|
|
\documentclass{ltxdoc}
|
|
|
|
\usepackage{beamercolorthememetropolis}
|
|
|
|
\EnableCrossrefs
|
|
|
|
\CodelineIndex
|
|
|
|
\RecordChanges
|
|
|
|
\begin{document}
|
|
|
|
\DocInput{beamercolorthememetropolis.dtx}
|
|
|
|
\PrintChanges
|
|
|
|
\PrintIndex
|
|
|
|
\end{document}
|
|
|
|
%</driver>
|
|
|
|
% \fi
|
|
|
|
%
|
|
|
|
% \CheckSum{0}
|
|
|
|
%
|
|
|
|
% \CharacterTable
|
|
|
|
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
|
|
|
|
% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
|
|
|
|
% Digits \0\1\2\3\4\5\6\7\8\9
|
|
|
|
% Exclamation \! Double quote \" Hash (number) \#
|
|
|
|
% Dollar \$ Percent \% Ampersand \&
|
|
|
|
% Acute accent \' Left paren \( Right paren \)
|
|
|
|
% Asterisk \* Plus \+ Comma \,
|
|
|
|
% Minus \- Point \. Solidus \/
|
|
|
|
% Colon \: Semicolon \; Less than \<
|
|
|
|
% Equals \= Greater than \> Question mark \?
|
|
|
|
% Commercial at \@ Left bracket \[ Backslash \\
|
|
|
|
% Right bracket \] Circumflex \^ Underscore \_
|
|
|
|
% Grave accent \` Left brace \{ Vertical bar \|
|
|
|
|
% Right brace \} Tilde \~}
|
|
|
|
%
|
|
|
|
%
|
|
|
|
% \changes{1.0.0}{2015/06/12}{Initial Stable Release.}
|
|
|
|
%
|
|
|
|
% \DoNotIndex{\newcommand,\newenvironment}
|
|
|
|
%
|
2014-09-22 17:10:05 +02:00
|
|
|
|
2015-06-14 20:11:54 +02:00
|
|
|
%
|
|
|
|
% \StopEventually{}
|
|
|
|
%
|
|
|
|
% \subsection{Color Theme}
|
|
|
|
%
|
|
|
|
% \iffalse
|
|
|
|
%<*package>
|
|
|
|
% \fi
|
|
|
|
%
|
2015-06-10 09:42:12 +02:00
|
|
|
% Options
|
2015-06-14 20:11:54 +02:00
|
|
|
%
|
|
|
|
% \begin{macrocode}
|
2015-01-29 05:13:06 +01:00
|
|
|
\newif\if@beamer@metropolis@blockbg
|
|
|
|
\@beamer@metropolis@blockbgfalse
|
2015-06-10 09:42:12 +02:00
|
|
|
\DeclareOptionBeamer{blockbg}{
|
|
|
|
\@beamer@metropolis@blockbgtrue
|
|
|
|
}
|
2015-06-14 20:11:54 +02:00
|
|
|
% \end{macrocode}
|
|
|
|
%
|
|
|
|
% Unknown option error handling
|
|
|
|
%
|
|
|
|
% \begin{macrocode}
|
2015-01-29 05:13:06 +01:00
|
|
|
\DeclareOptionBeamer*{%
|
|
|
|
\PackageWarning{beamercolorthememetropolis}{Unknown option `\CurrentOption'}%
|
|
|
|
}
|
|
|
|
\ProcessOptionsBeamer
|
2015-06-14 20:11:54 +02:00
|
|
|
% \end{macrocode}
|
2015-06-10 09:42:12 +02:00
|
|
|
%
|
2015-06-14 20:11:54 +02:00
|
|
|
% Colors
|
2015-06-10 09:42:12 +02:00
|
|
|
%
|
2015-06-14 20:11:54 +02:00
|
|
|
% \begin{macrocode}
|
2014-09-22 17:10:05 +02:00
|
|
|
\definecolor{mDarkBrown}{HTML}{604c38}
|
|
|
|
\definecolor{mDarkTeal}{HTML}{23373b}
|
|
|
|
\definecolor{mLightBrown}{HTML}{EB811B}
|
2015-06-10 17:32:27 +02:00
|
|
|
\definecolor{mLightGreen}{HTML}{14B03D}
|
2015-06-14 20:11:54 +02:00
|
|
|
% \end{macrocode}
|
2015-06-10 09:42:12 +02:00
|
|
|
%
|
2015-06-14 20:11:54 +02:00
|
|
|
% Base Colors
|
2015-06-10 09:42:12 +02:00
|
|
|
%
|
2015-06-14 20:11:54 +02:00
|
|
|
% \begin{macrocode}
|
2015-06-10 09:42:12 +02:00
|
|
|
\setbeamercolor{normal text}{%
|
|
|
|
fg=mDarkTeal,
|
|
|
|
bg=black!2
|
|
|
|
}
|
|
|
|
\setbeamercolor{alerted text}{%
|
|
|
|
fg=mLightBrown
|
|
|
|
}
|
2015-06-10 17:32:27 +02:00
|
|
|
\setbeamercolor{example text}{%
|
|
|
|
fg=mLightGreen
|
|
|
|
}
|
2015-06-14 20:11:54 +02:00
|
|
|
% \end{macrocode}
|
2015-06-11 00:01:00 +02:00
|
|
|
%
|
2015-06-14 20:11:54 +02:00
|
|
|
% Derived Colors
|
2015-06-11 00:01:00 +02:00
|
|
|
%
|
2015-06-14 20:11:54 +02:00
|
|
|
% \begin{macrocode}
|
2015-06-11 00:01:00 +02:00
|
|
|
\setbeamercolor{titlelike}{use=normal text, parent=normal text}
|
|
|
|
\setbeamercolor{structure}{%
|
|
|
|
fg=normal text.fg
|
2015-06-10 17:32:27 +02:00
|
|
|
}
|
2015-06-14 20:11:54 +02:00
|
|
|
% \end{macrocode}
|
|
|
|
%
|
|
|
|
% Frame titles and plain slides
|
|
|
|
%
|
|
|
|
% \begin{macrocode}
|
2015-06-11 00:01:00 +02:00
|
|
|
\setbeamercolor{frametitle}{use=palette primary, parent=palette primary}
|
2015-06-14 20:11:54 +02:00
|
|
|
% \end{macrocode}
|
|
|
|
%
|
|
|
|
% The “primary” palette should be used for the most important navigational
|
|
|
|
% elements, and possibly of other elements.
|
|
|
|
% The metropolis color theme uses it for frame titles and slides.
|
|
|
|
%
|
|
|
|
% \begin{macrocode}
|
2015-06-10 17:32:27 +02:00
|
|
|
\setbeamercolor{palette primary}{%
|
|
|
|
use=normal text,
|
|
|
|
fg=normal text.bg,
|
|
|
|
bg=normal text.fg
|
2015-06-10 09:42:12 +02:00
|
|
|
}
|
2015-06-14 20:11:54 +02:00
|
|
|
% \end{macrocode}
|
|
|
|
%
|
2015-06-11 00:01:00 +02:00
|
|
|
% Progress bar and title separator
|
2015-06-14 20:11:54 +02:00
|
|
|
%
|
|
|
|
% \begin{macrocode}
|
2015-06-11 00:01:00 +02:00
|
|
|
\setbeamercolor{title separator}{use=progress bar, parent=progress bar}
|
|
|
|
\setbeamercolor{progress bar}{%
|
|
|
|
use=alerted text,
|
|
|
|
fg=alerted text.fg,
|
|
|
|
bg=normal text.bg!50!fg
|
|
|
|
}
|
2015-06-14 20:11:54 +02:00
|
|
|
% \end{macrocode}
|
|
|
|
%
|
2015-06-11 00:01:00 +02:00
|
|
|
% Blocks
|
2015-06-14 20:11:54 +02:00
|
|
|
%
|
|
|
|
% \begin{macrocode}
|
2015-01-29 05:13:06 +01:00
|
|
|
\if@beamer@metropolis@blockbg
|
2015-06-10 09:42:12 +02:00
|
|
|
\setbeamercolor{block title}{%
|
|
|
|
use=normal text,
|
|
|
|
fg=normal text.fg,
|
|
|
|
bg=normal text.bg!80!fg
|
|
|
|
}
|
|
|
|
\else
|
|
|
|
\setbeamercolor{block title}{use=normal text, parent=normal text}
|
|
|
|
\fi
|
|
|
|
\setbeamercolor{block title alerted}{%
|
|
|
|
use={block title, alerted text},
|
|
|
|
bg=block title.bg,
|
|
|
|
fg=alerted text.fg
|
|
|
|
}
|
|
|
|
\setbeamercolor{block title example}{%
|
|
|
|
use={block title, example text},
|
|
|
|
bg=block title.bg,
|
|
|
|
fg=example text.fg
|
|
|
|
}
|
2015-06-11 00:01:00 +02:00
|
|
|
\setbeamercolor{block body alerted}{use=block body, parent=block body}
|
|
|
|
\setbeamercolor{block body example}{use=block body, parent=block body}
|
|
|
|
\setbeamercolor{block body}{
|
|
|
|
use={block title, normal text},
|
|
|
|
bg=block title.bg!50!normal text.bg
|
|
|
|
}
|
2015-06-14 20:11:54 +02:00
|
|
|
% \end{macrocode}
|
|
|
|
%
|
2015-06-11 00:01:00 +02:00
|
|
|
% Footnotes
|
2015-06-14 20:11:54 +02:00
|
|
|
%
|
|
|
|
% \begin{macrocode}
|
2015-06-11 00:01:00 +02:00
|
|
|
\setbeamercolor{footnote}{fg=normal text.fg!90}
|
|
|
|
\setbeamercolor{footnote mark}{fg=.}
|
2015-01-29 23:18:55 +01:00
|
|
|
\mode<all>
|
2015-06-14 20:11:54 +02:00
|
|
|
% \end{macrocode}
|
|
|
|
|
|
|
|
%
|
|
|
|
% \iffalse
|
|
|
|
%</package>
|
|
|
|
% \fi
|
|
|
|
%
|
|
|
|
% \Finale
|
|
|
|
\endinput
|