-
Notifications
You must be signed in to change notification settings - Fork 1
/
beamerthemethi.sty
122 lines (103 loc) · 3.36 KB
/
beamerthemethi.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
\mode<presentation>
% Requirement
\RequirePackage{tikz}
\RequirePackage{xcolor}
\RequirePackage{graphicx}
%\RequirePackage{fontspec}
%\RequirePackage{FiraMono}
%\RequirePackage{opensans}
\RequirePackage{etoolbox}
%OverWrite MakeTitle and TitlePage
\newtoggle{tpage} % note: toggles are false by default
%\let\originaltitlepage\titlepage
%\renewcommand{\titlepage}{
% \global\toggletrue{tpage}
% \originaltitlepage
% \global\togglefalse{tpage}
%}
\let\originalmaketitle\maketitle
\renewcommand{\maketitle}{
\global\toggletrue{tpage}
\originalmaketitle
\global\togglefalse{tpage}
}
\AtBeginEnvironment{titlepage}{\global\toggletrue{tpage}}
% Variables
\newcommand{\thiDefaults}{
\def \thititlebackground {./styleimg/bg.png}
\def \thititlebackgroundmove {0,0} %-.1mm, -.1mm
\def \thititlefaklogo {./styleimg/thi_text_top_logo.pdf}
\def \thititlefaklogoheight {23mm}
\def \thititlefaklogomove {\the\paperwidth-10mm,\the\paperheight-8mm}
\def \thititlefak {}
\def \thifak{}
\def \thisidecolor {thiblue} %fakinfo
\def \thitoplogo {./styleimg/thi_logo.pdf} %thi_text.pdf %thi_logo.pdf
\def \thititleA {\inserttitle}
\def \thititleB {}
\def \thileftmargin {20mm}
}
\thiDefaults
% Manual Fakulty Title
% Is Padded To Border of Window, propapy needs move of faklogo
% \def \thititlefakinfo {\fontsize{9}{9}\selectfont Fakultät Informatik\hspace*{.5mm}}
\def \thititlefakwirt {\fontsize{9}{9}\selectfont
Fakultät für\hspace*{12.5mm}
\\%
\hfill
Wirtschaftsingenieurwesen\hspace*{-7mm}
}
%Fak PrepareCommands
\newcommand{\thiPrepInfo}{
\def \thifak {Informatik}
\def \thititlebackground {./styleimg/bg_info.jpg}
\def \thititlefaklogo {./styleimg/fakinfo.png}
\def \thititlefaklogoheight {25mm}
\def \thititlefak {}
\def \thisidecolor {\thifakinfocolor}
}
\newcommand{\thiPrepElo}{
\def \thifak {Elektrotechnik}
\def \thititlebackground {./styleimg/bg_elo.png}
\def \thititlefaklogo {./styleimg/fakelo.png}
\def \thititlefaklogoheight {25mm}
\def \thititlefak {}
\def \thisidecolor {\thifakelocolor}
}
\newcommand{\thiPrepMasch}{
\def \thifak {Maschinenbau}
\def \thititlebackground {./styleimg/bg_masch.png}
\def \thititlefaklogo {./styleimg/fakmasch.png}
\def \thititlefaklogoheight {25mm}
\def \thititlefak {}
\def \thisidecolor {\thifakmaschcolor}
}
\newcommand{\thiPrepWirt}{
\def \thifak {Wirtschaftsingenieurwesen}
%\def \thititlebackground {./styleimg/bg_masch.png}
%\def \thititlefaklogo {./styleimg/fakmasch.png}
\def \thititlefaklogoheight {20mm}
\def \thititlefaklogomove {\the\paperwidth-15.5mm,\the\paperheight-8mm}
\def \thititlefak {\thititlefakwirt}
\def \thisidecolor {\thifakwirtcolor}
}
\newcommand{\thiPrepBus}{
\def \thifak {Business School}
\def \thititlebackground {./styleimg/bg_bus.png}
\def \thititlefaklogo {./styleimg/fakbus.png}
\def \thititlefak {}
\def \thisidecolor {\thifakbuscolor}
}
% Margin Left
\setbeamersize{text margin left=\thileftmargin}
% Settings
\useinnertheme{thi}
\useoutertheme{thi}
\usecolortheme{thi}
%\usefonttheme{professionalfonts} % using non standard fonts for beamer
%\usefonttheme{serif} % default family is serif
%\usepackage{fontspec}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{blocks}[rounded][shadow=true]
\setbeamerfont{title}{size=\Large}
\mode<all>