% Copyright 2007 by Till Tantau
% 
% 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.

\ProvidesPackageRCS $Header: ~/LaTeX/beamerthemePadova.sty,v 1.8 2007/01/28 20:48:30 tantau Exp $


% \setbeamertemplate{navigation symbols}{} 
% \usepackage{extsize}
% \setBeamerfont{title}{shape=\itshape,family=\rmfamily}
% \setbeamertemplate{background canvas}{\includegraphics[width=\paperwidth,height=\paperheight]{alps.jpg}}
% \setbeamertemplate{background canvas}[vertical shading][bottom=red!20,top=yellow!30]
% \setbeamercolor{normal text}{fg=purple} 
% \setbeamercolor{structure}{fg=purple} 
% \setfootline{\insertshortinstitute, \insertshortdate \hfill slide \insertframenumber/\inserttotalframenumber} 

\usefonttheme[stillsansseriftext]{serif} 
\hypersetup{colorlinks=true,linkcolor=red}

% \DeclareOptionBeamer{compress}{\beamer@compresstrue}
% \ProcessOptionsBeamer
% \DeclareOptionBeamer{hideothersubsections}{\PassOptionsToPackage{hideothersubsections}{beamerouterthemesidebar}}
% \DeclareOptionBeamer{hideallsubsections}{\PassOptionsToPackage{hideallsubsections}{beamerouterthemesidebar}}
% \PassOptionsToPackage{right}{beamerouterthemesidebar}
% \PassOptionsToPackage{width=2cm}{beamerouterthemesidebar}
% \DeclareOptionBeamer{width}{\PassOptionsToPackage{width=#1}{beamerouterthemesidebar}}
% \DeclareOptionBeamer{left}{\PassOptionsToPackage{left}{beamerouterthemesidebar}}
% \DeclareOptionBeamer{right}{\PassOptionsToPackage{right}{beamerouterthemesidebar}}
% \DeclareOptionBeamer{height}{\PassOptionsToPackage{height=#1}{beamerouterthemesidebar}}
% \ProcessOptionsBeamer

\mode
<presentation>

 %\useoutertheme{infolines}% troppa interlinea
 %\useoutertheme{split}    % ok if compress option used % fa casino 
 %\useoutertheme{shadow}   % way too much space used -- ok with option 'compress' %
 \setbeamercovered{transparent} % or whatever (possibly just delete it) 
 \useoutertheme[subsection=false]{miniframes} 

 \setbeamercolor*{frametitle}{parent=palette primary}
 \setbeamerfont{block title}{size={}}
 \useinnertheme{rectangles}
 %\useinnertheme[shadow=true]{rounded}
 %\useoutertheme{shadow}
 \usecolortheme{whale}
 \usecolortheme{orchid}
 \setbeamerfont{block title}{size={}}
 \usecolortheme[named=brown]{structure}
 % \usecolortheme[RGB={50,200,120}]{structure}
 %\useoutertheme{umbcfootline} %non esiste
 %\useoutertheme[width=3ex]{sidebar} %toglie i titoli
 %\usecolortheme{wolverine} %orribile, giallo rosso
 \usefonttheme[onlylarge]{structureitalicserif}
 \usefonttheme[onlysmall]{structuresmallcapsserif}
 \useoutertheme[subsection=false]{miniframes}
 \setbeamertemplate{items}[ball] 
 \setbeamertemplate{blocks}[rounded][shadow=true] 
 \setbeamerfont{structure}{family=\rmfamily,shape=\itshape} 
 \setbeamersize{text margin left=6mm, text margin right=2mm} 
 \providecommand\insertframetitle{}
 \defbeamertemplate*{footline}{myFooter}{\insertframetitle} 
 \setbeamercolor*{frametitle}{parent=palette primary}
 \setbeamerfont{block title}{size={}}


% % -----------JLTree------------------------
\defbeamertemplate*{footline}{JLTree theme}
{
  \begin{beamercolorbox}[colsep=1.5pt]{upper separation line foot}
  \end{beamercolorbox}
  \hbox{%
    \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.25ex,dp=1ex,left]{title in head/foot}%
      \usebeamerfont{title in head/foot}\hspace*{2ex}\insertauthor \hspace*{1ex}(\insertshortinstitute) \hspace*{2ex} \insertdate
    \end{beamercolorbox}%
    \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
      \usebeamerfont{date in head/foot}
      \insertframenumber{} / \inserttotalframenumber\hspace*{2ex} 
    \end{beamercolorbox}}%
}


\defbeamertemplate*{sidebar right}{JLTree theme}{}

\usesectionheadtemplate
{\hfil\insertsectionhead}
{\hfill\color{fg!50!bg}\insertsectionhead}


\usesubsectionheadtemplate
{\hfil\insertsubsectionhead}
{\hfill\color{fg!50!bg}\insertsubsectionhead}



\defbeamertemplate*{headline}{JLTree theme}
{%
  \leavevmode%
  \begin{beamercolorbox}[wd=\paperwidth,colsep=1.5pt]{upper separation line head}
  \end{beamercolorbox}
  \@tempdimb=3.625ex% 2.4375ex%
  \multiply\@tempdimb by\beamer@sectionmax%
  %% \advance\@tempdimb by 1.125ex%
  \advance\@tempdimb by -1.125ex%
  \ifdim\@tempdimb<10.9ex% 3*(2.5+1.125)
  \@tempdimb=10.9ex%
  \fi
  \begin{beamercolorbox}[wd=.45\paperwidth, ht=\@tempdimb]{left block}%
    \usebeamerfont{section in head/foot}%
    \vbox to\@tempdimb{\vfill\insertsectionnavigation{.45\paperwidth}\vfill}%
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=1.125ex,ht=\@tempdimb,dp=1.125ex]{middle separation line head}%
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.44\paperwidth]{middle block}%
    \vbox to\@tempdimb{\vfill%
      \begin{beamercolorbox}[wd=.44\paperwidth,ht=2.5ex,dp=1.125ex,%
        leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}%
        \usebeamerfont{title in head/foot}\insertshorttitle
      \end{beamercolorbox}
      \begin{beamercolorbox}[wd=.44\paperwidth,ht=2.5ex,dp=1.125ex,%
        leftskip=.3cm,rightskip=.3cm plus1fil]{section in head/foot}
        \usebeamerfont{section in head/foot}%
        \ifbeamer@tree@showhooks
        \setbox\beamer@tempbox=\hbox{\insertsectionhead}%
        \ifdim\wd\beamer@tempbox>1pt%
        \hskip2pt\raise1.9pt\hbox{\vrule width0.4pt height1.875ex\vrule width 5pt height0.4pt}%
        \hskip1pt%
        \fi%
        \else%
        \hskip6pt%
        \fi%
        \insertsectionhead
      \end{beamercolorbox}
      \begin{beamercolorbox}[wd=.44\paperwidth,ht=2.5ex,dp=1.125ex,%
        leftskip=.3cm,rightskip=.3cm plus1fil]{subsection in head/foot}
        \usebeamerfont{subsection in head/foot}%
        \ifbeamer@tree@showhooks
        \setbox\beamer@tempbox=\hbox{\insertsubsectionhead}%
        \ifdim\wd\beamer@tempbox>1pt%
        \hskip9.4pt\raise1.9pt\hbox{\vrule width0.4pt height1.875ex\vrule width 5pt height0.4pt}%
        \hskip1pt%
        \fi%
        \else%
        \hskip12pt%
        \fi%
        \insertsubsectionhead
      \end{beamercolorbox}%
      \vfill}%
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.1\paperwidth,ht=\@tempdimb,right]{right block}%
    \vbox to\@tempdimb{\vfill\insertlogo\vfill}
  \end{beamercolorbox}
  \vfill
  \begin{beamercolorbox}[wd=\paperwidth,colsep=1.5pt]{lower separation line head}
  \end{beamercolorbox}
}
\setbeamercolor{separation line}{use=structure,bg=structure.fg!50!bg}


% -----------JLTree------------------------

\mode
<all>
\defbeamertemplate{footline}{body}%
{
  \leavevmode%
  \hbox{%
    \begin{beamercolorbox}[wd=.33333\paperwidth,ht=2.25ex,dp=1ex]
      {author in head/foot}%
      \usebeamerfont{author in head/foot}\includegraphics[height=5ex]
      {../Vorlage/FotoVarie/LogoGoe}{XYZ confidential}
    \end{beamercolorbox}%
    \begin{beamercolorbox}[wd=.33333\paperwidth,ht=2.25ex,dp=1ex,center]
      {author in head/foot}%
      \usebeamerfont{author in head/foot}\insertshortauthor,
      \insertshortinstitute
    \end{beamercolorbox}%
    \begin{beamercolorbox}[wd=.33333\paperwidth,ht=2.25ex,dp=1ex,right]
      {author in head/foot}%
      \usebeamerfont{author in head/foot}p.~\insertframenumber{}
    \end{beamercolorbox}
  }%
  \vskip0pt%
}

\defbeamertemplate{footline}{title slide}{%
  \leavevmode%
  % \vskip{-10ex}%
  \parbox{\textwidth}{%
    \includegraphics[height=4.5ex]{../Vorlage/FotoVarie/LogoGoe}{XYZ confidential}
    \hfill
    {\large\OtherCompany}%
  }
}
