-
Notifications
You must be signed in to change notification settings - Fork 1
/
beamerthemeiiasa.sty
74 lines (60 loc) · 1.91 KB
/
beamerthemeiiasa.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
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{beamerthemeiiasa}[2024/06/05 v0.3 IIASA Beamer theme]
\RequirePackage{pgfopts}
% tikz: calc library features used to position background images
\RequirePackage{tikz}
\usetikzlibrary{calc}
% If the user has not loaded the tikz 'external' library, make these no-ops
\providecommand{\tikzexternalenable}{}
\providecommand{\tikzexternaldisable}{}
% Define options
\pgfkeys{
/iiasa/version/.cd,
.is choice,
.store in=\iiasa@themeversion,
2024/.code={},
2019/.code={},
% NB This is only supported in the 2019 theme
/iiasa/frametitle/.cd,
.is choice,
.initial=default,
default/.code={},
long/.code={%
\setbeamertemplate{frametitle}[iiasa transparent] % transparent title bg
\setbeamercolor{frametitle}{bg=white} % instead of no background
\setbeamerfont{frametitle}{size=\large} % instead of \LARGE
},
}
% Command to set default values
\newcommand{\iiasa@setdefaults}{\pgfkeys{/iiasa/version=2024}}
% Process options
\iiasa@setdefaults
\ProcessPgfOptions{/iiasa}
%%% Common definitions used in sub-themes
\newlength{\iiasa@titleseparator@linewidth}
% \insertpresentationendframe
% see: https://tex.stackexchange.com/a/50090/94986
\def\insertpresentationendframe{\inserttotalframenumber}
\g@addto@macro{\appendix}{%
\immediate\write\@auxout{\string\@writefile{nav}{\noexpand\headcommand{\noexpand\def\noexpand\insertpresentationendframe{\the\c@framenumber}}}}
}
% Use the appropriate sub-themes
\RequirePackage{ifthen}
\ifthenelse{\equal{\iiasa@themeversion}{2024}}{
\usetheme{iiasa_2024}
}{
\usetheme{iiasa_2019}
}
% Common utilities
\newcommand{\iiasaicon}[1]{%
\raisebox{-0.15\baselineskip}{%
\includegraphics[height=2ex]{icon-#1.pdf}}}
\def\makefinalslide{%
\frame[plain,noframenumbering]{\finalslide}
}
\def\finalslide{%
\usebeamertemplate{final slide}
}
\RequirePackage{newunicodechar}
\newunicodechar{→}{$\rightarrow$}
\endinput