-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.tex
234 lines (213 loc) · 7.31 KB
/
header.tex
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
% ===========================================================================
% header.tex (Release 2.1)
% ==========-----------------------------------------------------------------
%
% (C) in 2017-19 by Norman Markgraf (nmarkgraf(at)hotmail(dot)com)
%
% 17. Jan. 2019 (nm) Some tiny changes.
% 05. Jun. 2020 (nm) Die "colums"-Umgebung hacken, so das onlytextwidth
% zum default wird. Damit ragen die Spalten nicht mehr
% links und rechts aus dem Frame heraus.
%
% ---------------------------------------------------------------------------
%\def\logowidth{1.3cm}
%\def\logoheight{1.3cm}
%\def\logoxshift{-0.85cm}
%\def\logoyshift{-0.85cm}
\newcommand{\handleSection}{%
%
% New section, not section in headline
%
\setbeamertemplate{headline}[nosectioninhead]
%
\begin{frame}
\frametitle{\phantom{ÜgyT}}
\vspace*{1.2em}
\vspace*{7cm}
\begin{tikzpicture}[remember picture, overlay]
\node[% section title
xshift=\logoxshift-6.6cm,
yshift=3.8cm,
inner sep=0pt
] at (current page.south east){%
\makebox[\sectiontitleboxwidth][r]{%
{%
\usebeamercolor{sectionnumber title}%
\usebeamerfont{sectionnumber title}\insertsectionnumber\hspace*{0.15em}%
}%
{%
\usebeamercolor[fg]{section title}%
\usebeamerfont{section title}\NoHyper\insertsectionhead\endNoHyper%
}
}% makebox
};%
\end{tikzpicture}%
\end{frame}
% Reset headline. Put section in head
\setbeamertemplate{headline}[sectioninhead]
}
\newcommand{\handleSectionStar}{%
%
% New section, not section in headline
%
\setbeamertemplate{headline}[nosectioninhead]
%
\begin{frame}
\frametitle{\phantom{ÜgyT}}
\vspace*{1.2em}
\vspace*{7cm}
\begin{tikzpicture}[remember picture, overlay]
\node[% section title
xshift=\logoxshift-6.6cm,
yshift=3.8cm,
inner sep=0pt
] at (current page.south east){%
\makebox[\sectiontitleboxwidth][r]{%
{%
\usebeamercolor[fg]{section title}%
\usebeamerfont{section title}\NoHyper\insertsectionhead\endNoHyper%
}
}% makebox
};
\end{tikzpicture}%
\end{frame}
% Reset headline. Put section in head
\setbeamertemplate{headline}[sectioninhead]
}
\AtBeginSection[\handleSectionStar]{\handleSection}
\newcommand{\handleSubsection}{%
%
% New subsection, not section in headline
%
\setbeamertemplate{headline}[nosectioninhead]
%
\begin{frame}
\frametitle{\phantom{ÜgyT}}
\vspace*{1.2em}
\vspace*{7cm}
\begin{tikzpicture}[remember picture, overlay]
\node[% section title
xshift=\logoxshift-6.6cm,
%anchor=south east,
yshift=3.8cm,
inner sep=0pt
] at (current page.south east){%
% \fbox{
\makebox[\sectiontitleboxwidth][r]{%
{%
\usebeamercolor{sectionnumber title}%
\usebeamerfont{sectionnumber title}\insertsectionnumber.%\insertsubsectionnumber\hspace*{0.15em}%
}%
{%
\usebeamercolor{subsectionnumber title}%
\usebeamerfont{subsectionnumber title}\insertsubsectionnumber\hspace*{0.15em}%
}%
{%
\usebeamercolor[fg]{subsection title}%
\usebeamerfont{subsection title}\NoHyper\insertsubsectionhead\endNoHyper%
}
}% makebox
% }% fbox
};
\end{tikzpicture}%
\end{frame}
% Reset headline. Put section in head
\setbeamertemplate{headline}[sectioninhead]
% \addtocounter{framenumber}{-1}% If you don't want them to affect the slide number
}
\newcommand{\handleSubsectionStar}{%
%
% New subsection, not section in headline
%
\setbeamertemplate{headline}[nosectioninhead]
%
\begin{frame}
\frametitle{\phantom{ÜgyT}}
\vspace*{1.2em}
\vspace*{7cm}
\begin{tikzpicture}[remember picture, overlay]
\node[% section title
xshift=\logoxshift-6.6cm,
%anchor=south east,
yshift=3.8cm,
inner sep=0pt
] at (current page.south east){%
% \fbox{
\makebox[\sectiontitleboxwidth][r]{%
{%
\usebeamercolor[fg]{subsection title}%
\usebeamerfont{subsection title}\NoHyper\insertsubsectionhead\endNoHyper%
}
}% makebox
% }% fbox
};% war mal -3pt
\end{tikzpicture}%
\end{frame}
% Reset headline. Put section in head
\setbeamertemplate{headline}[sectioninhead]
}
\AtBeginSubsection[\handleSubsectionStar]{\handleSubsection}
%
% Remove unwanted toc entries:
%
\renewcommand\addcontentsline[3]{%
\ifthenelse{\equal{#1}{toc}}{\relax}{\addtocontents{#1}{\protect\contentsline{#2}{#3}}}
}
\setbeamertemplate{section in toc}{%
\leavevmode\leftskip=2.75ex%
\llap{%
\usebeamerfont*{section number projected}%
\usebeamercolor[bg]{section number projected}%
\vrule width2.50ex height2.05ex depth.4ex%
\hskip-2.50ex%
\hbox to2.50ex{\hfil\color{fg}\inserttocsectionnumber\hfil}}%
\kern1.35ex\inserttocsection\par}
%
% BUGFIX für caption bug in 2018!
%
% see: https://tex.stackexchange.com/questions/426088/texlive-pretest-2018-beamer-and-subfig-collide/426090#426090
% see: https://www.mrunix.de/forums/showthread.php?77329-Undefined-control-sequence-magyar-captionfix-beim-Laden-von-subfig-in-beamer
% see: https://gitlab.com/axelsommerfeldt/caption/issues?state=opened
%
\makeatletter
\let\@@magyar@captionfix\relax
\makeatother
%
% Default für columns auf "onlytextwidth" setzen, damit die Splaten besser
% ins Bild passen.
% Quelle: https://tex.stackexchange.com/questions/204022/make-onlytextwidth-default-width-of-columns
%
\makeatletter
\long\def\beamer@newenvnoopt#1#2#3#4{%
\expandafter\renewcommand\expandafter<\expandafter>\csname#1\endcsname[#2]{#3}%<- here
\expandafter\long\expandafter\def\csname end#1\endcsname{#4}%
}
\long\def\beamer@newenvopt#1#2[#3]#4#5{%
\expandafter\renewcommand\expandafter<\expandafter>\csname#1\endcsname[#2][#3]{#4}%<- here
\expandafter\long\expandafter\def\csname end#1\endcsname{#5}%
}
\renewenvironment<>{columns}[1][]{%
\begin{actionenv}#2%
\def\beamer@colentrycode{%
\hbox to\textwidth\bgroup%
\leavevmode%
\hskip-\beamer@leftmargin%
\nobreak%
\beamer@tempdim=\textwidth%
\advance\beamer@tempdim by\beamer@leftmargin%
\advance\beamer@tempdim by\beamer@rightmargin%
\hbox to\beamer@tempdim\bgroup%
\hbox{}\hfill\ignorespaces}%
\def\beamer@colexitcode{\egroup%
\nobreak%
\hskip-\beamer@rightmargin\egroup}%
\ifbeamer@centered\setkeys{beamer@col}{c}\else\setkeys{beamer@col}{t}\fi%
\setkeys{beamer@col}{#1, onlytextwidth}% added "onlytextwidth"
\par%
\beamer@colentrycode%
\def\beamer@colclose{}\ignorespaces}%
{\beamer@colclose\def\beamer@colclose{}\beamer@colexitcode\end{actionenv}}%
\makeatother
\InputIfFileExists{include-notes.tex}{\relax}{\relax}
\InputIfFileExists{header_costums.tex}{\relax}{\relax}
% ===========================================================================