summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/beamer-contrib/themes/beamerauxtheme/themes/beamerouterthemetwolines.sty
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/beamer-contrib/themes/beamerauxtheme/themes/beamerouterthemetwolines.sty')
-rw-r--r--macros/latex/contrib/beamer-contrib/themes/beamerauxtheme/themes/beamerouterthemetwolines.sty25
1 files changed, 16 insertions, 9 deletions
diff --git a/macros/latex/contrib/beamer-contrib/themes/beamerauxtheme/themes/beamerouterthemetwolines.sty b/macros/latex/contrib/beamer-contrib/themes/beamerauxtheme/themes/beamerouterthemetwolines.sty
index 7269bfa77e..7dea557ac8 100644
--- a/macros/latex/contrib/beamer-contrib/themes/beamerauxtheme/themes/beamerouterthemetwolines.sty
+++ b/macros/latex/contrib/beamer-contrib/themes/beamerauxtheme/themes/beamerouterthemetwolines.sty
@@ -13,7 +13,7 @@
%
% The Current Maintainer of this work is Louis Stuart.
-\ProvidesPackage{beamerouterthemetwolines}[2019-05-07 v1.01 Beamer supplementary outer themes]
+\ProvidesPackage{beamerouterthemetwolines}[2020/08/10 v1.02a Beamer supplementary outer themes]
\mode<presentation>
@@ -24,30 +24,37 @@
\setbeamercolor{section in head/foot shaded}{use=section in head/foot,fg=section in head/foot.fg!40!bg}
\setbeamercolor{subsection in head/foot shaded}{use=subsection in head/foot,fg=subsection in head/foot.fg!40!bg}
+\def\twolines@section@wd{}
+\def\twolines@subsection@wd{}
+
\defbeamertemplate*{section in head/foot}{two lines}{%
\leavevmode\setbox\@tempboxa\hbox{\strut\hskip1ex\insertsectionhead\hskip1ex}%
- \begin{beamercolorbox}[wd=\wd\@tempboxa,ht=2.5ex,dp=1.125ex]{section in head/foot}
+ \edef\twolines@section@wd{\the\wd\@tempboxa}%
+ \begin{beamercolorbox}[wd=\twolines@section@wd,ht=2.5ex,dp=1.125ex]{section in head/foot}
\box\@tempboxa
\end{beamercolorbox}%
}
\defbeamertemplate*{section in head/foot shaded}{two lines}{%
\leavevmode\setbox\@tempboxa\hbox{\strut\hskip1ex\insertsectionhead\hskip1ex}%
- \begin{beamercolorbox}[wd=\wd\@tempboxa,ht=2.5ex,dp=1.125ex]{section in head/foot shaded}
+ \edef\twolines@section@wd{\the\wd\@tempboxa}%
+ \begin{beamercolorbox}[wd=\twolines@section@wd,ht=2.5ex,dp=1.125ex]{section in head/foot shaded}
\box\@tempboxa
\end{beamercolorbox}%
}
\defbeamertemplate*{subsection in head/foot}{two lines}{%
\leavevmode\setbox\@tempboxa\hbox{\strut\hskip1ex\insertsubsectionhead\hskip1ex}%
- \begin{beamercolorbox}[wd=\wd\@tempboxa,ht=2.5ex,dp=1.125ex]{subsection in head/foot}
+ \edef\twolines@subsection@wd{\the\wd\@tempboxa}%
+ \begin{beamercolorbox}[wd=\twolines@subsection@wd,ht=2.5ex,dp=1.125ex]{subsection in head/foot}
\box\@tempboxa
\end{beamercolorbox}%
}
\defbeamertemplate*{subsection in head/foot shaded}{two lines}{%
\leavevmode\setbox\@tempboxa\hbox{\strut\hskip1ex\insertsubsectionhead\hskip1ex}%
- \begin{beamercolorbox}[wd=\wd\@tempboxa,ht=2.5ex,dp=1.125ex]{subsection in head/foot shaded}
+ \edef\twolines@subsection@wd{\the\wd\@tempboxa}%
+ \begin{beamercolorbox}[wd=\twolines@subsection@wd,ht=2.5ex,dp=1.125ex]{subsection in head/foot shaded}
\box\@tempboxa
\end{beamercolorbox}%
}
@@ -61,7 +68,7 @@
\hbox{%
\usebeamerfont{section in head/foot}%
\hyperlink{Navigation##3}{%
- \ifnum\c@section=##1%
+ \ifnum\c@section=##1\relax%
{\usebeamertemplate{section in head/foot}}%
\else%
{\usebeamertemplate{section in head/foot shaded}}%
@@ -70,14 +77,14 @@
}%
\fi%
}%
- \def\beamer@subsectionentry##1##2##3##4##5##6{}%
+ \def\beamer@subsectionentry##1##2##3##4##5{}%
\def\slideentry##1##2##3##4##5##6{}%
\dohead%
}
\long\def\insertsubsectionnavigationline{%
\def\sectionentry##1##2##3##4##5{}%
- \def\beamer@subsectionentry##1##2##3##4##5##6{%
+ \def\beamer@subsectionentry##1##2##3##4##5{%
\ifnum##1=\c@part%
\def\insertpartheadnumber{##1}%
\def\insertsectionheadnumber{##2}%
@@ -87,7 +94,7 @@
\usebeamerfont{subsection in head/foot}%
\hyperlink{Navigation##4}{%
\ifnum\c@section=##2%
- \ifnum\c@subsection=##3%
+ \ifnum\c@subsection=##3\relax%
{\usebeamertemplate{subsection in head/foot}}%
\else%
{\usebeamertemplate{subsection in head/foot shaded}}%