summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/beamertheme-metropolis/beamerinnerthememetropolis.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/beamertheme-metropolis/beamerinnerthememetropolis.sty')
-rw-r--r--Master/texmf-dist/tex/latex/beamertheme-metropolis/beamerinnerthememetropolis.sty21
1 files changed, 13 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/beamertheme-metropolis/beamerinnerthememetropolis.sty b/Master/texmf-dist/tex/latex/beamertheme-metropolis/beamerinnerthememetropolis.sty
index 84431f025ba..16d86144e18 100644
--- a/Master/texmf-dist/tex/latex/beamertheme-metropolis/beamerinnerthememetropolis.sty
+++ b/Master/texmf-dist/tex/latex/beamertheme-metropolis/beamerinnerthememetropolis.sty
@@ -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@titleseparator@linewidth}
+\setlength{\metropolis@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@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@progressonsectionpage}
+\newlength{\metropolis@progressonsectionpage@linewidth}
+\setlength{\metropolis@progressonsectionpage@linewidth}{0.4pt}
\setbeamertemplate{progress bar in section page}{
\setlength{\metropolis@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@progressonsectionpage, 0.4pt);
+ \fill[bg] (0,0) rectangle (\textwidth, \metropolis@progressonsectionpage@linewidth);
+ \fill[fg] (0,0) rectangle (\metropolis@progressonsectionpage, \metropolis@progressonsectionpage@linewidth);
\end{tikzpicture}%
}
\def\inserttotalframenumber{100}