-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbeamerouterthememiniframesboulder.sty
186 lines (175 loc) · 7.54 KB
/
beamerouterthememiniframesboulder.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
% Copyright 2007 by Till Tantau
% Copyright 2015 by Vedran Mileti\'c, Joseph Wright
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
%
% See the file doc/licenses/LICENSE for more details.
\setbeamercolor{section in head/foot}{parent=palette tertiary}
\setbeamercolor{subsection in head/foot}{parent=palette secondary}
\setbeamercolor{author in head/foot}{parent=subsection in head/foot}
\setbeamercolor{title in head/foot}{parent=section in head/foot}
\newif\ifbeamer@longtitleline
\beamer@longtitlelinefalse
\DeclareOptionBeamer{longtitleline}{\beamer@longtitlelinetrue}
\newif\ifbeamer@basictitleline
\beamer@basictitlelinefalse
\DeclareOptionBeamer{basictitleline}{\beamer@basictitlelinetrue}
\newdimen\beamer@Boulder@extendedtitleline
\beamer@Boulder@extendedtitleline=0pt
\DeclareOptionBeamer{extendedtitleline}{\beamer@Boulder@extendedtitleline=#1}
\ProcessOptionsBeamer
\ifbeamer@longtitleline%
%frametitle template using help from https://tex.stackexchange.com/questions/343517/beamer-full-width-hrule-below-frame-title
\setbeamertemplate{frametitle}{%
\usebeamerfont{frametitle}\insertframetitle\strut%
\vskip-.25\baselineskip%
\leaders\vrule width \paperwidth\vskip0.8pt%
\vskip0pt%
\nointerlineskip
}
\else%
\ifbeamer@basictitleline%
%For a closer underline https://tex.stackexchange.com/questions/50637/closer-underline
\setbeamertemplate{frametitle}{%
\usebeamerfont{frametitle}\underline{\smash{\insertframetitle}}
}
\else%
%For fancy underlines https://alexwlchan.net/2017/10/latex-underlines/
%For line thickness using the ulem package https://tex.stackexchange.com/questions/257330/ulem-package-horizontal-line-is-too-thin
\RequirePackage{ulem}
\RequirePackage{contour}
\renewcommand{\ULdepth}{2.0pt} %Changed from 1.8pt
\renewcommand{\ULthickness}{0.8pt}
\contourlength{0.8pt}
\newcommand{\myuline}[1]{%
\uline{\phantom{#1}}%
\llap{\contour{white}{#1}}%
}
\setbeamertemplate{frametitle}{%
\ifdim\beamer@Boulder@extendedtitleline>0pt%
\usebeamerfont{frametitle}\myuline{\insertframetitle\hspace{\beamer@Boulder@extendedtitleline}}
\else%
\usebeamerfont{frametitle}\myuline{\insertframetitle}
\fi%
}
\fi%
\fi%
\def\beamer@theme@footline@empty{}
\def\beamer@theme@footline@authorinstitute{
\defbeamertemplate*{footline}{miniframes theme}
{%
\begin{beamercolorbox}[colsep=1.5pt]{upper separation line foot}
\end{beamercolorbox}
\begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%
leftskip=.3cm,rightskip=.3cm plus1fil]{author in head/foot}%
\leavevmode{\usebeamerfont{author in head/foot}\insertshortauthor}%
\hfill%
{\usebeamerfont{institute in head/foot}\usebeamercolor[fg]{institute in head/foot}\insertshortinstitute}%
\end{beamercolorbox}%
\begin{beamercolorbox}[colsep=1.5pt]{lower separation line foot}
\end{beamercolorbox}
}
}
\def\beamer@theme@footline@authortitle{
\defbeamertemplate*{footline}{miniframes theme}
{%
\begin{beamercolorbox}[colsep=1.5pt]{upper separation line foot}
\end{beamercolorbox}
\begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%
leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}%
\leavevmode{\usebeamerfont{title in head/foot}\insertshorttitle}%
\hfill%
{\usebeamerfont{author in head/foot}\usebeamercolor[fg]{author in head/foot}\insertshortauthor}%
\end{beamercolorbox}%
\begin{beamercolorbox}[colsep=1.5pt]{lower separation line foot}
\end{beamercolorbox}
}
}
\def\beamer@theme@footline@institutetitle{
\defbeamertemplate*{footline}{miniframes theme}
{%
\begin{beamercolorbox}[colsep=1.5pt]{upper separation line foot}
\end{beamercolorbox}
\begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%
leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}%
\leavevmode{\usebeamerfont{title in head/foot}\insertshorttitle}%
\hfill%
{\usebeamerfont{institute in head/foot}\usebeamercolor[fg]{institute in head/foot}\insertshortinstitute}%
\end{beamercolorbox}%
\begin{beamercolorbox}[colsep=1.5pt]{lower separation line foot}
\end{beamercolorbox}
}
}
\def\beamer@theme@footline@authorinstitutetitle{
\defbeamertemplate*{footline}{miniframes theme}
{%
\begin{beamercolorbox}[colsep=1.5pt]{upper separation line foot}
\end{beamercolorbox}
\begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%
leftskip=.3cm,rightskip=.3cm plus1fil]{author in head/foot}%
\leavevmode{\usebeamerfont{author in head/foot}\insertshortauthor}%
\hfill%
{\usebeamerfont{institute in head/foot}\usebeamercolor[fg]{institute in head/foot}\insertshortinstitute}%
\end{beamercolorbox}%
\begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%
leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}%
{\usebeamerfont{title in head/foot}\insertshorttitle}%
\end{beamercolorbox}%
\begin{beamercolorbox}[colsep=1.5pt]{lower separation line foot}
\end{beamercolorbox}
}
}
\def\beamer@theme@footline@institutelogoauthortitlepages{
\defbeamertemplate*{footline}{miniframes theme}
{%
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=0.20\paperwidth,ht=7.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm plus1fil,left]{author in head/foot}%
\raisebox{-1.125ex}{\includegraphics[height=8.625ex]{beamerouterthemeboulderlogoreverse.pdf}}%
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=0.12\paperwidth,ht=7.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm plus1fil,left]{author in head/foot}%
\leavevmode{\usebeamerfont{author in head/foot}\vspace*{2.5ex}\insertshortauthor}%
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=0.36\paperwidth,ht=7.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm plus1fil,center]{author in head/foot}%
\usebeamerfont{title in head/foot}\vspace*{2ex}\insertshorttitle%
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=0.24\paperwidth,ht=7.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm plus1fil,right]{author in head/foot}%
\usebeamerfont{title in head/foot}\vspace*{2ex}\insertshortdate{}\hspace*{2em}%
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=0.08\paperwidth,ht=7.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm plus1fil,right]{author in head/foot}%
\usebeamerfont{title in head/foot}\vspace*{2ex}\insertframenumber\,/\,\inserttotalframenumber\hspace*{2ex}%
\end{beamercolorbox}%
}%
\vskip0pt%
}
}
\newif\ifbeamer@theme@subsection
\beamer@theme@subsectiontrue
\DeclareOptionBeamer{footline}{\csname beamer@theme@footline@#1\endcsname}
\DeclareOptionBeamer{subsection}[true]{\csname beamer@theme@subsection#1\endcsname}
\ProcessOptionsBeamer
\mode<presentation>
% Headline: miniframes
\defbeamertemplate*{headline}{miniframes theme}
{%
\begin{beamercolorbox}[colsep=1.5pt]{upper separation line head}
\end{beamercolorbox}
\begin{beamercolorbox}{section in head/foot}
\vskip2pt\insertnavigation{\paperwidth}\vskip2pt
\end{beamercolorbox}%
\ifbeamer@theme@subsection%
\begin{beamercolorbox}[colsep=1.5pt]{middle separation line head}
\end{beamercolorbox}
\begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%
leftskip=.3cm,rightskip=.3cm plus1fil]{subsection in head/foot}
\usebeamerfont{subsection in head/foot}\insertsubsectionhead
\end{beamercolorbox}%
\fi%
\begin{beamercolorbox}[colsep=1.5pt]{lower separation line head}
\end{beamercolorbox}
}
\mode
<all>