forked from Markus-de-Koster/LaTeX-beamer-TH-Koeln
-
Notifications
You must be signed in to change notification settings - Fork 0
/
beamerinnerthemethk.sty
101 lines (82 loc) · 3.64 KB
/
beamerinnerthemethk.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
\mode<presentation>
\setbeamersize{sidebar width right=0.5cm} % sets a margin to the right
\defbeamertemplate*{sidebar right}{thk}[1][]{
}
\setbeamersize{sidebar width left=1.1cm} % sets the left margin
\defbeamertemplate*{sidebar left}{thk}[1][]{
}
\setbeamersize{text margin left=0.3cm, text margin right=0pt} %new code
% Frame title
\defbeamertemplate*{frametitle}{thk}[1][]
{
\vskip0.4cm%
\begin{beamercolorbox}[wd=\paperwidth,ht=0cm]{frametitle}
\begin{tikzpicture}
\useasboundingbox (\thkmarginleft,\the\paperheight) rectangle(\thkrest,0.8*\the\paperheight);
%\fill[thk-orange, opacity=0.1] (0,0.8) rectangle(\the\paperwidth,2.9);
\ifx\insertframesubtitle\@empty%
{\node[anchor=west, black,font=\large] at (\thkmarginleft,0.85*\the\paperheight){\insertframetitle};}
\else%
{\node[anchor= west, black,font=\large] at (\thkmarginleft,0.85*\the\paperheight){\insertframetitle};%
\node[anchor= west, black,font=\small] at (\thkmarginleft,0.8*\the\paperheight){\insertframesubtitle};}%
\fi
\end{tikzpicture}
\end{beamercolorbox}
}
% Title page
\defbeamertemplate*{title page}{thk}[1][]
{
\vspace{-4em}
\begin{tikzpicture}
\useasboundingbox (0,0.15\paperheight) rectangle(\the\paperwidth,\the\paperheight);
\node[anchor=west, font=\fontsize{15pt}{15pt}\selectfont, text=black]
(N_titleA) at (0,0.85*\the\paperheight)
{\inserttitle};
\node[anchor=west, font=\fontsize{10pt}{10pt}\selectfont, text=gray]
(N_titleA) at (0,0.77*\the\paperheight)
{\insertsubtitle};
%\node[anchor=west, font=\fontsize{8pt}{8pt}\selectfont, text=black]
% (N_titleA) at (\thkmarginleft,0.68*\the\paperheight)
% {\insertinstitute};
\end{tikzpicture}
}
% Items
\setbeamertemplate{items}[circle]
\setbeamertemplate{enumerate items}[default]
% let sections appear with numbers (in circles) in the toc
\setbeamertemplate{section in toc}[circle]
% subsections will be shown as bullet points
\setbeamertemplate{subsection in toc}{
\hspace{1.2em}{\color{thk-violet}\rule[0.3ex]{3pt}{3pt}}~\inserttocsubsection\par}
%change color of items in toc
\setbeamercolor{section in toc}{fg=black}
%\setbeamercolor{subsection in toc}{fg=black}
%change color of itemize bullet points
\setbeamercolor*{itemize item}{fg=thk-red}
\setbeamercolor*{itemize subitem}{fg=thk-orange}
\setbeamercolor*{itemize subsubitem}{fg=thk-violet}
%\setbeamercolor*{item projected}{fg=red}
%change color of enumerate bullet points
\setbeamercolor*{enumerate item}{fg=thk-red}
\setbeamercolor*{enumerate subitem}{fg=thk-orange}
\setbeamercolor*{enumerate subsubitem}{fg=thk-violet}
% Theorem / Beispiel
%\setbeamercolor*{theorem}{fg=thk-violet} % this does not work for some reason, do this instead:
\AtBeginEnvironment{theorem}{%
\setbeamercolor{block title}{use=theorem text,fg=white,bg=thk-violet}
\setbeamercolor{block body}{parent=normal text,use=block title theorem,bg=block title theorem.bg!10!bg}
}
\newenvironment{variableblock}[3]{%
\setbeamercolor{block body}{#2}
\setbeamercolor{block title}{#3}
\begin{block}{#1}}{\end{block}}
%change color of subtitle
\setbeamercolor*{subtitle}{fg=gray}
%change font of number in toc section
%\setbeamerfont{section number projected}{%
% family=\rmfamily,series=\bfseries,size=\normalsize}
\setbeamercolor{section number projected}{bg=white,fg=thk-orange}
\setbeamercolor{subsection in toc number projected}{bg=white,fg=thk-orange} %this doesn't do anything
%\setbeamercolor{subsubsection number projected}{bg=white,fg=thk-violet}
\mode
<all>