beamerinnerthemeKIT.sty 13.1 KB
Newer Older
Andreas Zwinkau's avatar
moar  
Andreas Zwinkau committed
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
%%
%% This is file `beamerinnerthemeKIT.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% KITbeamer.dtx  (with options: `inner,gridinner')
%% 
%% This is a generated file.
%% 
%% 
%% Copyright (C) 2010, 2011, 2012 by Klaus Braune <klaus.braune@kit.edu>,
%% Steinbuch Centre for Computing (SCC) at Karlsruhe Institute of Technology (KIT)
%% 
%% 
%% This file may be distributed and/or modified under the conditions of
%% the LaTeX Project Public License, either version 1.2 of this license
%% or (at your option) any later version.  The latest version of this
%% license is in:
%% 
%%    http://www.latex-project.org/lppl.txt
%% 
%% and version 1.2 or later is part of all distributions of LaTeX version
%% 1999/12/01 or later.
%% 
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\RequirePackage{rcs}
28 29
\RCS $Date: 2015/12/21 16:16:46 $
\RCS $Revision: 1.3 $
Andreas Zwinkau's avatar
moar  
Andreas Zwinkau committed
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 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237
\ProvidesPackage{beamerinnerthemeKIT}
    [\RCSRawDate\space v\RCSRevision\space Inner part of the beamer theme KIT]
\mode<presentation>
\newlength{\KIT@tmplen}
\newcommand{\KIT@GetHt}[6][194\KIT@mm]{%
  \sbox{\KIT@sbx}{\parbox{#1}{\raggedright#5#6}}%
  \setlength{\KIT@tmplen}{\ht\KIT@sbx}%
  \ifdim\KIT@tmplen>#2\addtolength{\KIT@tmplen}{#3}%
    \else\setlength{\KIT@tmplen}{#4}\fi}
\let\KIT@frametitle@org=\frametitle
\def\frametitle{\@ifnextchar<\KIT@fr@titB\KIT@fr@titA}
\def\KIT@fr@titA{\@ifnextchar[\KIT@fr@titAB\KIT@fr@titAA}
\def\KIT@fr@titAA#1{%
  \KIT@GetHt{8\KIT@mm}{0\KIT@mm}{0\KIT@mm}{\KIT@fnt@framtitl}{#1}%
  \vspace*{\KIT@tmplen}\KIT@frametitle@org{#1}}
\def\KIT@fr@titAB[#1]#2{%
  \KIT@GetHt{8\KIT@mm}{0\KIT@mm}{0\KIT@mm}{\KIT@fnt@framtitl}{#2}%
  \vspace*{\KIT@tmplen}\KIT@frametitle@org[#1]{#2}}
\def\KIT@fr@titB<#1>{\@ifnextchar[{\KIT@fr@titBB<#1>}{\KIT@fr@titBA<#1>}}
\def\KIT@fr@titBA<#1>#2{%
  \KIT@GetHt{8\KIT@mm}{0\KIT@mm}{0\KIT@mm}{\KIT@fnt@framtitl}{#2}%
  \vspace*{\KIT@tmplen}\KIT@frametitle@org<#1>{#2}}
\def\KIT@fr@titBB<#1>[#2]#3{%
  \KIT@GetHt{8\KIT@mm}{0\KIT@mm}{0\KIT@mm}{\KIT@fnt@framtitl}{#3}%
  \vspace*{\KIT@tmplen}\KIT@frametitle@org<#1>[#2]{#3}}
\let\KIT@framesubtitle@org=\framesubtitle
\def\framesubtitle{\@ifnextchar<\KIT@fr@stitB\KIT@fr@stitA}
\def\KIT@fr@stitA#1{%
  \KIT@GetHt{6.5\KIT@mm}{8.5\KIT@mm}{10\KIT@mm}{\KIT@fnt@framsubtit}{#1}%
  \vspace*{\KIT@tmplen}\KIT@framesubtitle@org{#1}}
\def\KIT@fr@stitB<#1>#2{%
  \KIT@GetHt{6.5\KIT@mm}{8.5\KIT@mm}{10\KIT@mm}{\KIT@fnt@framsubtit}{#2}%
  \vspace*{\KIT@tmplen}\KIT@framesubtitle@org{#1}}
\newcommand{\max@itemdepth}{6}
\newcommand{\max@enumdepth}{6}
\renewcommand{\itemize}[1][]{%
  \beamer@ifempty{#1}{}{\def\beamer@defaultospec{#1}}%
  \ifnum \@itemdepth >\max@itemdepth\relax\@toodeep\else
    \advance\@itemdepth\@ne
    \beamer@computepref\@itemdepth% sets \beameritemnestingprefix
    \usebeamerfont{itemize/enumerate \beameritemnestingprefix body}%
    \usebeamercolor[fg]{itemize/enumerate \beameritemnestingprefix body}%
    \usebeamertemplate{itemize/enumerate \beameritemnestingprefix body begin}%
    \list
      {\usebeamertemplate{itemize \beameritemnestingprefix item}}
      {\def\makelabel##1{%
          {%
            \hss\llap{{%
                \usebeamerfont*{itemize \beameritemnestingprefix item}%
                \usebeamercolor[fg]{itemize \beameritemnestingprefix item}##1}}%
          }%
        }%
       \expandafter\setlength{\labelsep}%
           {\csname labelsep@item\romannumeral\the\@itemdepth\endcsname}
       \expandafter\setlength{\itemindent}%
           {\csname item@indent\romannumeral\the\@itemdepth\endcsname}
      }
  \fi%
  \beamer@cramped%
  \raggedright%
  \beamer@firstlineitemizeunskip%
}
\defbeamertemplateparent{itemize items}[KIT]{itemize item,itemize subitem,itemize subsubitem,subsubsubitem,subsubsubsubitem,subsubsubsubsubitem}
{}
\setbeamertemplate{items}[KIT]
\setbeamertemplate{itemize item}{\KIT@mark}
\setbeamertemplate{itemize subitem}{\KIT@mark}
\setbeamertemplate{itemize subsubitem}{\KIT@mark}
\setbeamertemplate{itemize subsubsubitem}{\KIT@mark}
\setbeamertemplate{itemize subsubsubsubitem}{\KIT@mark}
\setbeamertemplate{itemize subsubsubsubsubitem}{\KIT@mark}
\defbeamertemplatealias{itemize subsubsubitem}{triangle}{default}
\defbeamertemplatealias{itemize subsubsubsubitem}{triangle}{default}
\defbeamertemplatealias{itemize subsubsubsubsubitem}{triangle}{default}
\defbeamertemplate{itemize subsubsubitem}{circle}{\tiny\raise0.5pt\hbox{\textbullet}}
\defbeamertemplate{itemize subsubsubsubitem}{circle}{\tiny\raise0.5pt\hbox{\textbullet}}
\defbeamertemplate{itemize subsubsubsubsubitem}{circle}{\tiny\raise0.5pt\hbox{\textbullet}}
\defbeamertemplate{itemize subsubsubitem}{square}{\footnotesize\hbox{\vrule width 1ex height 1ex}}
\defbeamertemplate{itemize subsubsubsubitem}{square}{\footnotesize\hbox{\vrule width 1ex height 1ex}}
\defbeamertemplate{itemize subsubsubsubsubitem}{square}{\footnotesize\hbox{\vrule width 1ex height 1ex}}
\defbeamertemplate{itemize subsubsubitem}{ball}{\raise0.2pt\beamer@usesphere{subsubsubitem projected}{smallsphere}}
\defbeamertemplate{itemize subsubsubsubitem}{ball}{\raise0.2pt\beamer@usesphere{subsubsubsubitem projected}{smallsphere}}
\defbeamertemplate{itemize subsubsubsubsubitem}{ball}{\raise0.2pt\beamer@usesphere{subsubsubsubsubitem projected}{smallsphere}}
\def\usesubsubsubitemizeitemtemplate{\setbeamertemplate{itemize subsubsubitem}}
\def\usesubsubsubsubitemizeitemtemplate{\setbeamertemplate{itemize subsubsubsubitem}}
\def\usesubsubsubsubsubitemizeitemtemplate{\setbeamertemplate{itemize subsubsubsubsubitem}}
\defbeamertemplate*{itemize/enumerate subsubsubbody begin}{default}{}
\defbeamertemplate*{itemize/enumerate subsubsubbody end}{default}{}
\defbeamertemplate*{itemize/enumerate subsubsubsubbody begin}{default}{}
\defbeamertemplate*{itemize/enumerate subsubsubsubbody end}{default}{}
\defbeamertemplate*{itemize/enumerate subsubsubsubsubbody begin}{default}{}
\defbeamertemplate*{itemize/enumerate subsubsubsubsubbody end}{default}{}
\newcounter{enumv}
\newcounter{enumvi}
\renewcommand{\theenumiv}{\arabic{enumiv}}
\renewcommand{\theenumv}{\arabic{enumv}}
\renewcommand{\theenumvi}{\arabic{enumvi}}
\newcommand{\insertsubsubsubenumlabel}{\theenumiv}
\newcommand{\insertsubsubsubsubenumlabel}{\theenumv}
\newcommand{\insertsubsubsubsubsubenumlabel}{\theenumvi}
\def\enumerate{%
  \ifnum\@enumdepth>\max@enumdepth\relax\@toodeep
  \else%
    \advance\@enumdepth\@ne%
    \edef\@enumctr{enum\romannumeral\the\@enumdepth}%
    \advance\@itemdepth\@ne%
  \fi%
  \beamer@computepref\@enumdepth% sets \beameritemnestingprefix
  \edef\beamer@enumtempl{enumerate \beameritemnestingprefix item}%
  \@ifnextchar[{\beamer@@enum@}{\beamer@enum@}}
\def\beamer@enum@{%
  \beamer@computepref\@itemdepth% sets \beameritemnestingprefix
  \usebeamerfont{itemize/enumerate \beameritemnestingprefix body}%
  \usebeamercolor[fg]{itemize/enumerate \beameritemnestingprefix body}%
  \usebeamertemplate{itemize/enumerate \beameritemnestingprefix body begin}%
  \expandafter
    \list
      {\usebeamertemplate{\beamer@enumtempl}}
      {\usecounter\@enumctr%
        \def\makelabel##1{{\hss\llap{{%
                \usebeamerfont*{enumerate \beameritemnestingprefix item}%
                \usebeamercolor[fg]{enumerate \beameritemnestingprefix item}##1}}}}%
       \expandafter\setlength{\labelsep}%
           {\csname labelsep@enum\romannumeral\the\@itemdepth\endcsname}
       \expandafter\setlength{\itemindent}%
           {\csname enum@indent\romannumeral\the\@itemdepth\endcsname}
      }%
  \beamer@cramped%
  \raggedright%
  \beamer@firstlineitemizeunskip%
}
\def\beamer@computepref#1{%
  \let\beameritemnestingprefix\@empty%
  \ifcase#1\or\or\def\beameritemnestingprefix{sub}\or\def\beameritemnestingprefix{subsub}\or\def\beameritemnestingprefix{subsubsub}\or\def\beameritemnestingprefix{subsubsubsub}\or\def\beameritemnestingprefix{subsubsubsubsub}\or\@toodeep\fi%
}
\defbeamertemplateparent{enumerate items}[KIT]{enumerate item,enumerate subitem,enumerate subsubitem,enumerate subsubsubitem,enumerate subsubsubsubitem,enumerate mini}
{}
\defbeamertemplate*{enumerate subsubsubitem}{default}{\insertenumlabel.\insertsubenumlabel.\insertsubsubenumlabel.\insertsubsubsubenumlabel}
\defbeamertemplate*{enumerate subsubsubsubitem}{default}{\insertenumlabel.\insertsubenumlabel.\insertsubsubenumlabel.\insertsubsubsubenumlabel.\insertsubsubsubsubenumlabel}
\defbeamertemplate*{enumerate subsubsubsubsubitem}{default}{\insertenumlabel.\insertsubenumlabel.\insertsubsubenumlabel.\insertsubsubsubenumlabel.\insertsubsubsubsubenumlabel.\insertsubsubsubsubsubenumlabel}
\defbeamertemplate*{enumerate subsubsubitem}{ball}
{
  \begin{pgfpicture}{-1ex}{-0.55ex}{1ex}{1ex}
    \usebeamercolor[fg]{subsubsubitem projected}
    {\pgftransformscale{1.4}\pgftext{\normalsize\pgfuseshading{bigsphere}}}
    \pgftext{%
      \usebeamerfont*{subsubitem projected}%
      \insertsubsubsubenumlabel}
  \end{pgfpicture}%
}
\defbeamertemplate*{enumerate subsubsubsubitem}{ball}
{
  \begin{pgfpicture}{-1ex}{-0.55ex}{1ex}{1ex}
    \usebeamercolor[fg]{subsubsubsubitem projected}
    {\pgftransformscale{1.4}\pgftext{\normalsize\pgfuseshading{bigsphere}}}
    \pgftext{%
      \usebeamerfont*{subsubsubitem projected}%
      \insertsubsubsubsubenumlabel}
  \end{pgfpicture}%
}
\defbeamertemplate*{enumerate subsubsubsubsubitem}{ball}
{
  \begin{pgfpicture}{-1ex}{-0.55ex}{1ex}{1ex}
    \usebeamercolor[fg]{subsubsubsubsubitem projected}
    {\pgftransformscale{1.4}\pgftext{\normalsize\pgfuseshading{bigsphere}}}
    \pgftext{%
      \usebeamerfont*{subsubsubsubitem projected}%
      \insertsubsubsubsubsubenumlabel}
  \end{pgfpicture}%
}
\defbeamertemplate{section in toc}{KIT}
  {\leavevmode\leftskip=1.75ex%
   \llap{%
     \usebeamerfont*{section number projected}%
     \usebeamercolor[bg]{section number projected}%
     \scalebox{1.2}{\protect\KIT@mark}
     \hskip-2.25ex%
     }
  \kern2.25ex\inserttocsection\par}
\defbeamertemplate{subsection in toc}{KIT}
  {\leavevmode\leftskip=5ex%
   \llap{%
     \usebeamercolor[bg]{subsection number projected}%
     \KIT@mark
     }
  \kern.75ex\inserttocsubsection\par}
\defbeamertemplate{subsubsection in toc}{KIT}
  {\leavevmode\normalsize%
   \usebeamerfont{subsection in toc}
   \leftskip=7ex
   \usebeamerfont{subsubsection in toc}%
   \llap{%
     \usebeamercolor[bg]{subsubsection number projected}%
     \KIT@mark
     \kern1ex}%
   \inserttocsubsubsection\par}
\setbeamertemplate{title page}{%
  \ifbeamer@centered
    \vspace*{-.351truemm}%
  \else
    \vspace*{-2.36675truemm}%
  \fi
  \vspace*{-23\KIT@mm}%
  \begin{tikzpicture}
   %%\useasboundingbox (7.6mm,0mm) rectangle (135.6mm,95.649mm);
   % \useasboundingbox (7.6mm,-\headsep) rectangle (135.6mm,95.649mm-\headsep);
    \useasboundingbox (5.584252mm,.015mm) rectangle (133.584252mm,96.015mm);
    \fill[white] (0\KIT@mm,0\KIT@mm) rectangle (254\KIT@mm,93.0\KIT@mm);
238
    \pgftext[at=\pgfpoint{\KIT@Framewd}{15\KIT@mm},left,bottom]
Andreas Zwinkau's avatar
moar  
Andreas Zwinkau committed
239 240
      {\usebox{\KIT@titimg}}
    % Line above the title image:
241 242
    \fill[white] (\KIT@Framewd,89\KIT@mm) rectangle (\KIT@MFurx-\KIT@Framewd,89.5\KIT@mm);
    \fill[KITblack50] (\KIT@Framewd,89.5\KIT@mm) rectangle (\KIT@MFurx-\KIT@Framewd,101.5\KIT@mm);
Andreas Zwinkau's avatar
moar  
Andreas Zwinkau committed
243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268
    \pgftext[at=\pgfpoint{11.0\KIT@mm}{95.5\KIT@mm},left]
      {\textcolor{white}{\KIT@fnt@inst \insertinstitute}}
    \fill[white] (0\KIT@mm,101.5\KIT@mm) rectangle (254\KIT@mm,190.5\KIT@mm);
    \KIT@MFrame[\KIT@MFbadd]
    \pgftext[at=\pgfpoint{11\KIT@mm}{180.5\KIT@mm},left,top]
      {\pgfimage[interpolate=true,width=45\KIT@mm]{\KIT@logo}}
    \pgftext[at=\pgfpoint{243\KIT@mm}{180.5\KIT@mm},right,top]{\KIT@ologo}
%%   \pgftext[at=\pgfpoint{19.0\KIT@mm}{133\KIT@mm},left,base]
%%      {\parbox[b]{226\KIT@mm}{%
%%%       \raggedright\fontsize{32\KIT@pt}{36\KIT@pt}\bfseries\inserttitle}}
%%        \raggedright\KIT@fnt@titl\inserttitle}}
%%       \KIT@tlenA=\dp\KIT@sbx%
%%       \addtolength{\KIT@tlen}{\KIT@tlenA}%
%%       \settoheight{\KIT@tlenA}{\KIT@fnt@titl\inserttitle}%
%%       \ifdim\KIT@tlen>30\KIT@pt
%%   \pgftext[at=\pgfpoint{19.0\KIT@mm}{127\KIT@mm},left,top]
%%       \raggedright\fontsize{16\KIT@pt}{18\KIT@pt}\selectfont\insertsubtitle}}
    \pgftext[at=\pgfpoint{11.0\KIT@mm}{130\KIT@mm},left]
      {\settoheight{\KIT@tlen}{\parbox{226\KIT@mm}{%
           \raggedright\KIT@fnt@titl\KIT@title%
           \global\KIT@tlenA=\baselineskip}}%
       \parbox{226\KIT@mm}{\raggedright
         \ifdim\KIT@tlen>\KIT@tlenA\KIT@fnt@tits\else\KIT@fnt@titl\fi
         \KIT@title\\[6.1\KIT@mm]
         \KIT@fnt@subtit\insertsubtitle
       }}
269 270 271 272 273 274 275 276
    \pgftext[at=\pgfpoint{11\KIT@mm}{5.551\KIT@mm},left,base]{%
      \KIT@fnt@foot\KIT@text}
    \pgftext[at=\pgfpoint{251\KIT@mm}{5.551\KIT@mm},right,base]
       {\fontsize{16\KIT@pt}{18\KIT@pt}\selectfont
        \bfseries\color{white}\KIT@Web}
    \pgfdeclaremask{KIT@auditmask}{\KIT@audit@fgh@clr@mask}
    \pgftext[at=\pgfpoint{213.85\KIT@mm}{0\KIT@mm},right,base]
       {\pgfimage[mask=KIT@auditmask,interpolate=true,height=13.0\KIT@mm]{\KIT@audit@fgh@clr}}
Andreas Zwinkau's avatar
moar  
Andreas Zwinkau committed
277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292
\ifKIT@grid
    \draw[step=1\KIT@mm,style=help lines]
      (0\KIT@mm,0\KIT@mm) grid (254\KIT@mm,190.5\KIT@mm);
    \draw[step=10\KIT@mm,red,very thin]
      (0\KIT@mm,0\KIT@mm) grid (254\KIT@mm,190.5\KIT@mm);
    \draw[blue,thin]
      (0\KIT@mm,0\KIT@mm) rectangle (254\KIT@mm,190.5\KIT@mm);
\fi
  \end{tikzpicture}%
  \ifKIT@titlepage@z\setcounter{framenumber}{0}\fi
}
\mode
<all>
\endinput
%%
%% End of file `beamerinnerthemeKIT.sty'.