-
Notifications
You must be signed in to change notification settings - Fork 3
/
beamerthemetitech.sty
102 lines (102 loc) · 3.2 KB
/
beamerthemetitech.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
%% Tokyo Tech-flavored Metropolis theme by Yosuke Oyama ([email protected])
%% The original template was based on the Metropolis theme, as follows:
%%
%% ---------------------------------------------------------------------------
%% Copyright 2015 Matthias Vogelgesang and the LaTeX community. A full list of
%% contributors can be found at
%%
%% https://github.com/matze/mtheme/graphs/contributors
%%
%% and the original template was based on the HSRM theme by Benjamin Weiss.
%%
%% This work is licensed under a Creative Commons Attribution-ShareAlike 4.0
%% International License (https://creativecommons.org/licenses/by-sa/4.0/).
%% ---------------------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{beamerthemetitech}[2018/06/21 v1.0 Titech Beamer theme]
\RequirePackage{etoolbox}
\RequirePackage{pgfopts}
\pgfkeys{/titech/noimg/.code=\def\titechnoimg{1}}
\pgfkeys{/titech/pdfribbon/.code=\def\titechpdfribbon{1}}
\pgfkeys{/titech/.cd,
.search also={
/titech/inner,
/titech/outer,
/titech/color,
/titech/font,
}
}
\pgfkeys{
/titech/titleformat plain/.cd,
.is choice,
regular/.code={%
\let\titech@plaintitleformat\@empty%
\setbeamerfont{standout}{shape=\normalfont}%
},
smallcaps/.code={%
\let\titech@plaintitleformat\@empty%
\setbeamerfont{standout}{shape=\scshape}%
},
allsmallcaps/.code={%
\let\titech@plaintitleformat\MakeLowercase%
\setbeamerfont{standout}{shape=\scshape}%
\PackageWarning{beamerthemetitech}{%
Be aware that titleformat plain=allsmallcaps can lead to problems%
}
},
allcaps/.code={%
\let\titech@plaintitleformat\MakeUppercase%
\setbeamerfont{standout}{shape=\normalfont}%
\PackageWarning{beamerthemetitech}{%
Be aware that titleformat plain=allcaps can lead to problems%
}
},
}
\pgfkeys{
/titech/titleformat/.code=\pgfkeysalso{
font/titleformat title=#1,
font/titleformat subtitle=#1,
font/titleformat section=#1,
font/titleformat frame=#1,
titleformat plain=#1,
}
}
\pgfkeys{/titech/.cd,
usetitleprogressbar/.code=\pgfkeysalso{outer/progressbar=frametitle},
noslidenumbers/.code=\pgfkeysalso{outer/numbering=none},
usetotalslideindicator/.code=\pgfkeysalso{outer/numbering=fraction},
nosectionslide/.code=\pgfkeysalso{inner/sectionpage=none},
darkcolors/.code=\pgfkeysalso{color/background=dark},
blockbg/.code=\pgfkeysalso{color/block=fill, inner/block=fill},
}
\newcommand{\titech@setdefaults}{
\pgfkeys{/titech/.cd,
titleformat plain=regular,
}
}
\useinnertheme{titech}
\useoutertheme{titech}
\usecolortheme{titech}
\usefonttheme{titech}
\AtEndPreamble{%
\@ifpackageloaded{pgfplots}{%
\RequirePackage{pgfplotsthemetol}
}{}
}
\newcommand{\titechset}[1]{\pgfkeys{/titech/.cd,#1}}
\def\titech@plaintitleformat#1{#1}
\newcommand{\plain}[2][]{%
\PackageWarning{beamerthemetitech}{%
The syntax `\plain' may be deprecated in a future version of Titech.
Please use a frame with [standout] instead.
}
\begin{frame}[standout]{#1}
\titech@plaintitleformat{#2}
\end{frame}
}
\newcommand{\mreducelistspacing}{\vspace{-\topsep}}
\titech@setdefaults
\ProcessPgfOptions{/titech}
\endinput
%%
%% End of file `beamerthemetitech.sty'.