diff options
author | Karl Berry <karl@freefriends.org> | 2009-07-24 23:28:47 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-07-24 23:28:47 +0000 |
commit | d9694ce1fb8dd23d0e0854338fff8c6cddc28d19 (patch) | |
tree | dba5c7f8404825ebc904b2ec794d27eef2e088c3 /Master/texmf-dist/tex/latex/beamer-FUBerlin/beamerouterthemeBerlinFU.sty | |
parent | a695cbe43e950e112ec6baba0398dd8cd921d9ec (diff) |
new latex package beamer-FUBerlin (24jul09)
git-svn-id: svn://tug.org/texlive/trunk@14434 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/beamer-FUBerlin/beamerouterthemeBerlinFU.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/beamer-FUBerlin/beamerouterthemeBerlinFU.sty | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/beamer-FUBerlin/beamerouterthemeBerlinFU.sty b/Master/texmf-dist/tex/latex/beamer-FUBerlin/beamerouterthemeBerlinFU.sty new file mode 100644 index 00000000000..0612ea7749f --- /dev/null +++ b/Master/texmf-dist/tex/latex/beamer-FUBerlin/beamerouterthemeBerlinFU.sty @@ -0,0 +1,100 @@ +% Copyright 2009 by Herbert Voss +% +% This file may be distributed and/or modified +% +% 1. under the LaTeX Project Public License and/or +% 2. under the GNU Public License. +% +% See the file doc/licenses/LICENSE for more details. + +\ProvidesPackage{beamerouterthemeBerlinFU}[2009/05/23 v. 0.01 (hv)] + +\mode<presentation> + +\setlength\textwidth{\paperwidth} +\addtolength\textwidth{-30pt} +\setbeamersize{text margin left=15pt,text margin right=15pt} +\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}} + +% Headline and footline + +\newcommand{\FU@footline}{% + \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}% +} + +% Sidebar + +\setbeamertemplate*{sidebar left}{} +\setbeamertemplate*{sidebar right}{} +\setbeamertemplate*{sidebar canvas left}{} +\setbeamertemplate*{sidebar canvas right}{} + +% Frame title: FU + +\defbeamertemplate{frametitle}{FU}{% + \vspace*{1mm} + \mbox{}\hfill\pgfuseimage{logo}\\[-15pt] + {\usebeamerfont*{frametitle}\usebeamercolor[fg]{frametitle}\insertframetitle}\\[-0.5\normalbaselineskip] + {\usebeamercolor{separation line}\hspace*{-15pt}\rule{\paperwidth}{\FU@rule}}\par\vspace{-1.5ex}} + +\def\beamer@fteright{\vskip0.35cm\advance\leftskip by 1.7cm\advance\rightskip by1.7cm} + +% Frame title continuations, FU +\defbeamertemplate*{frametitle continuation}{FU}{\insertcontinuationcountroman} + +\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*{-0.5ex} + \mbox{}\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} + }\par\vfill~\vspace*{-\fill}} + +\endinput
\ No newline at end of file |