-
Notifications
You must be signed in to change notification settings - Fork 0
/
beamerinnerthemefhs.sty
115 lines (98 loc) · 3.78 KB
/
beamerinnerthemefhs.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
% Copyright 2023 Andreas Bilke.
%
% Except where otherwise noted, this work "beamerfhs" by Andreas Bilke
% is licensed under CC BY-SA 4.0 (https://creativecommons.org/licenses/by-sa/4.0/)
%
% It is partially based on code from the metropolis theme by Matthias Vogelgesang
% and the LaTeX community (https://github.com/matze/mtheme/) licensed
% under CC BY-SA 4.0 (https://creativecommons.org/licenses/by-sa/4.0/)
\mode<presentation>
\RequirePackage{graphicx}
\usetikzlibrary{calc, positioning}
\setbeamertemplate{itemize items}[circle]
\setbeamertemplate{title page}{
\begin{tikzpicture}[remember picture, overlay, every node/.style={inner sep=0,outer sep=0}]
\node (fhslogobackground) at (current page.south west) [anchor=south west] {\includegraphics[height=\paperheight, width=!]{logo-fhs-background.pdf}};
\node (fhslogotitlepage) at ($(current page.north west) + (.62\paperwidth, -.082\paperheight)$) [anchor=north west] {\includegraphics[width=.1\paperwidth, height=!]{logo-fhs.pdf}};
\coordinate (fhslogotitlepagetextcoordy) at ($(current page.south west) + (0, .082\paperheight)$);
\node (fhslogotitlepagetext) at (fhslogotitlepage |- fhslogotitlepagetextcoordy) [anchor=south] {\includegraphics[width=.1\paperwidth, height=!]{logo-fhs-krn.pdf}};
\node (titlenode) at ($(current page.north west) + (.08\paperwidth, -.346\paperheight)$) [anchor=north west, align=left, text width=.7\paperwidth] {\ifx\inserttitle\@empty\else\usebeamertemplate*{title}\fi};
\node (subtitlenode) [below of=titlenode, text width=.7\paperwidth]{\ifx\insertsubtitle\@empty\else\usebeamertemplate*{subtitle}\fi};
\IfStrEq{\BEAMERFHS@license}{none}{}{
\node at ($(current page.south west) + (0.5, 0.5)$) [anchor=south west, align=left, font=\tiny, text width=.5\paperwidth] {
Except where otherwise noted, this work \enquote{\textbf{\inserttitle\ifx\insertsubtitle\@empty\else\ -- \insertsubtitle\fi}} by \insertshortauthor\
is licensed under \\
\textbf{\BEAMERFHSlicensename} \BEAMERFHSlicenseicons \BEAMERFHSlicenseurl
};
}
\end{tikzpicture}
}
\setbeamertemplate{title}{
\raggedright%
\inserttitle%
}
\setbeamertemplate{subtitle}{
\raggedright%
\insertsubtitle%
}
% Disable foot note counter on occasions where needed.
% Taken from https://brandonrozek.com/blog/latex-footnote-no-count/
\newcommand\blfootnote[1]{
\begingroup
\renewcommand\thefootnote{}\footnote{#1}
\addtocounter{footnote}{-1}
\endgroup
}
\setbeamertemplate{footnote}{%
\parindent 0em\noindent%
\raggedright
\tiny
\usebeamercolor{footnote}\hbox to 0.8em{\hfil\insertfootnotemark}\insertfootnotetext\par%
}
% prevent the per-slide logo from appering at the title page
\def\maketitle{%
\ifbeamer@inframe
\titlepage
\else
\frame[plain,noframenumbering]{\titlepage}
\fi
}
\def\titlepage{%
\usebeamertemplate{title page}
}
\define@key{beamerframe}{c}[true]{% centered
\beamer@frametopskip=0pt plus 1fill\relax%
\beamer@framebottomskip=0pt plus 1fill\relax%
\beamer@frametopskipautobreak=0pt plus .4\paperheight\relax%
\beamer@framebottomskipautobreak=0pt plus .6\paperheight\relax%
\def\beamer@initfirstlineunskip{}%
}
\providebool{fhs@standout}
\define@key{beamerframe}{standout}[true]{%
\booltrue{fhs@standout}
\begingroup
\setkeys{beamerframe}{c}
\setkeys{beamerframe}{plain}
\setkeys{beamerframe}{noframenumbering}
\setbeamercolor{background canvas}{
use=palette primary,
bg=palette primary.bg
}
\setbeamercolor{local structure}{
fg=palette primary.fg
}
\usebeamercolor[fg]{palette primary}
}
\pretocmd{\beamer@reseteecodes}{%
\ifbool{fhs@standout}{
\endgroup
\boolfalse{fhs@standout}
}{}
}{}{}
\AtBeginEnvironment{beamer@frameslide}{
\ifbool{fhs@standout}{
\centering
\usebeamerfont{standout}
}{}
}
\mode<all>