Browse Source

Layout überarbeitet

Jetzt mit FSFW-Farben!

Signed-off-by: Daniel Borchmann <daniel@algebra20.de>
master
Daniel 4 years ago
parent
commit
e1ee8622fc
1 changed files with 100 additions and 17 deletions
  1. 100
    17
      lectures/latexkurs.cls

+ 100
- 17
lectures/latexkurs.cls View File

@@ -32,20 +32,94 @@
32 32
 %%% include variable macros
33 33
 
34 34
 \input{course-details}
35
-\titlegraphic{\ccLogo \ccAttribution \ccShareAlike}
36 35
 
37 36
 %%% theme
38 37
 
39
-\usetikzlibrary{shapes.multipart}
40
-\usetheme{CambridgeUS}
38
+\definecolor{fsfwblue}{RGB}{40,173,184}
39
+\definecolor{fsfwpurple}{RGB}{101,75,199}
40
+\definecolor{fsfwgreen}{RGB}{107,187,0}
41
+\definecolor{fsfwgray}{RGB}{240,240,240}
42
+
43
+\useinnertheme[shadow=true]{rounded}
44
+\useoutertheme{infolines}
45
+
46
+\setbeamercolor{section in toc}{fg=black,bg=white}
47
+\setbeamercolor{alerted text}{fg=fsfwgreen!80!gray}
48
+\setbeamercolor*{palette primary}{fg=fsfwpurple!60!black,bg=fsfwblue!60!white}
49
+\setbeamercolor*{palette secondary}{fg=fsfwpurple!70!black,bg=fsfwgray!15!white}
50
+\setbeamercolor*{palette tertiary}{bg=fsfwpurple!80!black,fg=fsfwgray!10!white}
51
+\setbeamercolor*{palette quaternary}{fg=fsfwpurple,bg=fsfwgray!5!white}
52
+
53
+\setbeamercolor*{sidebar}{fg=fsfwpurple,bg=gray!15!white}
54
+
55
+\setbeamercolor*{palette sidebar primary}{fg=fsfwpurple!10!black}
56
+\setbeamercolor*{palette sidebar secondary}{fg=white}
57
+\setbeamercolor*{palette sidebar tertiary}{fg=fsfwpurple!50!black}
58
+\setbeamercolor*{palette sidebar quaternary}{fg=fsfwgray!10!white}
59
+
60
+\setbeamercolor{titlelike}{parent=palette primary,bg=fsfwgreen}
61
+\setbeamercolor{frametitle}{bg=fsfwblue,fg=white}
62
+\setbeamerfont{frametitle}{series=\bfseries}
63
+\setbeamercolor{frametitle right}{bg=fsfwgray!60!white}
64
+
65
+\setbeamercolor*{separation line}{}
66
+\setbeamercolor*{fine separation line}{}
67
+
68
+\setbeamercolor{data in head/foot}{fg=white}
69
+
70
+\setbeamerfont{block title}{size={}}
71
+\setbeamercolor{titlelike}{parent=structure,bg=white}
72
+
73
+\setbeamertemplate{title page}{{
74
+    \setbeamercolor{block body}{bg=fsfwgreen,fg=white}
75
+    \setbeamertemplate{blocks}[rounded][shadow=true]
76
+    \begin{center}
77
+
78
+      \vspace*{2\bigskipamount}
79
+
80
+      \begin{block}{}
81
+        \centering
82
+        \vspace*{0.5\baselineskip}
83
+        {\LARGE \textbf{\inserttitle}}\\
84
+
85
+        \medskip
86
+
87
+        {\Large \textbf{\insertsubtitle}}
88
+        \vspace*{0.5\baselineskip}
89
+      \end{block}
90
+
91
+      \bigskip
92
+
93
+      {\ccLogo~\ccAttribution~\ccShareAlike}
94
+      \bigskip
95
+
96
+      \insertauthor
97
+
98
+      \smallskip
99
+
100
+      \insertdate
101
+    \end{center}
102
+
103
+  }}
104
+
105
+\setbeamertemplate{headline}{}
106
+\setbeamercolor{footline}{bg=fsfwblue,fg=white}
107
+\setbeamertemplate{footline}{
108
+  \hbox{%
109
+    \begin{beamercolorbox}[wd=\paperwidth,ht=2.25ex,dp=1ex]{footline}
110
+      ~
111
+    \end{beamercolorbox}%
112
+  }
113
+}
114
+
41 115
 \setbeamertemplate{blocks}[rounded][shadow=false]
116
+\setbeamercolor{block title}{fg=fsfwpurple}
117
+\usetikzlibrary{shapes.multipart}
42 118
 \setbeamertemplate{items}{\raisebox{0.3ex}{%
43 119
     \tikz[scale=0.13] \draw[fill] (0,0) -- (0,1) -- (0.9,0.5) -- cycle;}}
44
-\usetikzlibrary{arrows}
45
-\tikzset{>={stealth'[sep]}}
46 120
 \setbeamertemplate{navigation symbols}{}
47
-\setbeamertemplate{footline}{}
48 121
 \setbeamerfont{title}{series=\bfseries}
122
+
49 123
 \defbeamertemplate{block alerted begin}{bends}{%
50 124
   \begin{columns}
51 125
     \begin{column}{0.05\linewidth}
@@ -62,21 +136,33 @@
62 136
   \end{columns}
63 137
 }
64 138
 
139
+\usetikzlibrary{arrows}
140
+\tikzset{>={stealth'[sep]}}
65 141
 
66
-\AtBeginSection{
142
+\AtBeginSection{{
67 143
   \setbeamertemplate{blocks}[rounded][shadow=true]
68
-  \begin{frame}[plain]
144
+  \setbeamercolor{block body}{bg=fsfwgreen,fg=white}
145
+  \begin{frame}{~}
69 146
     \begin{block}{}
70 147
       \begin{center}
71
-        \textcolor{darkred}{\textbf{\Large \strut\smash{\insertpart}}}\\[1ex]
72
-        \textcolor{blue!70!black}{\strut\smash{\insertsection}}
148
+        \Large\strut\smash{\textbf{\insertsection}}
73 149
       \end{center}
74 150
     \end{block}
75 151
   \end{frame}
76
-  \setbeamertemplate{blocks}[rounded][shadow=false]
77
-  \setbeamertemplate{block alerted begin}[bends]
78
-  \setbeamertemplate{block alerted end}[bends]
79
-}
152
+}}
153
+
154
+\AtBeginDocument{{%
155
+    \addtobeamertemplate{frametitle}{\vspace*{-\headheight}}{}
156
+    \frame{\usebeamertemplate{title page}}
157
+  }}
158
+
159
+%%% make beamer always use the frametitle template, even if frametitle is empty
160
+
161
+% https://tex.stackexchange.com/questions/133698/calling-beamertemplate-frametitle-even-for-empty-frametitle
162
+
163
+\RequirePackage{etoolbox}
164
+\patchcmd{\endbeamer@frameslide}{\ifx\beamer@frametitle\@empty}{\iffalse}{}{\errmessage{failed to patch}}
165
+
80 166
 
81 167
 %%% misc
82 168
 
@@ -102,6 +188,3 @@
102 188
     RequirePackage,
103 189
   },
104 190
 }
105
-
106
-\AtBeginDocument{\frame[plain]{\maketitle}}
107
-

Loading…
Cancel
Save