summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/beamer-FUBerlin/FUbeamer.cls
blob: d685f10e2b08a72acc2ad6d2d8985984f1745eba (plain)
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
%
% $Id: FUbeamer.cls 82 2009-06-14 15:24:07Z herbert $
%
%%
%% Praesentationen mit LaTeX
%%
%% Copyright (C) 2009 Herbert Voss <hvoss@tug.org>
%%
%% It may be distributed and/or modified under the conditions
%% of the LaTeX Project Public License, either version 1.3
%% of this license or (at your option) any later version.
%%
%% See http://www.latex-project.org/lppl.txt for details.
%%
%
\ProvidesClass{FUbeamer}[2009/08/11 v0.02 Vorlage Freie Universitaet Berlin (hv)]
%
\PassOptionsToPackage{ngerman}{babel}
\PassOptionsToPackage{table}{xcolor}
\PassOptionsToPackage{bookmarks,colorlinks}{hyperref}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{beamer}}
\ProcessOptions\relax
\LoadClass[covered]{beamer}
\mode<presentation>{\beamer@suppressreplacementstrue}

\RequirePackage[T1]{fontenc}
\RequirePackage{babel}
\RequirePackage{graphicx}
\RequirePackage{tabularx}
\RequirePackage[scaled]{helvet}
%
\definecolor{FUblue}{RGB}{0,51,102}
\definecolor{FUgreen}{RGB}{153,204,0}
\definecolor{FUred}{RGB}{204,0,0}
\definecolor{FUorange}{RGB}{255,153,51}
\definecolor{FUgray}{gray}{0.6}
%
\setbeamersize{text margin left=15pt,text margin right=15pt}
%
\setbeamercolor*{frametitle}{fg=FUgray,bg=white}
\setbeamercolor*{normal text}{fg=black,bg=white}
\setbeamercolor*{alerted text}{fg=FUred,bg=white}
\setbeamercolor*{footline}{fg=FUblue,bg=white}
\setbeamercolor*{structure}{fg=FUred}
\setbeamercolor*{palette primary}{use=structure,fg=structure.fg,bg=}
\setbeamercolor*{palette secondary}{fg=FUblue,bg=}
\setbeamercolor*{separation line}{fg=FUblue}
\setbeamercolor*{example text}{fg=FUgreen,bg=}
\setbeamercolor*{block title}{use=structure,fg=structure.fg,bg=FUblue!20!bg}
\setbeamercolor*{block title alerted}{use=alerted text,fg=alerted text.fg,bg=alerted text.fg!20!bg}
\setbeamercolor*{block title example}{use=example text,fg=example text.fg,bg=example text.fg!20!bg}
\setbeamercolor*{block body}{parent=normal text,use=block title,bg=block title.bg!50!bg}
\setbeamercolor*{block body alerted}{parent=normal text,use=block title alerted,bg=block title alerted.bg!50!bg}
\setbeamercolor*{block body example}{parent=normal text,use=block title example,bg=block title example.bg!50!bg}

\setbeamerfont{tiny structure}{series=\mdseries,size=\tiny}
\setbeamerfont{title}{size=\Large,series=\bfseries}
\setbeamerfont*{author}{size=\normalsize,series=\bfseries}
\setbeamerfont{frametitle}{size=\large,series=\bfseries}
\setbeamerfont{framesubtitle}{size=\footnotesize}
\setbeamerfont*{footline}{series=\mdseries,size=\Tiny}
\setbeamerfont*{date}{size=\footnotesize}

\setbeamertemplate{itemize item}[default]
\setbeamertemplate{sections/subsections in toc}[ball]
\setbeamertemplate{headline}{}
\setbeamertemplate{navigation symbols}{}
%\setbeamertemplate{alerted text}[default]
\beamerdefaultoverlayspecification{<+-| alert@+>}
\def\beamer@andinst{\quad }

\makeatletter
\setlength\textwidth{\paperwidth}
\addtolength\textwidth{-30pt}
\newlength\FU@image@width\setlength\FU@image@width{\textwidth}
\newlength\FU@image@height\setlength\FU@image@height{2.5cm}
\newlength\FU@rule\setlength\FU@rule{0.6pt}
%
\pgfdeclareimage[height=1cm]{logo}{FULogo.png}
\expandafter\pgfdeclareimage\expandafter[height=\the\FU@image@height]{bib}{FUbib.jpg}
\newlength\titlevsep\setlength\titlevsep{2mm}
\newsavebox\FU@box\savebox\FU@box{\pgfuseimage{bib}}
\mode
<all>
{
  \renewcommand\titlegraphic[2][]{%
    \edef\inserttitlegraphic{%
      \ifx\relax#2\relax\else
        \noexpand\includegraphics[height=\FU@image@height,width=\the\numexpr\textwidth-\wd\FU@box\relax sp,
          %viewpoint=0 0 \the\numexpr\FU@image@width-2\wd\FU@box\relax sp \FU@image@height,clip
          aspectratio=false,#1]{#2}%
      \fi}%
    }%
  \titlegraphic{}
}

\mode
<all>
{
  \newcommand\fachbereich[1]{\def\insertfachbereich{#1}}
  \fachbereich{}%
}

\defbeamertemplate*{title page}{FU}{%
  \vspace*{-1mm}
  ~\hfill\pgfuseimage{logo}\par
  \begingroup\fboxsep=0pt
  \colorbox{FUgray}{\makebox[\textwidth][l]{\rule{0pt}{\FU@image@height}\pgfuseimage{bib}%
    \inserttitlegraphic}}
  \endgroup
  \par\vfill
  {\usebeamerfont{title}\usebeamercolor[fg]{frametitle}\inserttitle}\\[\titlevsep]
  \ifx\insertsubtitle\@empty\else\vskip0.25em%
    {\usebeamerfont{subtitle}\insertsubtitle\par}%
  \fi%
  \par\vfill
  \begin{beamercolorbox}[sep=0pt]{author}
    {\usebeamerfont{author}\insertauthor}\\
    {\usebeamerfont{institute}\insertinstitute}
  \end{beamercolorbox}
  \par\vfill
  {\usebeamerfont{date}\usebeamercolor*[fg]{date}\insertdate%\rule[-.5ex]{0pt}{.5ex}
  }%
}

\defbeamertemplate{frametitle}{FU}{%
  \begin{beamercolorbox}[ht=4.25ex,dp=1ex]{headline}%
  \parbox{0.6\textwidth}{%
   \usebeamerfont*{frametitle}\usebeamercolor[fg]{frametitle}\insertframetitle}\hfill%
  \parbox{0.32\textwidth}{\pgfuseimage{logo}}\\
  {\usebeamercolor{separation line}\hspace*{-15pt}\rule{\paperwidth}{\FU@rule}}\par\vspace{-1.5ex}
  \end{beamercolorbox}}

\def\maketitle{\ifbeamer@inframe\titlepage\else\frame{\titlepage}\fi%
  \setbeamertemplate{frametitle}[FU]\setbeamertemplate{footline}[FU]}

\newcommand{\FU@footline}{%
  \mbox{}\insertfachbereich, \inserttitle, \insertdate 
  \hfill \insertframenumber/\inserttotalframenumber}

\defbeamertemplate{footline}{FU}{%
  \begin{beamercolorbox}[leftskip=15pt,rightskip=15pt,ht=2.5ex,dp=1ex]{footline}
  \hspace*{-15pt}{\usebeamercolor{separation line}\rule[1ex]{1.1\paperwidth}{\FU@rule}}\\
  \usebeamerfont{footline}\FU@footline\par
  \vspace{2ex}
  \end{beamercolorbox}%
}
\makeatother


\endinput