From d6b1768b34d709aceb9834358133eea3499e1151 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 5 Apr 2012 18:19:36 +0000 Subject: new beamer package hobete (2apr12) git-svn-id: svn://tug.org/texlive/trunk@25859 c570f23f-e606-0410-a88d-b1316a301751 --- .../tex/latex/hobete/beamercolorthemehohenheim.sty | 81 +++++++++++ .../tex/latex/hobete/beamerouterthemehohenheim.sty | 91 ++++++++++++ .../hobete/beamerouterthemehohenheimposter.sty | 90 ++++++++++++ .../tex/latex/hobete/beamerthemehohenheim.sty | 25 ++++ Master/texmf-dist/tex/latex/hobete/hobete.sty | 160 +++++++++++++++++++++ 5 files changed, 447 insertions(+) create mode 100644 Master/texmf-dist/tex/latex/hobete/beamercolorthemehohenheim.sty create mode 100644 Master/texmf-dist/tex/latex/hobete/beamerouterthemehohenheim.sty create mode 100644 Master/texmf-dist/tex/latex/hobete/beamerouterthemehohenheimposter.sty create mode 100644 Master/texmf-dist/tex/latex/hobete/beamerthemehohenheim.sty create mode 100644 Master/texmf-dist/tex/latex/hobete/hobete.sty (limited to 'Master/texmf-dist/tex/latex/hobete') diff --git a/Master/texmf-dist/tex/latex/hobete/beamercolorthemehohenheim.sty b/Master/texmf-dist/tex/latex/hobete/beamercolorthemehohenheim.sty new file mode 100644 index 00000000000..2e3fba7cc45 --- /dev/null +++ b/Master/texmf-dist/tex/latex/hobete/beamercolorthemehohenheim.sty @@ -0,0 +1,81 @@ +% Copyright 2008--2012 by tgoerlach < tobias.goerlach@uni-hohenheim.de > +% https://bitbucket.org/tobig/hohenheimbeamertheme/overview +% +% 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. +% +% Create your own colortheme! It´s fun! +% Theme Version 0003 + +\mode +%% Ok folks first we define the Colors as allowed by the Uni administration in the CI policy + %% actually the main color is Pantone 2955 C but the Uni allows the following colors in cmyk +\definecolor[named]{Hohenheim}{cmyk}{1.0,0.5,0,0.45} % Hohenheim main color 2955 C shaded 100% bis 10 % +% Shading the color for the Theme +\definecolor{Hohenheimbg}{named}{white} +\colorlet{Hohenheimbg}{Hohenheim!20!white} + +\definecolor{HohenheimBW}{cmyk}{0,0,0,0.6} % This is nothing else than grey (for printing) 50%-10% + +% Sekundärfarben % secondary colors non glowing +% use with precaution +% not used in the Theme; for individually use (beside alerts) +\definecolor{Hohenheim_darkgreen}{cmyk}{1.0,0.55,0.8,0} +\definecolor{Hohenheim_green}{cmyk}{0.5,0.2,1,0} +\definecolor{Hohenheim_red}{cmyk}{0.55,0.95,0.75,0} +\definecolor{Hohenheim_lightblue}{cmyk}{0.6,0.1,0.1,0} +\definecolor{Hohenheim_midgray}{cmyk}{0.55,0.4,0.45,0} +% Sekundärfarben Leuchtend % secondary colors glowing +\definecolor{Hohenheim_glow_darkgreen}{cmyk}{0.9,0,1,0} +\definecolor{Hohenheim_glow_yellow}{cmyk}{0,0.2,1,0} +\definecolor{Hohenheim_glow_red}{cmyk}{0.2,1,1,0} +\definecolor{Hohenheim_glow_lightblue}{cmyk}{1,0,0,0} + + + + +\setbeamercolor{normal text}{ bg=brown!2!white} +\setbeamercolor{alerted text}{fg=Hohenheim_glow_red, bg= Hohenheimbg} +\setbeamercolor*{palette primary}{fg=Hohenheimbg, bg=Hohenheim} % Block für Titel +\setbeamercolor*{palette secondary}{fg=Hohenheim, bg=Hohenheimbg} % rechts oben (Logo) ZB +\setbeamercolor*{palette tertiary}{fg=Hohenheim, bg=Hohenheimbg} +\setbeamercolor*{palette quaternary}{bg=Hohenheim!75!white, fg=Hohenheimbg} + +\setbeamercolor*{sidebar}{fg=white,bg=Hohenheimbg} + +\setbeamercolor*{palette sidebar primary}{fg=white,} +\setbeamercolor*{palette sidebar secondary}{fg=white, bg= Hohenheim} +\setbeamercolor*{palette sidebar tertiary}{fg=white, } +\setbeamercolor*{palette sidebar quaternary}{fg=white,} + + +\setbeamercolor{frametitle}{fg=Hohenheim, bg=Hohenheimbg} +\setbeamercolor{frametitle right}{bg=Hohenheimbg} + +\setbeamercolor*{block title}{fg=white, bg=Hohenheim} +\setbeamercolor*{block title alerted}{fg=black,bg=Hohenheimbg} +\setbeamercolor*{block title example}{fg=white,bg=Hohenheimbg} + +\setbeamercolor*{block body}{fg=black,bg=Hohenheim!5!white} +\setbeamercolor*{block body alerted}{fg=black,bg=Hohenheim!5!white} +\setbeamercolor*{block body example}{fg=black,bg=Hohenheim!5!white} + +\setbeamercolor*{separation line}{} +\setbeamercolor*{fine separation line}{} +\setbeamercolor*{titlelike}{fg=Hohenheimbg, bg=Hohenheim} + +\setbeamercolor*{item projected}{fg=white, bg=Hohenheim} +\setbeamercolor*{itemize item}{fg=Hohenheim, bg=Hohenheim} +\setbeamercolor*{section number projected}{fg=Hohenheim, bg=Hohenheimbg} +\setbeamercolor*{section in toc}{fg=Hohenheim} +\setbeamercolor*{subsection in toc}{fg=Hohenheim} +\setbeamercolor*{subsubsection in toc}{fg=Hohenheim} +%\setbeamercolor*{postercolumn}{fg=Hohenheim, bg=Hohenheim!5!white} + +\mode + + diff --git a/Master/texmf-dist/tex/latex/hobete/beamerouterthemehohenheim.sty b/Master/texmf-dist/tex/latex/hobete/beamerouterthemehohenheim.sty new file mode 100644 index 00000000000..115aeb99c3b --- /dev/null +++ b/Master/texmf-dist/tex/latex/hobete/beamerouterthemehohenheim.sty @@ -0,0 +1,91 @@ +% Copyright 2010 by tgoerlach tobias.goerlach@uni-hohenheim.de +% some marked locs are taken from beamerouterthemeinfolines.sty as distributed under LPPL/GNU +%in the beamer bundle and copyrighted by Till Tantau 2007 +% which now can be found at: https://bitbucket.org/rivanvx/beamer/overview +% locs taken form this file are marked as follows: %BEGIN infolines (begin of parts form infolines) ; %END infolines (end of parts form infolines) +% +% +% 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. +% Theme Version 0003 + +\mode + +\setbeamercolor*{author in head/foot}{parent=palette primary} +\setbeamercolor*{title in head/foot}{parent=palette quaternary} +\setbeamercolor*{date in head/foot}{parent=palette secondary} + +\setbeamercolor*{section in head/foot}{parent=palette tertiary} +\setbeamercolor*{subsection in head/foot}{parent=palette primary} +\setbeamercolor*{frametitle in title}{parent=palette secondary} + + +\defbeamertemplate*{footline}{hohenheim theme} +{%BEGIN infolines + \leavevmode% + \hbox{% + \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}% + \usebeamerfont{author in head/foot}\insertshortauthor~~\beamer@ifempty{\insertshortinstitute}{}{(\insertshortinstitute)} + \end{beamercolorbox}% + \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}% + \usebeamerfont{title in head/foot}\insertshorttitle + \end{beamercolorbox}% + \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}% + \usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em} + \insertframenumber{} / \inserttotalframenumber\hspace*{2ex} + \end{beamercolorbox}}% + \vskip0pt% +}%END infolines +\defbeamertemplate*{headline}{hohenheim theme} +{%BEGIN infolines + \leavevmode% + \hbox{% + \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.25ex,dp=1ex,right]{section in head/foot}% + \usebeamerfont{section in head/foot}\insertsectionhead\hspace*{2ex} + \end{beamercolorbox}% + \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.25ex,dp=1ex,left]{subsection in head/foot}% + \usebeamerfont{subsection in head/foot}\hspace*{2ex}\insertsubsectionhead + \end{beamercolorbox}}% + \vskip0pt% +} + +\setbeamersize{text margin left=1em,text margin right=1em} +%END infolines + + +% +% Oki now werde getting close.. +% We redefine the Frametitle to place our own logo there. remark: this is considered as a hack. + +\setbeamerfont{frametitle}{series=\bfseries} % Shouldnt be in this file, should be in the fontheme + +% Two possible solutions i prefer the second so far +%\setbeamertemplate{frametitle} +%{% + % \nointerlineskip +% +%\begin{beamercolorbox}[wd=\paperwidth,dp=1ex, ht=4.5ex, sep=0.5ex, colsep*=0pt]{frametitle in title}% + % \usebeamerfont{frametitle} \begin{tikzpicture}[remember picture, overlay]% + %\draw[very thick, black] ([yshift=-4ex]current page.north west) -- ([yshift=-3ex]current page.north) -- ([yshift=-4ex]current page.north east); + %\node[yshift=-4ex, xshift=4ex] [left= of current page.north east] { \insertmylogo}; + %\end{tikzpicture}\insertframetitle + %\end{beamercolorbox}% + % \nointerlineskip +%\begin{beamercolorbox}[wd=\paperwidth,dp=.5ex, ht=.5ex, sep=0.5ex, colsep*=0pt]{subsection in head/foot}% + % \end{beamercolorbox} + %}% + +\setbeamertemplate{frametitle} +{% + \nointerlineskip +\begin{beamercolorbox}[wd=\paperwidth,dp=1ex, ht=4.5ex, sep=0.5ex, colsep*=0pt]{frametitle in title}% + \usebeamerfont{frametitle} \strut \insertframetitle \hfill \raisebox{-2ex}[0pt][-\ht\strutbox ]{ \insertmylogo} + \end{beamercolorbox}% + }%% + + +\mode diff --git a/Master/texmf-dist/tex/latex/hobete/beamerouterthemehohenheimposter.sty b/Master/texmf-dist/tex/latex/hobete/beamerouterthemehohenheimposter.sty new file mode 100644 index 00000000000..d9d4ad38fe0 --- /dev/null +++ b/Master/texmf-dist/tex/latex/hobete/beamerouterthemehohenheimposter.sty @@ -0,0 +1,90 @@ +% Copyright 2010-2012 by tgoerlach < tobias.goerlach@uni-hohenheim.de > +% This is beamerouterhohenheimposter to support beamerposter +% https://bitbucket.org/tobig/hohenheimbeamertheme/ +% +% 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. +% file version .1 +% theme version 0003 + +\newcounter{tgpostercount} +\refstepcounter{tgpostercount} + +\setbeamertemplate{block begin}{ + \vskip.75ex + \begin{beamercolorbox}[ht=3.8ex,dp=0.5ex,center,leftskip=-1em,colsep*=.75ex, sep=1mm, rounded=true]{block title}% + \usebeamerfont*{block title}% + {\phantom{Gp} \thetgpostercount .~\insertblocktitle\refstepcounter{tgpostercount}}% phantom because of baseline problem + \end{beamercolorbox}% + {\ifbeamercolorempty[bg]{block body}{}{\nointerlineskip\vskip-0.5pt}}% + \usebeamerfont{block body}% + \begin{beamercolorbox}[leftskip=1em,colsep*=.75ex,sep=0.5ex,vmode, sep=1mm, rounded=true]{block body}% + \ifbeamercolorempty[bg]{block body}{\vskip-.25ex}{\vskip-.75ex}\vbox{}% + } + \setbeamertemplate{block end}{ + \end{beamercolorbox} +} + + +\setbeamertemplate{headline}{ + \leavevmode + \begin{beamercolorbox}[wd=\paperwidth]{frametitle} + \begin{columns}[T] + \begin{column}{.02\paperwidth} + \end{column} + \begin{column}{.8\paperwidth}poster-surf.tex + \vskip4ex + \raggedleft + \usebeamercolor{title in headline}{\color{fg}\textbf{\LARGE{\inserttitle}}\\[1ex]} + \usebeamercolor{author in headline}{\color{fg}\large{\insertauthor}\\[1ex]} + \usebeamercolor{institute in headline}{\color{fg}\large{\insertinstitute}\\[1ex]} + \end{column} + \begin{column}{.2\paperwidth} + + \begin{center} + \insertmylogo + \end{center} + + \end{column} + \begin{column}{.02\paperwidth} + \end{column} + \end{columns} + \vskip2ex + \end{beamercolorbox} + \begin{beamercolorbox}[wd=\paperwidth]{lower separation line head} + \rule{0pt}{3pt} + \end{beamercolorbox} +} + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\beamertemplatenavigationsymbolsempty +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\setbeamertemplate{footline}{ + \begin{beamercolorbox}[wd=\paperwidth]{upper separation line foot} + \rule{0pt}{3pt} + \end{beamercolorbox} + \leavevmode% + \begin{beamercolorbox}[ht=4ex,leftskip=1em,rightskip=1em]{author in head/foot}% + \texttt{\website} + \hfill + \texttt{\email } + \vskip1ex + \end{beamercolorbox} + \vskip0pt% + \begin{beamercolorbox}[wd=\paperwidth]{lower separation line foot} + \rule{0pt}{3pt} + \end{beamercolorbox} +} + + + + +% equal font sizes for all levels +\setbeamerfont{itemize/enumerate body}{size=\normalsize} +\setbeamerfont{itemize/enumerate subbody}{size=\normalsize} +\setbeamerfont{itemize/enumerate subsubbody}{size=\normalsize} \ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/hobete/beamerthemehohenheim.sty b/Master/texmf-dist/tex/latex/hobete/beamerthemehohenheim.sty new file mode 100644 index 00000000000..650d5d8ac81 --- /dev/null +++ b/Master/texmf-dist/tex/latex/hobete/beamerthemehohenheim.sty @@ -0,0 +1,25 @@ +% Copyright 2010 -- 2012 by tobig +% https://bitbucket.org/tobig/hohenheimbeamertheme/overview +% +% 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. + +\mode + +\useoutertheme{hohenheim} +\usefonttheme{professionalfonts} +\useinnertheme[shadow=true]{rounded}% This is a beamer-class default theme +\usecolortheme{hohenheim} +%Should be in a innertheme +\setbeamertemplate{itemize items}[circle] + \setbeamertemplate{enumerate items}[circle] + \setbeamertemplate{section in toc}[circle] + \setbeamertemplate{subsection in toc}[circle] + \setbeamerfont{section number projected}{size=\normalsize,series=\bfseries} + +\mode + diff --git a/Master/texmf-dist/tex/latex/hobete/hobete.sty b/Master/texmf-dist/tex/latex/hobete/hobete.sty new file mode 100644 index 00000000000..e7b0415097d --- /dev/null +++ b/Master/texmf-dist/tex/latex/hobete/hobete.sty @@ -0,0 +1,160 @@ +% Copyright 2010 -- 2012 by tobig +% https://bitbucket.org/tobig/hohenheimbeamertheme/overview +% +% 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. + +\NeedsTeXFormat{LaTeX2e} + \ProvidesPackage{hobete}[2012/3/15 Beamer Theme for University of Hohenheim] + \newcommand{\hoversion}{0003} +\RequirePackage{tikz} +\RequirePackage{etextools} +\RequirePackage{xkeyval} + +\typeout{ ________________________________________________} + \typeout{| This is the Hohenheim Beamer Theme \hoversion.} + \typeout{| Please remark this is not a official Theme} + \typeout{| The University of Hohenheim will give NO support at all} + \typeout{| If using the Logos, please make sure that you have the permission to do so!} + \typeout{| } +\typeout{|________________________________________________} + + + +% Lets hack some stuff + +\def\insertmylogo{} +\def\mylogo#1{ \def\insertmylogo{#1} } + +% Now creating the Sectionpage as i want it to be +% Starting off with the Option key +\define@boolkey+[tg]{test}{plain}[false]{ +\iftg@test@plain +\begin{frame}[plain]\begin{beamercolorbox}[wd=\textwidth,ht=4ex,dp=1ex,center,rounded=true,shadow=true]{titlelike}\huge \insertsection \end{beamercolorbox}\end{frame} +\else +\frame{\begin{beamercolorbox}[wd=\textwidth,ht=4ex,dp=1ex,center,rounded=true,shadow=true]{titlelike}\huge \insertsection \end{beamercolorbox}} +\fi +}{value not allowed} + +\renewcommand{\sectionpage}[1][plain=false]{ +\presetkeys[tg]{test}{plain=false}{} + \setkeys[tg]{test}{#1} +} + + + + +%Here comes the Framelist +% +\newcommand{\printframelist}{ } +\newcommand{\@savefrml}{ } +\newcommand{\frameliston}{% +\let\oldframetitle\frametitle +\newcommand{\tgframelistfronthook}{$\cdot$} +\newcommand{\tgframelistbackhook}{\\ } +\newcommand\myaddto[1]{% + \write\@auxout{\noexpand\@writefile{frml}{\noexpand ##1}}} + \renewcommand{\printframelist}{\@starttoc{frml}} +\renewcommand{\frametitle}[1]{\oldframetitle{##1}% +\xifstrequal{##1}{\@savefrml}{}{ +\myaddto{ \noexpand% +\tgframelistfronthook ##1 \noexpand\tgframelistbackhook}% +} +\global\def\@savefrml{##1}% +} +} + + + + + + + +%------------------ +% The Fancy Title stuff: +% First defining the print user code +\newcommand{\HohenheimLogoKlein}[1]{% +\def\inserthohenheimlogoklein{#1} } + +\newcommand{\HohenheimLogoLang}[1]{% +\def\inserthohenheimlogolang{#1} +} + +% Now defining the respective Functions for the titlepage +% (They also could be defined in the Decision Tree below, but this is better to read) +% First if only the small logo exists +\newcommand{\inserthotpwolang}[1]{\frame[plain]{ + \begin{tikzpicture}[remember picture,overlay] + \node [scale=1.7,fill opacity=.2,text opacity=.07] at (current page.south west) {\includegraphics{\inserthohenheimlogoklein} }; + %\node [scale=0.9,fill opacity=.2,text opacity=.8] at (7,0) {\includegraphics{\inserthohenheimlogolang} }; + \end{tikzpicture} + \maketitle + \begin{center}% + #1% + \end{center} + } +} +% if no short logo +\newcommand{\inserthotpwokurz}[1]{\frame[plain]{ + \begin{tikzpicture}[remember picture,overlay] + % \node [scale=1.7,fill opacity=.2,text opacity=.07] at (current page.south west) {\includegraphics{logoklein.eps} }; + \node [scale=0.9,fill opacity=.2,text opacity=.8, xshift=1.2cm, yshift=-1.5cm] at (current page.north) {\includegraphics{\inserthohenheimlogolang} }; + \end{tikzpicture}\\[1cm] + \maketitle +\begin{center}% + #1% + \end{center} + } +} +%if both are defined +\newcommand{\inserthotp}[1]{\frame[plain]{ + \begin{tikzpicture}[remember picture,overlay] + \node [scale=1.7,fill opacity=.2,text opacity=.07] at (current page.south west) {\includegraphics{\inserthohenheimlogoklein} }; + \node [scale=0.9,fill opacity=.2,text opacity=.8, xshift=1.2cm, yshift=-1.5cm] at (current page.north) {\includegraphics{\inserthohenheimlogolang} }; + \end{tikzpicture}\\[1cm] + \maketitle% + % \vskip0pt plus 1filll + \begin{center}% + #1% + \end{center} + } +} + + + \newcommand{\HohenheimFancyTitle}[1]{\frame[plain]{ \maketitle } } %Fall Back +\AtBeginDocument{ +\ifx \inserthohenheimlogoklein\undefined +\typeout{ __Hohenheim Beamer Theme says: __________________} + \typeout{| \string\HohenhemLogoKlein\space a is not defined please specify... dropping one Picture}% + + \ifx \inserthohenheimlogolang\undefined + \typeout{| \string\HohenhemLogoLang\space is not defined please specify... dropping fancy Title... inserting boring one} % + \typeout{|________________________________________________}% + \else + \typeout{| seems that \string\HohenhemLogoLang\space exists... Lets see what we can do with it} + \typeout{|________________________________________________} + \renewcommand{\HohenheimFancyTitle}[1]{\expandafter\inserthotpwokurz{#1}% + } + \fi +\else + \ifx \inserthohenheimlogolang\undefined + \typeout{| \string\HohenhemLogoLang\space is not defined... i ll try my best} % + \typeout{|________________________________________________} + \renewcommand{\HohenheimFancyTitle}{1}{\expandafter\inserthotpwolang{#1}% + } + \else + + \renewcommand{\HohenheimFancyTitle}[1]{\inserthotp{#1} } + \fi + \fi +} + + +\usetheme{hohenheim} + + + -- cgit v1.2.3