summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/hobete/hobete.sty
blob: e7b0415097da442450b7da125d7143aa36c8e919 (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
153
154
155
156
157
158
159
160
% Copyright 2010 -- 2012 by tobig <tobias.goerlach@uni-hohneheim.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.

\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}