Debian Codegraph @

my_docs/22/lmod_zoom_mtg_2022_05_03/beamerthemeTACC16.sty

raw
1 %% TACC theme for beamer
2
3
4 \newif\if@rightfooterOption
5 \@rightfooterOptionfalse
6 \DeclareOption{rightfooter}{\@rightfooterOptiontrue}
7 \ProcessOptions
8
9
10 \newif\ifTACCheadernav
11 \DeclareOption{headernav}{\global\TACCheadernavtrue}
12
13 \newif\ifTACCheadertree
14 \DeclareOption{headertree}{\global\TACCheadertreetrue}
15 \ProcessOptions
16
17 \usepackage{xparse}
18 \ExplSyntaxOn
19 \NewDocumentCommand{\ifaspectratio}{mmm}
20 {
21 % Recover the option from those passed to the class
22 \keys_set:nf { zunbeltz/beameroptions } { \use:c { [email protected] } }
23 \str_if_eq:nVTF { #1 } \l_zunbeltz_aspectratio_tl { #2 } { #3 }
24 }
25 \NewDocumentCommand{\xifaspectratio}{mO{}}
26 {
27 % Recover the option from those passed to the class
28 \keys_set:nf { zunbeltz/beameroptions } { \use:c { [email protected] } }
29 \str_case:VnF \l_zunbeltz_aspectratio_tl { #1 } { #2 }
30 }
31 % We need to define only one key, the other are treated as `unknown'
32 \keys_define:nn { zunbeltz/beameroptions }
33 {
34 aspectratio .tl_set:N = \l_zunbeltz_aspectratio_tl,
35 aspectratio .initial:n = 43,
36 unknown .code:n = {},
37 }
38
39 % Generate the variants we need
40 \cs_generate_variant:Nn \keys_set:nn { nf }
41 \cs_generate_variant:Nn \str_if_eq:nnTF { nV }
42 \cs_generate_variant:Nn \str_case:nnF { V }
43 \ExplSyntaxOff
44
45 \mode<presentation>
46
47 \usefonttheme{TACC16}
48 \useinnertheme{TACC16}
49 \useoutertheme{TACC16}
50 \usecolortheme{TACC16}
51
52 \mode
53 <all>
54
55 \newcommand{\event}[1]{%
56 \makeatletter%
57 \def\TACC@eventname{#1}%
58 \makeatother}
59
60 \newcommand{\sectionframe}[1]{\section{#1}\frame{\Large\textbf{#1}}}
61 \newcommand{\subsectionframe}[1]{\subsection{#1}\frame{\large\textbf{#1}}}