forked from slaclab/slac-beamer-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
beamerthemeSLAC.sty
108 lines (79 loc) · 3.07 KB
/
beamerthemeSLAC.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
% Author: Stephan Kuschel
% kuschel@slac.stanford.edu
% first version: Dec 2018 by Kuschel
% Date: $Format:%ci$
% git sha: $Format:%H$
% https://github.com/slaclab/slac-beamer-template
\ProvidesPackage{beamerthemeSLAC}[2019/01/22]
\mode<presentation>
\useinnertheme[shadow=false]{rounded}
%*****colors*****
% https://www6.slac.stanford.edu/about/logo-resources
\definecolor{pantone}{RGB}{164, 0, 29}
\definecolor{blue}{RGB}{0, 115, 153}
\definecolor{skin}{RGB}{219, 199, 157}
%\setbeamertemplate{blocks}[rounded][shadow=false]
%*****Outer-Theme****
\setbeamercolor*{author in head/foot}{parent=palette tertiary}
\setbeamercolor*{title in head/foot}{parent=palette secondary}
\setbeamercolor*{date in head/foot}{parent=palette primary}
\setbeamercolor*{section in head/foot}{parent=palette tertiary}
\setbeamercolor*{subsection in head/foot}{parent=palette primary}
\setbeamercolor{item}{fg=pantone}
\setbeamertemplate{itemize items}{\textbullet}
\setbeamertemplate{itemize subitem}{{\bfseries --}}
\setbeamercolor{titlelike}{fg=black, bg=white}
\setbeamerfont{title}{series=\bfseries}
\setbeamerfont{subtitle}{series=\normalfont}
\setbeamercolor{frametitle}{fg=pantone}
\setbeamerfont{frametitle}{series=\bfseries}
%******Beamer Templates*****
\defbeamertemplate*{footline}{slac}
{
\hfill \insertframenumber{} / \inserttotalframenumber{} \hspace*{1ex}
}
\defbeamertemplate*{title page}{slac}
{
\setlength{\unitlength}{\paperwidth}%
\hspace*{-\dimexpr0.5\paperwidth-0.5\textwidth}% calculation of left margin width
\begin{picture}(1,0.75)%
\put(0,0){\includegraphics[width=\paperwidth]{slac-lines-pantone.png}}
\put(0.73,0.04){\includegraphics[width=3cm]{slac-logo-primary-2.png}}
\put(0.06, 0.04){\includegraphics[width=3.5cm]{doe-su-logo.png}}
\put(0.06, 0.5){\begin{minipage}[t]{\textwidth}
\begin{minipage}{0.7\textwidth}
\flushleft
\usebeamerfont{title}\inserttitle
\end{minipage} \par\medskip
\begin{minipage}{0.7\textwidth}
\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle
\end{minipage} \par
\bigskip
\usebeamerfont{author}\insertauthor\par
\usebeamerfont{institute}\insertinstitute\par
\usebeamerfont{date}\insertdate
\end{minipage}}
\end{picture}
}
\defbeamertemplate*{frametitle}{slac}
{
\setlength{\unitlength}{\paperwidth}%
\hspace*{-\dimexpr0.5\paperwidth-0.5\textwidth}% calculation of left margin width
\begin{picture}(1,0.13)
\put(0,0){\includegraphics[width=\paperwidth]{slac-frametitle-bg.png}}
\put(0,0.01){\includegraphics[width=\paperwidth-0.75cm]{slac-frametitle-bg-logo.png}}
\end{picture}%
\vspace*{-2em}
{\insertframetitle}
}
%******weiteres
\setbeamercolor{block title}{bg=pantone,fg=white}
\setbeamercolor{block body}{bg=skin!40,fg=black}
\setbeamercolor{block title alerted}{bg=pantone!70!black,fg=white}
\setbeamercolor{block body alerted}{bg=pantone,fg=white}
\setbeamercolor{block title example}{bg=blue!70!black,fg=white}
\setbeamercolor{block body example}{bg=blue,fg=white}
%\setbeamerfont{block title}{series=\bfseries}
\setbeamertemplate{navigation symbols}{}
%\setbeamersize{text margin left=1em,text margin right=1em}
\mode<all>