beamerouterthemeGiraldo.sty 1.89 KB
% Copyright 2014 by Francisco Coelho
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
%

\mode<presentation>
%
%
% Logotipo(s)
%
\pgfdeclareimage[width=64pt]{university-logo}{logo_horizontal_duas_linhas}
\pgfdeclareimage[width=64pt]{university-logo-inverted}{logo_horizontal_duas_linhas_invertido}
%
\newif\ifsidebar
\sidebarfalse
%
\DeclareOptionBeamer{sidebar}[true]{\csname sidebar#1\endcsname}
\ProcessOptionsBeamer
%
\ifsidebar
  \useoutertheme[width=72pt,right,hideothersubsections]{sidebar}
  \useoutertheme[width=72pt,right,hideothersubsections]{infolines}
  \logo{\pgfuseimage{university-logo-inverted}}
  \setbeamertemplate{headline}[sidebar theme]
  %
  \setbeamertemplate{sidebar right}
  {
    % {%
    %   \vskip1.25em%
    %   \hbox to72pt{\hss\insertlogo\hss}
    %   \vskip1.25em%
    % }%
    {% Titulo na barra lateral
      \usebeamerfont{title in sidebar}%
      \usebeamercolor[fg]{title in sidebar}%
      \hbox to72pt{\hss\insertshorttitle[width=64pt,center,respectlinebreaks]\hss}
      %\insertshorttitle[width=64pt,center,respectlinebreaks]\par%
      %\insertshortsubtitle[width=2cm,center,respectlinebreaks]\par%
    }%
    {% Barra de navegacao
      \vskip1.25em%
      \usebeamercolor[fg]{subsection in sidebar}
      \insertverticalnavigation{64pt}%
      \vfill
    }%
    \hbox to 72pt{% lecture.frame  em baixo a direita
      \hfill%
      \strut%
      \usebeamerfont{subsection in sidebar}%
      \usebeamercolor[fg]{subsection in sidebar}%
      \insertframenumber/\inserttotalframenumber
      \hskip5pt
    }
    \vskip3pt%
  }%
  %
  \setbeamertemplate{footline}[]
\else
  \logo{\pgfuseimage{university-logo}}
  \setbeamertemplate{headline}{}
  \setbeamertemplate{footline}[frame number]
\fi

\setbeamersize{text margin left=1em,text margin right=1em}

\setbeamertemplate{navigation symbols}{}

\mode
<all>