Browse Source

Schmuckbordüre statt Farbe

Signed-off-by: Daniel Borchmann <daniel@algebra20.de>
master
Daniel 3 years ago
parent
commit
5c13e981d4
2 changed files with 18 additions and 14 deletions
  1. 18
    14
      lectures/latexkurs.cls
  2. BIN
      lectures/pics/fsfw-banner.png

+ 18
- 14
lectures/latexkurs.cls View File

@@ -102,14 +102,26 @@
102 102
 
103 103
   }}
104 104
 
105
-\setbeamertemplate{headline}{}
105
+\setbeamertemplate{frametitle}{
106
+  \vskip0.01\paperheight
107
+  \hskip0.02\textwidth
108
+  \begin{beamercolorbox}[rounded=true,dp=0.5ex,wd=0.96\textwidth]{frametitle}
109
+    \insertframetitle
110
+  \end{beamercolorbox}
111
+}
112
+
113
+\setbeamertemplate{headline}{
114
+  \hbox{%
115
+    \includegraphics[height=0.12\paperheight]{pics/fsfw-banner}
116
+  }
117
+  \vskip-0.12\paperheight
118
+}
106 119
 \setbeamercolor{footline}{bg=fsfwblue,fg=white}
107 120
 \setbeamertemplate{footline}{
108 121
   \hbox{%
109
-    \begin{beamercolorbox}[wd=\paperwidth,ht=2.25ex,dp=1ex]{footline}
110
-      ~
111
-    \end{beamercolorbox}%
122
+    \includegraphics[height=0.12\paperheight]{pics/fsfw-banner}
112 123
   }
124
+  \vskip-0.08\paperheight
113 125
 }
114 126
 
115 127
 \setbeamertemplate{blocks}[rounded][shadow=false]
@@ -142,7 +154,7 @@
142 154
 \AtBeginSection{{
143 155
   \setbeamertemplate{blocks}[rounded][shadow=true]
144 156
   \setbeamercolor{block body}{bg=fsfwgreen,fg=white}
145
-  \begin{frame}{~}
157
+  \begin{frame}
146 158
     \begin{block}{}
147 159
       \begin{center}
148 160
         \Large\strut\smash{\textbf{\insertsection}}
@@ -152,18 +164,10 @@
152 164
 }}
153 165
 
154 166
 \AtBeginDocument{{%
155
-    \addtobeamertemplate{frametitle}{\vspace*{-\headheight}}{}
167
+    \addtobeamertemplate{headline}{\hspace*{1cm}\hspace*{-1.05cm}\vspace*{1cm}}{}
156 168
     \frame{\usebeamertemplate{title page}}
157 169
   }}
158 170
 
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
-
166
-
167 171
 %%% misc
168 172
 
169 173
 \newcommand{\GNULinux}{GNU\lower-0.25ex\hbox{/}Linux}

BIN
lectures/pics/fsfw-banner.png View File


Loading…
Cancel
Save