texlive[43031] Master/texmf-dist: beamertheme-metropolis (23jan17)
commits+karl at tug.org
commits+karl at tug.org
Mon Jan 23 23:18:56 CET 2017
Revision: 43031
http://tug.org/svn/texlive?view=revision&revision=43031
Author: karl
Date: 2017-01-23 23:18:55 +0100 (Mon, 23 Jan 2017)
Log Message:
-----------
beamertheme-metropolis (23jan17)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/beamertheme-metropolis/README.md
trunk/Master/texmf-dist/doc/latex/beamertheme-metropolis/demo.pdf
trunk/Master/texmf-dist/doc/latex/beamertheme-metropolis/demo.tex
trunk/Master/texmf-dist/doc/latex/beamertheme-metropolis/metropolistheme.pdf
trunk/Master/texmf-dist/source/latex/beamertheme-metropolis/beamercolorthememetropolis.dtx
trunk/Master/texmf-dist/source/latex/beamertheme-metropolis/beamerfontthememetropolis.dtx
trunk/Master/texmf-dist/source/latex/beamertheme-metropolis/beamerinnerthememetropolis.dtx
trunk/Master/texmf-dist/source/latex/beamertheme-metropolis/beamerouterthememetropolis.dtx
trunk/Master/texmf-dist/source/latex/beamertheme-metropolis/beamerthememetropolis.dtx
trunk/Master/texmf-dist/source/latex/beamertheme-metropolis/beamerthememetropolis.ins
trunk/Master/texmf-dist/source/latex/beamertheme-metropolis/metropolistheme.dtx
trunk/Master/texmf-dist/source/latex/beamertheme-metropolis/pgfplotsthemetol.dtx
trunk/Master/texmf-dist/tex/latex/beamertheme-metropolis/beamercolorthememetropolis.sty
trunk/Master/texmf-dist/tex/latex/beamertheme-metropolis/beamerfontthememetropolis.sty
trunk/Master/texmf-dist/tex/latex/beamertheme-metropolis/beamerinnerthememetropolis.sty
trunk/Master/texmf-dist/tex/latex/beamertheme-metropolis/beamerouterthememetropolis.sty
trunk/Master/texmf-dist/tex/latex/beamertheme-metropolis/beamerthememetropolis.sty
trunk/Master/texmf-dist/tex/latex/beamertheme-metropolis/pgfplotsthemetol.sty
Added Paths:
-----------
trunk/Master/texmf-dist/source/latex/beamertheme-metropolis/beamercolorthememetropolis-highcontrast.dtx
trunk/Master/texmf-dist/tex/latex/beamertheme-metropolis/beamercolorthememetropolis-highcontrast.sty
Modified: trunk/Master/texmf-dist/doc/latex/beamertheme-metropolis/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beamertheme-metropolis/README.md 2017-01-23 22:18:31 UTC (rev 43030)
+++ trunk/Master/texmf-dist/doc/latex/beamertheme-metropolis/README.md 2017-01-23 22:18:55 UTC (rev 43031)
@@ -66,7 +66,10 @@
Detailed information on using Metropolis can be found in the [manual][].
+For an alternative dark color theme, please have a look at Ross Churchley's
+excellent [owl](https://github.com/rchurchley/beamercolortheme-owl) theme.
+
## License
The theme itself is licensed under a [Creative Commons Attribution-ShareAlike
Modified: trunk/Master/texmf-dist/doc/latex/beamertheme-metropolis/demo.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/beamertheme-metropolis/demo.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beamertheme-metropolis/demo.tex 2017-01-23 22:18:31 UTC (rev 43030)
+++ trunk/Master/texmf-dist/doc/latex/beamertheme-metropolis/demo.tex 2017-01-23 22:18:55 UTC (rev 43031)
@@ -185,7 +185,7 @@
\begin{frame}{Tables}
\begin{table}
\caption{Largest cities in the world (source: Wikipedia)}
- \begin{tabular}{lr}
+ \begin{tabular}{@{} lr @{}}
\toprule
City & Population\\
\midrule
Modified: trunk/Master/texmf-dist/doc/latex/beamertheme-metropolis/metropolistheme.pdf
===================================================================
(Binary files differ)
Added: trunk/Master/texmf-dist/source/latex/beamertheme-metropolis/beamercolorthememetropolis-highcontrast.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/beamertheme-metropolis/beamercolorthememetropolis-highcontrast.dtx (rev 0)
+++ trunk/Master/texmf-dist/source/latex/beamertheme-metropolis/beamercolorthememetropolis-highcontrast.dtx 2017-01-23 22:18:55 UTC (rev 43031)
@@ -0,0 +1,48 @@
+% \iffalse meta-comment -------------------------------------------------------
+% Copyright 2015 Matthias Vogelgesang and the LaTeX community. A full list of
+% contributors can be found at
+%
+% https://github.com/matze/mtheme/graphs/contributors
+%
+% and the original template was based on the HSRM theme by Benjamin Weiss.
+%
+% This work is licensed under a Creative Commons Attribution-ShareAlike 4.0
+% International License (https://creativecommons.org/licenses/by-sa/4.0/).
+% ------------------------------------------------------------------------- \fi
+% \iffalse
+%<*package>
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{beamercolorthememetropolis-highcontrast}[2017/01/23 Metropolis color theme]
+%</package>
+% \fi
+% \CheckSum{0}
+% \StopEventually{}
+% \iffalse
+%<*package>
+% ------------------------------------------------------------------------- \fi
+%
+\usecolortheme{metropolis}
+
+\definecolor{mAlert}{HTML}{AD003D}
+\definecolor{mExample}{HTML}{005580}
+
+\setbeamercolor{normal text}{%
+ fg=black,
+ bg=white
+}
+\setbeamercolor{alerted text}{%
+ fg=mAlert,
+}
+\setbeamercolor{example text}{%
+ fg=mExample,
+}
+%
+% \begin{macrocode}
+\mode<all>
+% \end{macrocode}
+%
+% \iffalse
+%</package>
+% \fi
+% \Finale
+\endinput
Modified: trunk/Master/texmf-dist/source/latex/beamertheme-metropolis/beamercolorthememetropolis.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/beamertheme-metropolis/beamercolorthememetropolis.dtx 2017-01-23 22:18:31 UTC (rev 43030)
+++ trunk/Master/texmf-dist/source/latex/beamertheme-metropolis/beamercolorthememetropolis.dtx 2017-01-23 22:18:55 UTC (rev 43031)
@@ -12,7 +12,7 @@
% \iffalse
%<*package>
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{beamercolorthememetropolis}[2016/03/14 Metropolis color theme]
+\ProvidesPackage{beamercolorthememetropolis}[2017/01/23 Metropolis color theme]
%</package>
% \fi
% \CheckSum{0}
@@ -96,6 +96,7 @@
fg=black!2,
bg=mDarkTeal
}
+ \usebeamercolor[fg]{normal text}
}
\newcommand{\metropolis at colors@light}{
\setbeamercolor{normal text}{%
Modified: trunk/Master/texmf-dist/source/latex/beamertheme-metropolis/beamerfontthememetropolis.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/beamertheme-metropolis/beamerfontthememetropolis.dtx 2017-01-23 22:18:31 UTC (rev 43030)
+++ trunk/Master/texmf-dist/source/latex/beamertheme-metropolis/beamerfontthememetropolis.dtx 2017-01-23 22:18:55 UTC (rev 43031)
@@ -12,7 +12,7 @@
% \iffalse
%<*package>
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{beamerfontthememetropolis}[2016/03/14 Metropolis font theme]
+\ProvidesPackage{beamerfontthememetropolis}[2017/01/23 Metropolis font theme]
%</package>
% \fi
% \CheckSum{0}
@@ -45,7 +45,11 @@
%
% \begin{macrocode}
\ifboolexpr{bool {xetex} or bool {luatex}}{
- \RequirePackage[no-math]{fontspec}
+ \@ifpackageloaded{fontspec}{
+ \PassOptionsToPackage{no-math}{fontspec}
+ }{
+ \RequirePackage[no-math]{fontspec}
+ }
% \end{macrocode}
%
% \begin{macro}{\checkfont}
@@ -352,23 +356,49 @@
{\def\inserttitle{#2}}%
{\def\inserttitle{\metropolis at titleformat{#2}}}%
{}%
- {\PackageError{beamerfontthememetropolis}{Patching title failed}}
+ {\PackageError{beamerfontthememetropolis}{Patching title failed}\@ehc}
\patchcmd{\beamer at subtitle}%
{\def\insertsubtitle{#2}}%
{\def\insertsubtitle{\metropolis at subtitleformat{#2}}}%
{}%
- {\PackageError{beamerfontthememetropolis}{Patching subtitle failed}}
+ {\PackageError{beamerfontthememetropolis}{Patching subtitle failed}\@ehc}
\patchcmd{\sectionentry}
{\def\insertsectionhead{#2}}
{\def\insertsectionhead{\metropolis at sectiontitleformat{#2}}}
{}
- {\PackageError{beamerfontthememetropolis}{Patching section title failed}}
+ {\PackageError{beamerfontthememetropolis}{Patching section title failed}\@ehc}
+\@tempswafalse
\patchcmd{\beamer at section}
{\def\insertsectionhead{\hyperlink{Navigation\the\c at page}{#1}}}
{\def\insertsectionhead{\hyperlink{Navigation\the\c at page}{%
\metropolis at sectiontitleformat{#1}}}}
+ {\@tempswatrue}
{}
- {\PackageError{beamerfontthememetropolis}{Patching section title failed}}
+\patchcmd{\beamer at section}
+ {\protected at edef\insertsectionhead{\noexpand\hyperlink{Navigation\the\c at page}{#1}}}
+ {\protected at edef\insertsectionhead{\noexpand\hyperlink{Navigation\the\c at page}{%
+ \noexpand\metropolis at sectiontitleformat{#1}}}}
+ {\@tempswatrue}
+ {}
+\if at tempswa\else
+ \PackageError{beamerfontthememetropolis}{Patching section title failed}\@ehc
+\fi
+\@tempswafalse
+\patchcmd{\beamer at subsection}
+ {\def\insertsubsectionhead{\hyperlink{Navigation\the\c at page}{#1}}}
+ {\def\insertsubsectionhead{\hyperlink{Navigation\the\c at page}{%
+ \metropolis at sectiontitleformat{#1}}}}
+ {\@tempswatrue}
+ {}
+\patchcmd{\beamer at subsection}
+ {\protected at edef\insertsubsectionhead{\noexpand\hyperlink{Navigation\the\c at page}{#1}}}
+ {\protected at edef\insertsubsectionhead{\noexpand\hyperlink{Navigation\the\c at page}{%
+ \noexpand\metropolis at sectiontitleformat{#1}}}}
+ {\@tempswatrue}
+ {}
+\if at tempswa\else
+ \PackageError{beamerfontthememetropolis}{Patching section title failed}\@ehc
+\fi
% \end{macrocode}
%
% Similarly, to make the |\MakeLowercase| and |\MakeUppercase| macros work in
@@ -376,13 +406,13 @@
%
% \begin{macrocode}
\patchcmd{\beamer@@frametitle}
- {\beamer at ifempty{#2}{}{%
+ {{%
\gdef\insertframetitle{{#2\ifnum\beamer at autobreakcount>0\relax{}\space%
\usebeamertemplate*{frametitle continuation}\fi}}%
\gdef\beamer at frametitle{#2}%
\gdef\beamer at shortframetitle{#1}%
}}
- {\beamer at ifempty{#2}{}{%
+ {{%
\gdef\insertframetitle{{\metropolis at frametitleformat{#2}\ifnum%
\beamer at autobreakcount>0\relax{}\space%
\usebeamertemplate*{frametitle continuation}\fi}}%
@@ -390,7 +420,7 @@
\gdef\beamer at shortframetitle{#1}%
}}
{}
- {\PackageError{beamerfontthememetropolis}{Patching frame title failed}}
+ {\PackageError{beamerfontthememetropolis}{Patching frame title failed}\@ehc}
% \end{macrocode}
%
%
Modified: trunk/Master/texmf-dist/source/latex/beamertheme-metropolis/beamerinnerthememetropolis.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/beamertheme-metropolis/beamerinnerthememetropolis.dtx 2017-01-23 22:18:31 UTC (rev 43030)
+++ trunk/Master/texmf-dist/source/latex/beamertheme-metropolis/beamerinnerthememetropolis.dtx 2017-01-23 22:18:55 UTC (rev 43031)
@@ -12,7 +12,7 @@
% \iffalse
%<*package>
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{beamerinnerthememetropolis}[2016/03/14 Metropolis inner theme]
+\ProvidesPackage{beamerinnerthememetropolis}[2017/01/23 Metropolis inner theme]
%</package>
% \fi
% \CheckSum{0}
@@ -65,7 +65,7 @@
% \end{macrocode}
% \end{macro}
%
-% \begin{macro}{sectionpage}
+% \begin{macro}{subsectionpage}
% Optionally add a slide marking the beginning of each subsection.
% \begin{macrocode}
\pgfkeys{
@@ -184,6 +184,7 @@
% Set the subtitle on the title page.
% \begin{macrocode}
\setbeamertemplate{subtitle}{
+ \raggedright%
\insertsubtitle%
\par%
\vspace*{0.5em}
@@ -195,9 +196,11 @@
% Template to set the title graphic in a zero-height box. (It won't
% change the position of other elements.)
% \begin{macrocode}
+\newlength{\metropolis at titleseparator@linewidth}
+\setlength{\metropolis at titleseparator@linewidth}{0.4pt}
\setbeamertemplate{title separator}{
\begin{tikzpicture}
- \draw[fg, fill=fg] (0,0) rectangle (\textwidth, 0.4pt);
+ \fill[fg] (0,0) rectangle (\textwidth, \metropolis at titleseparator@linewidth);
\end{tikzpicture}%
\par%
}
@@ -251,10 +254,10 @@
\usebeamercolor[fg]{section title}
\usebeamerfont{section title}
\insertsectionhead\par
- \ifx\insertsubsection\@empty\else
+ \ifx\insertsubsectionhead\@empty\else
\usebeamercolor[fg]{subsection title}
\usebeamerfont{subsection title}
- \insertsubsection
+ \insertsubsectionhead
\fi
\end{center}
}
@@ -267,10 +270,10 @@
\insertsectionhead\\[-1ex]
\usebeamertemplate*{progress bar in section page}
\par
- \ifx\insertsubsection\@empty\else%
+ \ifx\insertsubsectionhead\@empty\else%
\usebeamercolor[fg]{subsection title}%
\usebeamerfont{subsection title}%
- \insertsubsection
+ \insertsubsectionhead
\fi
\end{minipage}
\par
@@ -327,13 +330,15 @@
%
% \begin{macrocode}
\newlength{\metropolis at progressonsectionpage}
+\newlength{\metropolis at progressonsectionpage@linewidth}
+\setlength{\metropolis at progressonsectionpage@linewidth}{0.4pt}
\setbeamertemplate{progress bar in section page}{
\setlength{\metropolis at progressonsectionpage}{%
\textwidth * \ratio{\insertframenumber pt}{\inserttotalframenumber pt}%
}%
\begin{tikzpicture}
- \draw[bg, fill=bg] (0,0) rectangle (\textwidth, 0.4pt);
- \draw[fg, fill=fg] (0,0) rectangle (\metropolis at progressonsectionpage, 0.4pt);
+ \fill[bg] (0,0) rectangle (\textwidth, \metropolis at progressonsectionpage@linewidth);
+ \fill[fg] (0,0) rectangle (\metropolis at progressonsectionpage, \metropolis at progressonsectionpage@linewidth);
\end{tikzpicture}%
}
% \end{macrocode}
Modified: trunk/Master/texmf-dist/source/latex/beamertheme-metropolis/beamerouterthememetropolis.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/beamertheme-metropolis/beamerouterthememetropolis.dtx 2017-01-23 22:18:31 UTC (rev 43030)
+++ trunk/Master/texmf-dist/source/latex/beamertheme-metropolis/beamerouterthememetropolis.dtx 2017-01-23 22:18:55 UTC (rev 43031)
@@ -12,7 +12,7 @@
% \iffalse
%<*package>
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{beamerouterthememetropolis}[2016/03/14 Metropolis outer theme]
+\ProvidesPackage{beamerouterthememetropolis}[2017/01/23 Metropolis outer theme]
%</package>
% \fi
% \CheckSum{0}
@@ -168,9 +168,16 @@
leftskip=\metropolis at frametitle@padding,%
rightskip=\metropolis at frametitle@padding,%
]{frametitle}%
- \metropolis at frametitlestrut@start\insertframetitle\metropolis at frametitlestrut@end%
+ \metropolis at frametitlestrut@start%
+ \insertframetitle%
+ \nolinebreak%
+ \metropolis at frametitlestrut@end%
\end{beamercolorbox}%
}
+\setbeamertemplate{frametitle continuation}{%
+ \usebeamerfont{frametitle}
+ \romannumeral \insertcontinuationcount
+}
% \end{macrocode}
% \end{macro}
%
@@ -180,6 +187,8 @@
% template |progress bar in section page|.
% \begin{macrocode}
\newlength{\metropolis at progressinheadfoot}
+\newlength{\metropolis at progressinheadfoot@linewidth}
+\setlength{\metropolis at progressinheadfoot@linewidth}{0.4pt}
\setbeamertemplate{progress bar in head/foot}{
\nointerlineskip
\setlength{\metropolis at progressinheadfoot}{%
@@ -187,8 +196,8 @@
}%
\begin{beamercolorbox}[wd=\paperwidth]{progress bar in head/foot}
\begin{tikzpicture}
- \draw[bg, fill=bg] (0,0) rectangle (\paperwidth, 0.4pt);
- \draw[fg, fill=fg] (0,0) rectangle (\metropolis at progressinheadfoot, 0.4pt);
+ \fill[bg] (0,0) rectangle (\paperwidth, \metropolis at progressinheadfoot@linewidth);
+ \fill[fg] (0,0) rectangle (\metropolis at progressinheadfoot, \metropolis at progressinheadfoot@linewidth);
\end{tikzpicture}%
\end{beamercolorbox}
}
Modified: trunk/Master/texmf-dist/source/latex/beamertheme-metropolis/beamerthememetropolis.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/beamertheme-metropolis/beamerthememetropolis.dtx 2017-01-23 22:18:31 UTC (rev 43030)
+++ trunk/Master/texmf-dist/source/latex/beamertheme-metropolis/beamerthememetropolis.dtx 2017-01-23 22:18:55 UTC (rev 43031)
@@ -13,7 +13,7 @@
%<*package>
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{beamerthememetropolis}
- [2016/03/14 v1.1 Metropolis Beamer theme]
+ [2017/01/23 v1.2 Metropolis Beamer theme]
%</package>
% \fi
% \CheckSum{0}
Modified: trunk/Master/texmf-dist/source/latex/beamertheme-metropolis/beamerthememetropolis.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/beamertheme-metropolis/beamerthememetropolis.ins 2017-01-23 22:18:31 UTC (rev 43030)
+++ trunk/Master/texmf-dist/source/latex/beamertheme-metropolis/beamerthememetropolis.ins 2017-01-23 22:18:55 UTC (rev 43031)
@@ -10,7 +10,7 @@
%% International License (https://creativecommons.org/licenses/by-sa/4.0/).
%% ---------------------------------------------------------------------------
-\input{docstrip.tex}
+\input docstrip.tex %
\keepsilent
\askforoverwritefalse
\usedir{tex/latex/mtheme}
@@ -44,6 +44,9 @@
\generate{\file{beamercolorthememetropolis.sty}{%
\from{beamercolorthememetropolis.dtx}{package}}
}
+\generate{\file{beamercolorthememetropolis-highcontrast.sty}{%
+ \from{beamercolorthememetropolis-highcontrast.dtx}{package}}
+ }
\generate{\file{pgfplotsthemetol.sty}{%
\from{pgfplotsthemetol.dtx}{package}}
}
Modified: trunk/Master/texmf-dist/source/latex/beamertheme-metropolis/metropolistheme.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/beamertheme-metropolis/metropolistheme.dtx 2017-01-23 22:18:31 UTC (rev 43030)
+++ trunk/Master/texmf-dist/source/latex/beamertheme-metropolis/metropolistheme.dtx 2017-01-23 22:18:55 UTC (rev 43031)
@@ -400,7 +400,7 @@
\DescribeMacro{titleformat title}
\DescribeMacro{titleformat subtitle}
-\DescribeMacro{titeformat section}
+\DescribeMacro{titleformat section}
\DescribeOption{titleformat frame}%
{regular, smallcaps, allsmallcaps, allcaps}%
{regular}{
@@ -630,6 +630,46 @@
\end{lstlisting}
+\subsection{Standout frames with labels}
+
+Because the |standout| frame option creates a group to restrict the colour
+change to a single slide, labels defined after calling |standout| will stay
+local to the group. In other words, the following may result in a ``label undefined'' error.
+
+\begin{lstlisting}
+\begin{frame}[standout, label=conclusion]{Conclusion}
+ Awesome slide
+\end{frame}
+\end{lstlisting}
+
+To fix this problem, change the order of the keys in the frame.
+
+\begin{lstlisting}
+\begin{frame}[label=conclusion, standout]{Conclusion}
+ Awesome slide
+\end{frame}
+\end{lstlisting}
+
+This error can be unwittingly triggered if you export your slides from Emacs
+Org mode, which automatically adds labels after frame options. Alex Branham
+\href{https://github.com/matze/mtheme/issues/203}{offers} the following
+solution for Org mode users, using |org-set-property|.
+
+\begin{lstlisting}
+* Start of a frame
+ :PROPERTIES:
+ :BEAMER_opt: label=conclusion,standout
+ :END:
+\end{lstlisting}
+
+
+\subsection{Standout frames with Pandoc}
+
+With Pandoc versions prior 1.17.2 it was not possible to create standout frames
+because Pandoc only supported a specific list of frame attributes thus ignoring
+additional attributes such as |{.standout}|.
+
+
\section{License}
\themename is licensed under a
Modified: trunk/Master/texmf-dist/source/latex/beamertheme-metropolis/pgfplotsthemetol.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/beamertheme-metropolis/pgfplotsthemetol.dtx 2017-01-23 22:18:31 UTC (rev 43030)
+++ trunk/Master/texmf-dist/source/latex/beamertheme-metropolis/pgfplotsthemetol.dtx 2017-01-23 22:18:55 UTC (rev 43031)
@@ -16,7 +16,7 @@
%<*package>
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{pgfplotsthemetol}
- [2016/03/14 PGFplots colors based on Paul Tol's SRON technical note]
+ [2017/01/23 PGFplots colors based on Paul Tol's SRON technical note]
%</package>
%<driver> \documentclass{ltxdoc}
%<driver> \usepackage{pgfplotsthemetol}
Added: trunk/Master/texmf-dist/tex/latex/beamertheme-metropolis/beamercolorthememetropolis-highcontrast.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/beamertheme-metropolis/beamercolorthememetropolis-highcontrast.sty (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/beamertheme-metropolis/beamercolorthememetropolis-highcontrast.sty 2017-01-23 22:18:55 UTC (rev 43031)
@@ -0,0 +1,39 @@
+%%
+%% This is file `beamercolorthememetropolis-highcontrast.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% beamercolorthememetropolis-highcontrast.dtx (with options: `package')
+%% ---------------------------------------------------------------------------
+%% Copyright 2015 Matthias Vogelgesang and the LaTeX community. A full list of
+%% contributors can be found at
+%%
+%% https://github.com/matze/mtheme/graphs/contributors
+%%
+%% and the original template was based on the HSRM theme by Benjamin Weiss.
+%%
+%% This work is licensed under a Creative Commons Attribution-ShareAlike 4.0
+%% International License (https://creativecommons.org/licenses/by-sa/4.0/).
+%% ---------------------------------------------------------------------------
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{beamercolorthememetropolis-highcontrast}[2017/01/23 Metropolis color theme]
+\usecolortheme{metropolis}
+
+\definecolor{mAlert}{HTML}{AD003D}
+\definecolor{mExample}{HTML}{005580}
+
+\setbeamercolor{normal text}{%
+ fg=black,
+ bg=white
+}
+\setbeamercolor{alerted text}{%
+ fg=mAlert,
+}
+\setbeamercolor{example text}{%
+ fg=mExample,
+}
+\mode<all>
+\endinput
+%%
+%% End of file `beamercolorthememetropolis-highcontrast.sty'.
Modified: trunk/Master/texmf-dist/tex/latex/beamertheme-metropolis/beamercolorthememetropolis.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/beamertheme-metropolis/beamercolorthememetropolis.sty 2017-01-23 22:18:31 UTC (rev 43030)
+++ trunk/Master/texmf-dist/tex/latex/beamertheme-metropolis/beamercolorthememetropolis.sty 2017-01-23 22:18:55 UTC (rev 43031)
@@ -17,7 +17,7 @@
%% International License (https://creativecommons.org/licenses/by-sa/4.0/).
%% ---------------------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{beamercolorthememetropolis}[2016/03/14 Metropolis color theme]
+\ProvidesPackage{beamercolorthememetropolis}[2017/01/23 Metropolis color theme]
\RequirePackage{pgfopts}
\pgfkeys{
/metropolis/color/block/.cd,
@@ -46,6 +46,7 @@
fg=black!2,
bg=mDarkTeal
}
+ \usebeamercolor[fg]{normal text}
}
\newcommand{\metropolis at colors@light}{
\setbeamercolor{normal text}{%
Modified: trunk/Master/texmf-dist/tex/latex/beamertheme-metropolis/beamerfontthememetropolis.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/beamertheme-metropolis/beamerfontthememetropolis.sty 2017-01-23 22:18:31 UTC (rev 43030)
+++ trunk/Master/texmf-dist/tex/latex/beamertheme-metropolis/beamerfontthememetropolis.sty 2017-01-23 22:18:55 UTC (rev 43031)
@@ -17,13 +17,17 @@
%% International License (https://creativecommons.org/licenses/by-sa/4.0/).
%% ---------------------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{beamerfontthememetropolis}[2016/03/14 Metropolis font theme]
+\ProvidesPackage{beamerfontthememetropolis}[2017/01/23 Metropolis font theme]
\RequirePackage{etoolbox}
\RequirePackage{ifxetex}
\RequirePackage{ifluatex}
\RequirePackage{pgfopts}
\ifboolexpr{bool {xetex} or bool {luatex}}{
- \RequirePackage[no-math]{fontspec}
+ \@ifpackageloaded{fontspec}{
+ \PassOptionsToPackage{no-math}{fontspec}
+ }{
+ \RequirePackage[no-math]{fontspec}
+ }
\newcounter{fontsnotfound}
\newcommand{\checkfont}[1]{%
\suppressfontnotfounderror=1%
@@ -243,31 +247,57 @@
{\def\inserttitle{#2}}%
{\def\inserttitle{\metropolis at titleformat{#2}}}%
{}%
- {\PackageError{beamerfontthememetropolis}{Patching title failed}}
+ {\PackageError{beamerfontthememetropolis}{Patching title failed}\@ehc}
\patchcmd{\beamer at subtitle}%
{\def\insertsubtitle{#2}}%
{\def\insertsubtitle{\metropolis at subtitleformat{#2}}}%
{}%
- {\PackageError{beamerfontthememetropolis}{Patching subtitle failed}}
+ {\PackageError{beamerfontthememetropolis}{Patching subtitle failed}\@ehc}
\patchcmd{\sectionentry}
{\def\insertsectionhead{#2}}
{\def\insertsectionhead{\metropolis at sectiontitleformat{#2}}}
{}
- {\PackageError{beamerfontthememetropolis}{Patching section title failed}}
+ {\PackageError{beamerfontthememetropolis}{Patching section title failed}\@ehc}
+\@tempswafalse
\patchcmd{\beamer at section}
{\def\insertsectionhead{\hyperlink{Navigation\the\c at page}{#1}}}
{\def\insertsectionhead{\hyperlink{Navigation\the\c at page}{%
\metropolis at sectiontitleformat{#1}}}}
+ {\@tempswatrue}
{}
- {\PackageError{beamerfontthememetropolis}{Patching section title failed}}
+\patchcmd{\beamer at section}
+ {\protected at edef\insertsectionhead{\noexpand\hyperlink{Navigation\the\c at page}{#1}}}
+ {\protected at edef\insertsectionhead{\noexpand\hyperlink{Navigation\the\c at page}{%
+ \noexpand\metropolis at sectiontitleformat{#1}}}}
+ {\@tempswatrue}
+ {}
+\if at tempswa\else
+ \PackageError{beamerfontthememetropolis}{Patching section title failed}\@ehc
+\fi
+\@tempswafalse
+\patchcmd{\beamer at subsection}
+ {\def\insertsubsectionhead{\hyperlink{Navigation\the\c at page}{#1}}}
+ {\def\insertsubsectionhead{\hyperlink{Navigation\the\c at page}{%
+ \metropolis at sectiontitleformat{#1}}}}
+ {\@tempswatrue}
+ {}
+\patchcmd{\beamer at subsection}
+ {\protected at edef\insertsubsectionhead{\noexpand\hyperlink{Navigation\the\c at page}{#1}}}
+ {\protected at edef\insertsubsectionhead{\noexpand\hyperlink{Navigation\the\c at page}{%
+ \noexpand\metropolis at sectiontitleformat{#1}}}}
+ {\@tempswatrue}
+ {}
+\if at tempswa\else
+ \PackageError{beamerfontthememetropolis}{Patching section title failed}\@ehc
+\fi
\patchcmd{\beamer@@frametitle}
- {\beamer at ifempty{#2}{}{%
+ {{%
\gdef\insertframetitle{{#2\ifnum\beamer at autobreakcount>0\relax{}\space%
\usebeamertemplate*{frametitle continuation}\fi}}%
\gdef\beamer at frametitle{#2}%
\gdef\beamer at shortframetitle{#1}%
}}
- {\beamer at ifempty{#2}{}{%
+ {{%
\gdef\insertframetitle{{\metropolis at frametitleformat{#2}\ifnum%
\beamer at autobreakcount>0\relax{}\space%
\usebeamertemplate*{frametitle continuation}\fi}}%
@@ -275,7 +305,7 @@
\gdef\beamer at shortframetitle{#1}%
}}
{}
- {\PackageError{beamerfontthememetropolis}{Patching frame title failed}}
+ {\PackageError{beamerfontthememetropolis}{Patching frame title failed}\@ehc}
\metropolis at font@setdefaults
\ProcessPgfPackageOptions{/metropolis/font}
\endinput
Modified: trunk/Master/texmf-dist/tex/latex/beamertheme-metropolis/beamerinnerthememetropolis.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/beamertheme-metropolis/beamerinnerthememetropolis.sty 2017-01-23 22:18:31 UTC (rev 43030)
+++ trunk/Master/texmf-dist/tex/latex/beamertheme-metropolis/beamerinnerthememetropolis.sty 2017-01-23 22:18:55 UTC (rev 43031)
@@ -17,7 +17,7 @@
%% International License (https://creativecommons.org/licenses/by-sa/4.0/).
%% ---------------------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{beamerinnerthememetropolis}[2016/03/14 Metropolis inner theme]
+\ProvidesPackage{beamerinnerthememetropolis}[2017/01/23 Metropolis inner theme]
\RequirePackage{etoolbox}
\RequirePackage{keyval}
\RequirePackage{calc}
@@ -86,13 +86,16 @@
\vspace*{0.5em}
}
\setbeamertemplate{subtitle}{
+ \raggedright%
\insertsubtitle%
\par%
\vspace*{0.5em}
}
+\newlength{\metropolis at titleseparator@linewidth}
+\setlength{\metropolis at titleseparator@linewidth}{0.4pt}
\setbeamertemplate{title separator}{
\begin{tikzpicture}
- \draw[fg, fill=fg] (0,0) rectangle (\textwidth, 0.4pt);
+ \fill[fg] (0,0) rectangle (\textwidth, \metropolis at titleseparator@linewidth);
\end{tikzpicture}%
\par%
}
@@ -116,10 +119,10 @@
\usebeamercolor[fg]{section title}
\usebeamerfont{section title}
\insertsectionhead\par
- \ifx\insertsubsection\@empty\else
+ \ifx\insertsubsectionhead\@empty\else
\usebeamercolor[fg]{subsection title}
\usebeamerfont{subsection title}
- \insertsubsection
+ \insertsubsectionhead
\fi
\end{center}
}
@@ -132,10 +135,10 @@
\insertsectionhead\\[-1ex]
\usebeamertemplate*{progress bar in section page}
\par
- \ifx\insertsubsection\@empty\else%
+ \ifx\insertsubsectionhead\@empty\else%
\usebeamercolor[fg]{subsection title}%
\usebeamerfont{subsection title}%
- \insertsubsection
+ \insertsubsectionhead
\fi
\end{minipage}
\par
@@ -173,13 +176,15 @@
}
}
\newlength{\metropolis at progressonsectionpage}
+\newlength{\metropolis at progressonsectionpage@linewidth}
+\setlength{\metropolis at progressonsectionpage@linewidth}{0.4pt}
\setbeamertemplate{progress bar in section page}{
\setlength{\metropolis at progressonsectionpage}{%
\textwidth * \ratio{\insertframenumber pt}{\inserttotalframenumber pt}%
}%
\begin{tikzpicture}
- \draw[bg, fill=bg] (0,0) rectangle (\textwidth, 0.4pt);
- \draw[fg, fill=fg] (0,0) rectangle (\metropolis at progressonsectionpage, 0.4pt);
+ \fill[bg] (0,0) rectangle (\textwidth, \metropolis at progressonsectionpage@linewidth);
+ \fill[fg] (0,0) rectangle (\metropolis at progressonsectionpage, \metropolis at progressonsectionpage@linewidth);
\end{tikzpicture}%
}
\def\inserttotalframenumber{100}
Modified: trunk/Master/texmf-dist/tex/latex/beamertheme-metropolis/beamerouterthememetropolis.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/beamertheme-metropolis/beamerouterthememetropolis.sty 2017-01-23 22:18:31 UTC (rev 43030)
+++ trunk/Master/texmf-dist/tex/latex/beamertheme-metropolis/beamerouterthememetropolis.sty 2017-01-23 22:18:55 UTC (rev 43031)
@@ -17,7 +17,7 @@
%% International License (https://creativecommons.org/licenses/by-sa/4.0/).
%% ---------------------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{beamerouterthememetropolis}[2016/03/14 Metropolis outer theme]
+\ProvidesPackage{beamerouterthememetropolis}[2017/01/23 Metropolis outer theme]
\RequirePackage{etoolbox}
\RequirePackage{calc}
\RequirePackage{pgfopts}
@@ -95,10 +95,19 @@
leftskip=\metropolis at frametitle@padding,%
rightskip=\metropolis at frametitle@padding,%
]{frametitle}%
- \metropolis at frametitlestrut@start\insertframetitle\metropolis at frametitlestrut@end%
+ \metropolis at frametitlestrut@start%
+ \insertframetitle%
+ \nolinebreak%
+ \metropolis at frametitlestrut@end%
\end{beamercolorbox}%
}
+\setbeamertemplate{frametitle continuation}{%
+ \usebeamerfont{frametitle}
+ \romannumeral \insertcontinuationcount
+}
\newlength{\metropolis at progressinheadfoot}
+\newlength{\metropolis at progressinheadfoot@linewidth}
+\setlength{\metropolis at progressinheadfoot@linewidth}{0.4pt}
\setbeamertemplate{progress bar in head/foot}{
\nointerlineskip
\setlength{\metropolis at progressinheadfoot}{%
@@ -106,8 +115,8 @@
}%
\begin{beamercolorbox}[wd=\paperwidth]{progress bar in head/foot}
\begin{tikzpicture}
- \draw[bg, fill=bg] (0,0) rectangle (\paperwidth, 0.4pt);
- \draw[fg, fill=fg] (0,0) rectangle (\metropolis at progressinheadfoot, 0.4pt);
+ \fill[bg] (0,0) rectangle (\paperwidth, \metropolis at progressinheadfoot@linewidth);
+ \fill[fg] (0,0) rectangle (\metropolis at progressinheadfoot, \metropolis at progressinheadfoot@linewidth);
\end{tikzpicture}%
\end{beamercolorbox}
}
Modified: trunk/Master/texmf-dist/tex/latex/beamertheme-metropolis/beamerthememetropolis.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/beamertheme-metropolis/beamerthememetropolis.sty 2017-01-23 22:18:31 UTC (rev 43030)
+++ trunk/Master/texmf-dist/tex/latex/beamertheme-metropolis/beamerthememetropolis.sty 2017-01-23 22:18:55 UTC (rev 43031)
@@ -18,7 +18,7 @@
%% ---------------------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{beamerthememetropolis}
- [2016/03/14 v1.1 Metropolis Beamer theme]
+ [2017/01/23 v1.2 Metropolis Beamer theme]
\RequirePackage{etoolbox}
\RequirePackage{pgfopts}
\pgfkeys{/metropolis/.cd,
Modified: trunk/Master/texmf-dist/tex/latex/beamertheme-metropolis/pgfplotsthemetol.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/beamertheme-metropolis/pgfplotsthemetol.sty 2017-01-23 22:18:31 UTC (rev 43030)
+++ trunk/Master/texmf-dist/tex/latex/beamertheme-metropolis/pgfplotsthemetol.sty 2017-01-23 22:18:55 UTC (rev 43031)
@@ -18,7 +18,7 @@
%% ---------------------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{pgfplotsthemetol}
- [2016/03/14 PGFplots colors based on Paul Tol's SRON technical note]
+ [2017/01/23 PGFplots colors based on Paul Tol's SRON technical note]
\definecolor{TolDarkPurple}{HTML}{332288}
\definecolor{TolDarkBlue}{HTML}{6699CC}
\definecolor{TolLightBlue}{HTML}{88CCEE}
More information about the tex-live-commits
mailing list