diff options
author | Karl Berry <karl@freefriends.org> | 2017-01-23 22:18:55 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-01-23 22:18:55 +0000 |
commit | f35dfb20df88fa099d64577cc73a63c4e252d4ea (patch) | |
tree | 90c76836f9540afb9197b0650a95b382841e03d7 /Master/texmf-dist/source/latex/beamertheme-metropolis/beamerinnerthememetropolis.dtx | |
parent | 8f189a4893035ef699e505bba4872f4c6bfaf1fd (diff) |
beamertheme-metropolis (23jan17)
git-svn-id: svn://tug.org/texlive/trunk@43031 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/beamertheme-metropolis/beamerinnerthememetropolis.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/beamertheme-metropolis/beamerinnerthememetropolis.dtx | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/Master/texmf-dist/source/latex/beamertheme-metropolis/beamerinnerthememetropolis.dtx b/Master/texmf-dist/source/latex/beamertheme-metropolis/beamerinnerthememetropolis.dtx index 89550ea3a07..24f5c5f90c9 100644 --- a/Master/texmf-dist/source/latex/beamertheme-metropolis/beamerinnerthememetropolis.dtx +++ b/Master/texmf-dist/source/latex/beamertheme-metropolis/beamerinnerthememetropolis.dtx @@ -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@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% } @@ -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@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}% } % \end{macrocode} |