Debian Codegraph @

my_docs/22/lmod_zoom_mtg_2022_10_04/beamerouterthemeTACC.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 \setbeamertemplate{frametitle}[default][center]
9 \addtobeamertemplate{frametitle}{\vskip 4ex minus 4ex}{}
10
11 % Here we define what appears at the bottom of each slide: the "footline".
12 \setbeamertemplate{footline}{%
13 \leavevmode%
14
15 % Horizontal line dividing the rest of the slide from the footer?
16 % hrule goes all the way across...
17 % \hrule height.3pt%
18 % With \rule, you can specify the thickness
19 % \rule[raise-height]{width}{thickness}
20 \hspace{.025\textwidth}\rule{.95\textwidth}{.5pt}
21
22 \hbox{%
23 % On the left half of the footer, insert the TACC logo
24 \begin{minipage}{.5\textwidth}%
25 \hskip .033\textwidth%Give horizontal space else this will set on the left edge of the slide!
26 % TACC logo with custom viewport!
27 \includegraphics[viewport=1 -1 135 35, clip=true, width=.4\textwidth]{figures/TACC_logo}
28 \end{minipage}
29 %
30 \begin{minipage}{.5\textwidth}%
31 \vskip .023\textheight%
32 \raggedleft%
33 \setlength{\rightskip}{.033\textwidth}
34 %
35 % If we are not on the first page, insert a page number
36 % For some reason, insertframenumber is buggy when you have fragile
37 % slides with verbatim environments in them... it tends to skip numbers
38 % for some reason! On the other hand, the pagenumber is incremented
39 % for *every* slide, including transition slides...
40 \ifnum \thepage>1
41 % \insertshorttitle
42 \insertframenumber
43 % \insertframenumber/\inserttotalframenumber
44 % \insertpagenumber
45 \else % Do a phantom of whatever you do on other pages, so spacing matches
46 %$\phantom{\insertshorttitle}$
47 $\phantom{\insertframenumber}$
48 %$\phantom{\insertframenumber/\inserttotalframenumber}$
49 %$\phantom{\insertpagenumber}$
50 \fi
51 \hfill\includegraphics[width=.5\textwidth]{figures/UT_logo}%
52 \end{minipage}%
53 }%
54 \vskip .023\textheight%
55 }
56
57
58
59
60 \ifTACCheadernav
61
62 \usesectionheadtemplate
63 {\hfill\insertsectionhead}
64 {\hfill\color{fg!50!bg}\insertsectionhead}
65
66 % Head
67 \ifbeamer@compress
68
69 % Here we define how the top of the frame looks, the "headline".
70 \setbeamertemplate{headline}
71 {%
72 \ifnum \thepage>1
73 \leavevmode%
74 \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex]{%
75 section in head/foot}%
76 \insertsectionnavigationhorizontal{.5\paperwidth}{\hskip0pt plus1filll}{}%
77 \end{beamercolorbox}%
78 \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex]{%
79 subsection in head/foot}%
80 \insertsubsectionnavigationhorizontal{%
81 .5\paperwidth}{}{\hskip0pt plus1filll}%
82 \end{beamercolorbox}%
83 \fi %\thepage>1
84 }
85
86 \else% Not compressed
87
88 \setbeamertemplate{headline}
89 {%
90 \ifnum \thepage>1
91 \leavevmode%
92 \@tempdimb=2.4375ex%
93 \ifnum\beamer@subsectionmax<\beamer@sectionmax%
94 \multiply\@tempdimb by\beamer@sectionmax%
95 \else%
96 \multiply\@tempdimb by\beamer@subsectionmax%
97 \fi%
98 \ifdim\@tempdimb>0pt%
99 \advance\@tempdimb by 1.125ex%
100 \begin{beamercolorbox}[wd=.5\paperwidth,ht=\@tempdimb]{%
101 section in head/foot}%
102 \vbox to\@tempdimb{\vfil\insertsectionnavigation{.5\paperwidth}\vfil}%
103 \end{beamercolorbox}%
104 \begin{beamercolorbox}[wd=.5\paperwidth,ht=\@tempdimb]{%
105 subsection in head/foot}%
106 \vbox to\@tempdimb{\vfil\insertsubsectionnavigation{.5\paperwidth}\vfil}%
107 \end{beamercolorbox}%
108 \fi%
109 \fi % \thepage>1
110 }
111
112 \fi % end if compressed
113 \fi % TACCheadernav
114
115
116 \ifTACCheadertree
117
118 \setbeamertemplate{headline}
119 {
120 \begin{beamercolorbox}[wd=\paperwidth,colsep=1.5pt
121 ]{upper separation line head}
122 \end{beamercolorbox}
123 %
124 % Place short title
125 %
126 \begin{beamercolorbox}[wd=\paperwidth,ht=2.5ex,dp=1.125ex,%
127 leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}
128 \usebeamerfont{title in head/foot}\insertshorttitle
129 \end{beamercolorbox}
130
131 %
132 % Place section
133 %
134 \begin{beamercolorbox}[wd=\paperwidth,ht=2.5ex,dp=1.125ex,%
135 leftskip=.3cm,rightskip=.3cm plus1fil]{section in head/foot}
136 \usebeamerfont{section in head/foot}%
137 %\ifbeamer@tree@showhooks
138 \setbox\beamer@tempbox=\hbox{\insertsectionhead}%
139 \ifdim\wd\beamer@tempbox>1pt%
140 \hskip2pt\raise1.9pt\hbox{\vrule width0.4pt height1.875ex\vrule width 5pt height0.4pt}%
141 \hskip1pt%
142 \fi% \ifdim
143 %\else%
144 %\hskip6pt%
145 %\fi% \ifbeamer
146 \insertsectionhead
147 \end{beamercolorbox}
148
149 %
150 % Place subsection
151 %
152 \begin{beamercolorbox}[wd=\paperwidth,ht=2.5ex,dp=1.125ex,%
153 leftskip=.3cm,rightskip=.3cm plus1fil]{subsection in head/foot}
154 \usebeamerfont{subsection in head/foot}%
155 %\ifbeamer@tree@showhooks
156 \setbox\beamer@tempbox=\hbox{\insertsubsectionhead}%
157 \ifdim\wd\beamer@tempbox>1pt%
158 \hskip9.4pt\raise1.9pt\hbox{\vrule width0.4pt height1.875ex\vrule width 5pt height0.4pt}%
159 \hskip1pt%
160 \fi% \ifdim
161 %\else%
162 %\hskip12pt%
163 %\fi% \ifbeamer
164 \insertsubsectionhead
165 \end{beamercolorbox}
166
167 %
168 % Place final separation box
169 %
170 \begin{beamercolorbox}[wd=\paperwidth,colsep=1.5pt
171 ]{lower separation line head}
172 \end{beamercolorbox}
173
174 %
175 % Another matching rule which helps to frame the content
176 %
177 \hspace{.025\textwidth}\rule{.95\textwidth}{.5pt}
178 }
179 \fi % TACCheadertree
180
181
182 % The following command suppresses all navigation symbols. This is
183 % necessary in the TACC theme, since it overlaps where we want the
184 % logo to be.
185 \setbeamertemplate{navigation symbols}{}
186
187 % Align the navigation symbols vertically (still overlaps our logo!)
188 %\setbeamertemplate{navigation symbols}[vertical]{}
189
190 % Only places the slide-forward and slide-back symbol, but yes,
191 % this still overlaps our logo!
192 %\setbeamertemplate{navigation symbols}[only frame symbol]{}
193
194
195 \mode
196 <all>