-
Notifications
You must be signed in to change notification settings - Fork 7
/
beamerthemeLUH.sty
89 lines (73 loc) · 2.22 KB
/
beamerthemeLUH.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
\mode<presentation>
% Requirement
\RequirePackage{tikz}
% Parameters
\newlength{\LUHBorder} % Distance between logo and edge of paper
\newlength{\LUHFooterHeight}
\newlength{\LUHFooterHeightTitle}
\newlength{\LUHLogoHeight}
\LUHBorder=0.3cm
\LUHLogoHeight=0.65cm % Will be larger on the title page
\LUHFooterHeight=1.8\LUHBorder
\LUHFooterHeightTitle=1.4\LUHFooterHeight
%\logo{\tikz \node}
% Settings
\useinnertheme{LUH}
\useoutertheme{LUH}
\usecolortheme{LUH}
% Specify an image (TeX commands) to be displayed on
% the title page. Most likely this will be something like:
% \includegraphics[width=\paperwidth]{some-filename}
\newcommand{\titleimage}[1]{%
\setbeamertemplate{title image}{#1}%
}
% Specify the uni logo as TeX commands (e.g. \includegraphics).
\newcommand{\unilogo}[1]{
\setbeamertemplate{university logo}{#1}%
}
\defbeamertemplate*{title image}{LUH}[1][]{%
\begin{tikzpicture}
\node[
fill=LUHblue, text=white,
text centered, text width=0.5\paperwidth,
minimum height=0.5\paperheight,
font=\scriptsize
] {
Use \texttt{\textbackslash titleimage\{something\}}
to place your image here, e.g.:\\[2em]
\texttt{\textbackslash titleimage\{\string\includegraphics{}
[width=0.6\string\paperwidth]\{my-photo\}\}}
};
\end{tikzpicture}
}
\defbeamertemplate*{university logo}{LUH}[1][]{%
\begin{tikzpicture}
\node[
fill=LUHblue, text=white,
text badly centered, text width=4\LUHLogoHeight,
minimum height=\LUHLogoHeight,
inner sep=2pt
] {
\fontsize{0.22\LUHLogoHeight}{0.5\LUHLogoHeight}\selectfont
The LUH logo is copyrighted, so you must include it
manually using the \texttt{\string\unilogo\{\}} command.
};
\end{tikzpicture}
}
\defbeamertemplate*{logo}{LUH}[1][]{%
\begin{tikzpicture}
\node[
fill=LUHblue, text=white,
text badly centered, text width=3\LUHLogoHeight,
minimum height=\LUHLogoHeight,
inner sep=2pt
] {
\fontsize{0.22\LUHLogoHeight}{0.5\LUHLogoHeight}\selectfont
Insert your department logo here using the
\texttt{\string\logo\{\}} command.
};
\end{tikzpicture}
}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{blocks}[default]
\mode<all>