Debian Codegraph @

my_docs/22/lmod_zoom_mtg_2022_04_19/themes/beamerouterthemeTACC16.sty

raw
1 % Copyright 2003 by Till Tantau <[email protected]>
2 %
3 % This program can be redistributed and/or modified under the terms
4 % of the GNU Public License, version 2.
5
6 \mode<presentation>
7
8 \usepackage{xcolor}
9 \usepackage{graphicx}
10 \usepackage{etoolbox}
11
12 \pgfdeclareimage[width=\paperwidth]{titlebackground}{master.jpg}
13 \pgfdeclareimage[width=\paperwidth]{background}{secondary.jpg}
14
15 \setbeamertemplate{background canvas}{%
16 \ifnum\c@framenumber=1%
17 \begin{picture}(0,0)
18 \put(0,-273){%
19 \pgfuseimage{titlebackground}
20 }
21 %\put(0,-130.7){%
22
23 %\begin{minipage}[b][45mm][t]{\textwidth}%{226mm}
24 %\begin{center}
25 % \usebeamerfont{title}{\MakeTextUppercase{\inserttitle}\par}
26 %\vspace{2ex}
27 %\usebeamerfont{author}{\insertauthor}
28 % \end{center}
29 %\end{minipage}
30 %}
31 \end{picture}
32 % On title page
33 \else%
34 % Other frames background
35 \begin{picture}(0,0)
36 \put(0,-273){%
37 \pgfuseimage{background}
38 }
39 \end{picture}
40 \fi%
41 }
42
43
44 \setbeamertemplate{title page}{
45 \vspace{40pt}
46 \begin{center}
47 \usebeamerfont{title} {\huge \inserttitle}\par
48 \vspace{4ex}
49 \usebeamerfont{author} {
50 \insertauthor
51 }\par
52 \vspace{2ex}
53 \usebeamerfont{institute}{
54 \insertinstitute
55 } \par
56 \vspace{2ex}
57 \usebeamerfont{date}{
58 \insertdate
59 }
60 \end{center}
61 }
62
63
64 \setbeamertemplate{frametitle}[default][center]
65 \setbeamertemplate{frametitle}{
66 \makeatletter
67 \regexpatchcmd{\insertframetitle}
68 {(\c{usebeamertemplate}.*)\c{fi}}
69 {\c{NoCaseChange}\cB\{\1\cE\}\c{fi}}
70 {}{}%
71 \makeatother
72 \vskip1ex
73 \insertframetitle
74 }
75
76 % Here we define what appears at the bottom of each slide: the "footline".
77 \setbeamertemplate{footline}{%
78 \leavevmode%
79
80 % Horizontal line dividing the rest of the slide from the footer?
81 % hrule goes all the way across...
82 % \hrule height.3pt%
83 % With \rule, you can specify the thickness
84 % \rule[raise-height]{width}{thickness}
85 % \hspace{.025\textwidth}\rule{.95\textwidth}{.5pt}
86
87 \hbox{%
88 \ifnum \thepage>1
89 % On the left half of the footer, insert the TACC of
90 \begin{minipage}{.2\textwidth}%
91 \hskip .05\textwidth%Give horizontal space else this will set on the left edge of the slide!
92 % \includegraphics[width=.8\textwidth]{figures/TACC_logo.png}
93 \end{minipage}
94
95
96 \begin{minipage}{\textwidth}%
97 % \vskip .023\textheight%
98 \raggedleft%
99 \setlength{\rightskip}{\textwidth}
100 \hbox{%
101 \begin{beamercolorbox}[wd=0.7\textwidth,ht=2.25ex,dp=1ex,left]{author in head/foot}%
102 \insertshorttitle{} \hskip .01\textwidth | \hskip .01\textwidth \insertdate{} \hskip .01\textwidth | \hskip .01\textwidth \insertframenumber{}
103 \end{beamercolorbox}%
104 }
105
106 %
107 % If we are not on the first page, insert a page number
108 % For some reason, insertframenumber is buggy when you have fragile
109 % slides with verbatim environments in them... it tends to skip numbers
110 % for some reason! On the other hand, the pagenumber is incremented
111 % for *every* slide, including transition slides...
112 % \hfill\includegraphics[width=\textwidth]{figures/tacc_ut.png}
113 \end{minipage}%
114 \begin{minipage}{.05\textwidth}%
115 \end{minipage}%
116 \fi %\thepage>1
117 }%
118 \vskip .023\textheight%
119
120 }
121
122
123
124
125 \ifTACCheadernav
126
127 \usesectionheadtemplate
128 {\hfill\insertsectionhead}
129 {\hfill\color{fg!50!bg}\insertsectionhead}
130
131 % Head
132 \ifbeamer@compress
133
134 % Here we define how the top of the frame looks, the "headline".
135 \setbeamertemplate{headline}
136 {%
137 \ifnum \thepage>1
138 \leavevmode%
139 \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex]{%
140 section in head/foot}%
141 \insertsectionnavigationhorizontal{.5\paperwidth}{\hskip0pt plus1filll}{}%
142 \end{beamercolorbox}%
143 \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex]{%
144 subsection in head/foot}%
145 \insertsubsectionnavigationhorizontal{%
146 .5\paperwidth}{}{\hskip0pt plus1filll}%
147 \end{beamercolorbox}%
148 \fi %\thepage>1
149 }
150
151 \else% Not compressed
152
153 \setbeamertemplate{headline}
154 {%
155 \ifnum \thepage>1
156 \leavevmode%
157 \@tempdimb=2.4375ex%
158 \ifnum\beamer@subsectionmax<\beamer@sectionmax%
159 \multiply\@tempdimb by\beamer@sectionmax%
160 \else%
161 \multiply\@tempdimb by\beamer@subsectionmax%
162 \fi%
163 \ifdim\@tempdimb>0pt%
164 \advance\@tempdimb by 1.125ex%
165 \begin{beamercolorbox}[wd=.5\paperwidth,ht=\@tempdimb]{%
166 section in head/foot}%
167 \vbox to\@tempdimb{\vfil\insertsectionnavigation{.5\paperwidth}\vfil}%
168 \end{beamercolorbox}%
169 \begin{beamercolorbox}[wd=.5\paperwidth,ht=\@tempdimb]{%
170 subsection in head/foot}%
171 \vbox to\@tempdimb{\vfil\insertsubsectionnavigation{.5\paperwidth}\vfil}%
172 \end{beamercolorbox}%
173 \fi%
174 \fi % \thepage>1
175 }
176
177 \fi % end if compressed
178 \fi % TACCheadernav
179
180
181 \ifTACCheadertree
182
183 \setbeamertemplate{headline}
184 {
185 \begin{beamercolorbox}[wd=\paperwidth,colsep=1.5pt]{upper separation line head}
186 \end{beamercolorbox}
187 %
188 % Place short title
189 %
190 \begin{beamercolorbox}[wd=\paperwidth,ht=2.5ex,dp=1.125ex,%
191 leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}
192 \usebeamerfont{title in head/foot}\insertshorttitle
193 \end{beamercolorbox}
194
195 %
196 % Place section
197 %
198 \begin{beamercolorbox}[wd=\paperwidth,ht=2.5ex,dp=1.125ex,%
199 leftskip=.3cm,rightskip=.3cm plus1fil]{section in head/foot}
200 \usebeamerfont{section in head/foot}%
201 %\ifbeamer@tree@showhooks
202 \setbox\beamer@tempbox=\hbox{\insertsectionhead}%
203 \ifdim\wd\beamer@tempbox>1pt%
204 \hskip2pt\raise1.9pt\hbox{\vrule width0.4pt height1.875ex\vrule width 5pt height0.4pt}%
205 \hskip1pt%
206 \fi
207 \insertsectionhead
208 \end{beamercolorbox}
209
210 %
211 % Place subsection
212 %
213 \begin{beamercolorbox}[wd=\paperwidth,ht=2.5ex,dp=1.125ex,%
214 leftskip=.3cm,rightskip=.3cm plus1fil]{subsection in head/foot}
215 \usebeamerfont{subsection in head/foot}%
216 %\ifbeamer@tree@showhooks
217 \setbox\beamer@tempbox=\hbox{\insertsubsectionhead}%
218 \ifdim\wd\beamer@tempbox>1pt%
219 \hskip9.4pt\raise1.9pt\hbox{\vrule width0.4pt height1.875ex\vrule width 5pt height0.4pt}%
220 \hskip1pt%
221 \fi
222 \insertsubsectionhead
223 \end{beamercolorbox}
224
225 %
226 % Place final separation box
227 %
228 \begin{beamercolorbox}[wd=\paperwidth,colsep=1.5pt
229 ]{lower separation line head}
230 \end{beamercolorbox}
231
232 %
233 % Another matching rule which helps to frame the content
234 %
235 \hspace{.025\textwidth}\rule{.95\textwidth}{.5pt}
236 }
237 \fi % TACCheadertree
238
239
240 % The following command suppresses all navigation symbols. This is
241 % necessary in the TACC theme, since it overlaps where we want the
242 % logo to be.
243 \setbeamertemplate{navigation symbols}{}
244
245
246 \mode
247 <all>