Skip to content
Snippets Groups Projects
beamerinnerthemetuhh.sty 10.3 KiB
Newer Older
Leonard Fisser's avatar
Leonard Fisser committed
\mode<presentation>

\setbeamertemplate{background}{
  \begin{tikzpicture}
    \ifnum\thepage>1\relax%
    \begin{beamercolorbox}{tuhh teal}
      \useasboundingbox (0,0) rectangle(\the\paperwidth,\the\paperheight);
      \node[outer sep=0, inner sep=0] (tuhh_logo) at (309.42mm+7.91mm, \the\paperheight-28.05mm) {\includegraphics[width=25.82mm]{.theme_imgs/TUHH_logo_rgb.pdf}};
Leonard Fisser's avatar
Leonard Fisser committed
      \useasboundingbox (0,0) rectangle(\the\paperwidth,\the\paperheight);
      %date
       \node[rectangle,
        minimum width = 32.10mm,
        minimum height = 15.99 mm,
        text width = 32.10mm,
        align=center,
Leonard Fisser's avatar
Leonard Fisser committed
        outer sep = 0mm,
        inner sep = 0.0mm,
        anchor = west,
        ] at (301.22mm, \the\paperheight-5.24mm-180.00mm) {\usebeamerfont{date_small}\insertdate};
Leonard Fisser's avatar
Leonard Fisser committed
      %slide number
      \node[rectangle,
Leonard Fisser's avatar
Leonard Fisser committed
        minimum height = 4.0mm,
        text width = 32.10mm,
        align=center,
Leonard Fisser's avatar
Leonard Fisser committed
        outer sep = 0mm,
        inner sep = 0.0mm,
        anchor = west,
        ] at (301.22mm, \the\paperheight-140.26mm) {\usebeamerfont{frame_number}\insertframenumber};
Leonard Fisser's avatar
Leonard Fisser committed

      \useasboundingbox (0,0) rectangle(\the\paperwidth,\the\paperheight);
        \node[rectangle,
              draw,
              line width = 1pt,
              minimum width = 327.91mm,
              minimum height = 179.99mm,
              outer sep = 5.34mm,
              anchor = south west,
              ] at (0, 0) {};

        %upper horz 1
        \draw[line width = 1pt] (5.33mm, \the\paperheight-37.26mm) -- (5.33mm+295.89mm,\the\paperheight-37.26mm) {};
Leonard Fisser's avatar
Leonard Fisser committed
        %upper horz 2
        \draw[line width = 1pt] (301.22mm, \the\paperheight-37.25mm) -- (301.22mm+32.10mm, \the\paperheight-37.25mm) {};
Leonard Fisser's avatar
Leonard Fisser committed
        %mid horz 1
        \draw[line width = 1pt] (301.22mm, \the\paperheight-95.25mm) -- (301.22mm+32.10mm, \the\paperheight-95.25mm) {};
Leonard Fisser's avatar
Leonard Fisser committed
        %lower horz 1
        \draw[line width = 1pt] (301.22mm, \the\paperheight-169.25 mm) -- (301.22mm+32.10mm, \the\paperheight-169.25 mm) {};
Leonard Fisser's avatar
Leonard Fisser committed
        %first vert
        \draw[line width = 1pt] (301.22mm, \the\paperheight-5.24mm) -- (301.22mm, \the\paperheight-5.24mm-180.00mm) {};
Leonard Fisser's avatar
Leonard Fisser committed
      \end{beamercolorbox}%
    \fi

    % First page is always landing page
    \ifnum\thepage<2\relax%
      % TUHH Logo
      \node[outer sep=0, inner sep=0] (tuhh_logo) at (19.07mm+25.875mm, \the\paperheight-109.93mm-18.923mm) {\includegraphics[width=73.75mm]{.theme_imgs/TUHH_logo-wortmarke_en_rgb.pdf}};
Leonard Fisser's avatar
Leonard Fisser committed
      % TUHH Building A
      \node[outer sep=0, inner sep=0pt] at (178.816mm+72.75mm, \the\paperheight-104.902mm-23.177mm) {\includegraphics[width=148.59mm]{.theme_imgs/TUHH_building-a.pdf}};
Leonard Fisser's avatar
Leonard Fisser committed

      \useasboundingbox (0,0) rectangle(\the\paperwidth,\the\paperheight);
      \begin{beamercolorbox}{tuhh teal}
        \node[rectangle,
              draw,
              line width = 1pt,
              minimum width = 327.91mm,
              minimum height = 179.99mm,
              outer sep = 5.34mm,
              anchor = south west,
              ] at (0, 0) {};

        \draw[line width = 1pt] (169.25mm, \the\paperheight-5.24mm) -- (169.25mm, \the\paperheight-5.24mm-180.00mm) {};
        \draw[line width = 1pt] (5.33mm, \the\paperheight-95.25mm) -- (5.33mm+328.00mm, \the\paperheight-95.25mm) {};
        \draw[line width = 1pt] (5.33mm, \the\paperheight-160.51mm) -- (5.33mm+328.00mm, \the\paperheight-160.51mm) {};
        \draw[line width = 1pt] (87.31mm, \the\paperheight-95.25mm) -- (87.31mm, \the\paperheight-95.25mm-65.26mm) {};
        \draw[line width = 1pt] (87.31mm, \the\paperheight-142.52mm) -- (87.31mm+81.93 mm, \the\paperheight-142.52mm) {};
        \draw[line width = 1pt] (87.31mm, \the\paperheight-118.80mm) -- (87.31mm+81.93 mm, \the\paperheight-118.80mm) {};
        \draw[line width = 1pt] (128.27mm, \the\paperheight-95.25mm) -- (128.27mm, \the\paperheight-95.25mm-47.27mm) {};
Leonard Fisser's avatar
Leonard Fisser committed

        % First triangle
        \draw[line width = 1pt] (87.31mm, \the\paperheight-95.25mm) -- (87.31mm+40.96mm, \the\paperheight-95.25mm-23.72mm) {};
        \draw[line width = 1pt] (128.27mm, \the\paperheight-95.25mm-23.72mm) -- (128.27mm+40.96mm, \the\paperheight-95.25mm) {};
Leonard Fisser's avatar
Leonard Fisser committed

        % Second triangle
        \draw[line width = 1pt] (87.31mm, \the\paperheight-118.80mm) -- (87.31mm+40.96mm, \the\paperheight-118.80mm-23.72mm) {};
        \draw[line width = 1pt] (128.27mm, \the\paperheight-118.80mm-23.72mm) -- (128.27mm+40.96mm, \the\paperheight-118.80mm) {};
Leonard Fisser's avatar
Leonard Fisser committed

        \usebeamercolor{tuhh slideRed}
Leonard Fisser's avatar
Leonard Fisser committed
        % First Red Circle
        \draw[fg,fill=fg] (126.96mm+1.325mm, \the\paperheight-93.93mm-1.325mm) circle (1.325mm);
Leonard Fisser's avatar
Leonard Fisser committed
        % Second Red Circle
        \draw[fg,fill=fg] (126.96mm+1.325mm, \the\paperheight-117.48mm-1.325mm) circle (1.325mm);
Leonard Fisser's avatar
Leonard Fisser committed
        % Third Red Circle
        \draw[fg,fill=fg] (126.96mm+1.325mm, \the\paperheight-141.20mm-1.325mm) circle (1.325mm);
Leonard Fisser's avatar
Leonard Fisser committed
      \end{beamercolorbox}%
      \fi
  \end{tikzpicture}
}

% Title page
\defbeamertemplate*{title page}{tuhh}[1][]
{ 
    \begin{beamercolorbox}[leftskip=0mm,wd=142.19mm,dp=66.32mm,ht=66.32mm,#1]{title page header}
Leonard Fisser's avatar
Leonard Fisser committed
      \usebeamerfont{title}\inserttitle%
    \end{beamercolorbox}%
    \begin{beamercolorbox}[wd=1mm,ht=14mm,#1]{title page header}
Leonard Fisser's avatar
Leonard Fisser committed
      % Margin Placeholder
    \end{beamercolorbox}%
    \begin{beamercolorbox}[leftskip=114.285mm,wd=550mm,#1]{title page header}
      \usebeamerfont{date}\DTMsetdatestyle{ddmmyyyy}\insertdate
    \end{beamercolorbox}%
    \begin{beamercolorbox}[wd=1mm,ht=12mm,#1]{title page header}
Leonard Fisser's avatar
Leonard Fisser committed
      % Margin Placeholder
    \end{beamercolorbox}%
    \begin{beamercolorbox}[leftskip=21.336mm,wd=550mm,#1]{title page header}
      \usebeamerfont{author}\insertauthor
    \end{beamercolorbox}%
}

Leonard Fisser's avatar
Leonard Fisser committed
\setbeamertemplate{endpage}{
  {\setbeamertemplate{background}
    {
    \begin{tikzpicture}
      \begin{beamercolorbox}{tuhh teal}
        \node[outer sep=0, inner sep=0, anchor=west] (website) at (21.08mm, \the\paperheight-188.78mm) {\usebeamerfont{tuhh website}tuhh.de};
Leonard Fisser's avatar
Leonard Fisser committed
        \useasboundingbox (0,0) rectangle(\the\paperwidth,\the\paperheight);
        \node[outer sep=0, inner sep=0, anchor=west, text width=8cm] (signature) at (19.08mm, \the\paperheight-117.5mm){\usebeamerfont{signature} Hamburg University of Technology (TUHH)};
        \node[outer sep=0, inner sep=0, anchor=west, text width=8cm] (signature) at (19.08mm, \the\paperheight-121.5mm){\usebeamerfont{signature} \insertshortauthor};
Leonard Fisser's avatar
Leonard Fisser committed
        \node[outer sep=0, inner sep=0, anchor=west, text width=8cm] (signature) at (19.08mm, \the\paperheight-125.5mm){\usebeamerfont{signature} \insertinstitute};
        \node[outer sep=0, inner sep=0, anchor=west, text width=8cm] (signature) at (19.08mm, \the\paperheight-129.5mm){\usebeamerfont{signature} Am Schwarzenberg-Campus 1};
        \node[outer sep=0, inner sep=0, anchor=west, text width=8cm] (signature) at (19.08mm, \the\paperheight-133.5mm){\usebeamerfont{signature} 21073 Hamburg};
        \node[outer sep=0, inner sep=0, anchor=west, text width=8cm] (signature) at (19.08mm, \the\paperheight-137.5mm){\usebeamerfont{signature} Tel.: \inserttelephonenumber};
Leonard Fisser's avatar
Leonard Fisser committed
        \node[outer sep=0, inner sep=0, anchor=west, text width=8cm] (signature) at (19.08mm, \the\paperheight-141.5mm){\usebeamerfont{signature} www.tuhh.de};

        \useasboundingbox (0,0) rectangle(\the\paperwidth,\the\paperheight);
        \node[outer sep=0, inner sep=0, anchor=west] (thank you) at (18.08mm, \the\paperheight-10.99mm-44.22mm) {\usebeamerfont{thank you} Thank You very much};
        \useasboundingbox (0,0) rectangle(\the\paperwidth,\the\paperheight);
        \node[outer sep=0, inner sep=0] (tuhh_logo) at (250.83mm, \the\paperheight-72.48mm) {\includegraphics[width=210.53mm]{.theme_imgs/TUHH_logo-wortmarke_en_rgb.pdf}};
        \useasboundingbox (0,0) rectangle(\the\paperwidth,\the\paperheight);

        \node[rectangle,
              draw,
              line width = 1pt,
              minimum width = 327.91mm,
              minimum height = 179.99mm,
              outer sep = 5.34mm,
              anchor = south west,
              ] at (0, 0) {};

        \draw[line width = 1pt] (169.33mm, \the\paperheight-5.25mm) -- (169.33mm, \the\paperheight-5.25mm-180.00mm) {};
        \draw[line width = 1pt] (5.34mm, \the\paperheight-71.04mm) -- (5.34mm+163.99mm, \the\paperheight-71.04mm) {};
        \draw[line width = 1pt] (5.34mm, \the\paperheight-147.24mm) -- (5.34mm+163.99mm, \the\paperheight-147.24mm) {};
        \draw[line width = 1pt] (131.37mm, \the\paperheight-71.04mm) -- (131.37mm, \the\paperheight-71.04mm-114.21mm) {};
        \draw[line width = 1pt] (131.37mm, \the\paperheight-109.27mm) -- (131.37mm+37.96mm, \the\paperheight-109.27mm) {};

        %1st circle
        \draw[line width = 1pt] (131.37mm+18.99mm, \the\paperheight-71.04mm-18.99mm) circle (18.99mm);
        %1nd circle
        \draw[line width = 1pt] (131.37mm+18.99mm, \the\paperheight-109.18mm-18.99mm) circle (18.99mm);
        %3rd circle
        \draw[line width = 1pt] (131.37mm+18.99mm, \the\paperheight-147.33mm-18.99mm) circle (18.99mm);

        %red circles
        \usebeamercolor{tuhh slideRed}
        %e
        \draw[fg,line width = 1pt,fill=fg] (131.37mm+18.99mm-9.495mm-1.25mm, \the\paperheight-147.33mm-18.99mm) circle (2mm);
        %ne
        \draw[fg,line width = 1pt,fill=fg] (131.37mm+18.99mm-7.59786236mm, \the\paperheight-147.33mm-18.99mm+7.59786236mm) circle (2mm);
        %n
        \draw[fg,line width = 1pt,fill=fg] (131.37mm+18.99mm, \the\paperheight-147.33mm-18.99mm+9.495mm+1.25mm) circle (2mm);
        %nw
        \draw[fg,line width = 1pt,fill=fg] (131.37mm+18.99mm+7.59786236mm, \the\paperheight-147.33mm-18.99mm+7.59786236mm) circle (2mm);
        %w
        \draw[fg,line width = 1pt,fill=fg] (131.37mm+18.99mm+9.495mm+1.25mm, \the\paperheight-147.33mm-18.99mm) circle (2mm);
        %sw
        \draw[fg,line width = 1pt,fill=fg] (131.37mm+18.99mm-7.59786236mm, \the\paperheight-147.33mm-18.99mm-7.59786236mm) circle (2mm);
        %s
        \draw[fg,line width = 1pt,fill=fg] (131.37mm+18.99mm, \the\paperheight-147.33mm-18.99mm-9.495mm-1.25mm) circle (2mm);
        %sw
        \draw[fg,line width = 1pt,fill=fg] (131.37mm+18.99mm+7.59786236mm, \the\paperheight-147.33mm-18.99mm-7.59786236mm) circle (2mm);
        %purple circle
        \usebeamercolor{tuhh slideViolet}
        \draw[fg,line width = 1pt,fill=fg] (131.37mm+18.99mm, \the\paperheight-147.33mm-18.99mm) circle (2.5mm);
      \end{beamercolorbox}%
    \end{tikzpicture}
    }
    
    \begin{frame}
    \end{frame}
  }
}

Leonard Fisser's avatar
Leonard Fisser committed
\mode
<all>