beamer / beamerthemesidebardarktab.sty

\ProvidesPackage{beamerthemesidebardarktab}[2003/10/22 ver 0.1]
\NeedsTeXFormat{LaTeX2e}[1995/12/01]

% Copyright 2003 by Till Tantau <tantau@cs.tu-berlin.de>.
%
% This program can be redistributed and/or modified under the terms
% of the LaTeX Project Public License Distributed from CTAN
% archives in directory macros/latex/base/lppl.txt.

\RequirePackage{keyval}[1997/11/10]
\RequirePackage{pgfshade}

\def\ProcessOptionsWithKV#1{%
  \let\@tempa\@empty
  \@for\CurrentOption:=\@classoptionslist\do{%
    \@ifundefined{KV@#1@\CurrentOption}%
    {}{\edef\@tempa{\@tempa,\CurrentOption,}}}%
  \edef\@tempa{%
    \noexpand\setkeys{#1}{\@tempa\@ptionlist{\@currname.\@currext}}}%
  \@tempa
  \AtEndOfPackage{\let\@unprocessedoptions\relax}}

\newdimen\beamer@sidebarwidth
\beamer@sidebarwidth=2.5cm
\define@key{Side}{width}{\beamer@sidebarwidth=#1}
\ProcessOptionsWithKV{Side}

                                % Title page  
\usetitlepagetemplate{
  \vbox{}
  \vfill
  \begin{centering}
    \Large\structure{\bfseries\inserttitle}
    \vskip1em\par
    \normalsize\insertauthor\vskip1em\par
    {\scriptsize\insertinstitute\par}\par\vskip1em
    \insertdate\par\vskip1.5em
    \inserttitlegraphic
  \end{centering}
  \vfill
}

\pgfdeclarehorizontalshading{beamer@tabmain}{6.5pt}{rgb(0pt)=(1,1,1); rgb(\beamer@sidebarwidth)=(\theshadedthemecolor)}
\pgfdeclarehorizontalshading{beamer@tab}{6.5pt}{%
  rgb(0pt)=(1,1,1);
  rgb(9pt)=(\theshadedthemecolor);
  rgb(\beamer@sidebarwidth)=(\thethemecolor)}

                                % Frametitles
\useframetitletemplate{%
  {\leftskip-\beamer@leftmargin\advance\leftskip by0.3cm%
   \rightskip-\beamer@rightmargin plus1fil\advance\rightskip by0.3cm\vskip0.3cm\leavevmode
    \color{structure}
    \Large\bfseries\insertframetitle\par}%
  }

                                % Sections in headline
\usesectionsidetemplate
{%
  \setbox\tempbox=\hbox{%
    \color[gray]{0.3}\lower1pt\hbox{\pgfuseshading{beamer@tab}}%\vrule width\beamer@sidebarwidth height 6.5pt}%
    \hskip-\beamer@sidebarwidth%
    \color{structure}\tiny{\kern3pt\bfseries\insertsectionhead}}%
  \ht\tempbox=8pt%
  \dp\tempbox=2pt%
  \wd\tempbox=\beamer@sidebarwidth%
  \box\tempbox%
}
{%
  \setbox\tempbox=\hbox{\color{structure}\tiny{\kern3pt\bfseries\insertsectionhead}}%
  \ht\tempbox=8pt%
  \dp\tempbox=2pt%
  \wd\tempbox=\beamer@sidebarwidth%
  \box\tempbox%
}

\usesubsectionsidetemplate
{%
  \setbox\tempbox=\hbox{%
    \color[gray]{0.3}\lower1pt\hbox{\pgfuseshading{beamer@tab}}%\vrule width\beamer@sidebarwidth height 6.5pt}%
    \hskip-\beamer@sidebarwidth%
    \color{white}\tiny{\kern6pt\bfseries\insertsubsectionhead}}%
  \ht\tempbox=5pt%
  \dp\tempbox=2pt%
  \wd\tempbox=\beamer@sidebarwidth%
  \box\tempbox%
}
{%
  \setbox\tempbox=\hbox{\color{white}\tiny{\kern6pt\bfseries\insertsubsectionhead}}%
  \ht\tempbox=5pt%
  \dp\tempbox=2pt%
  \wd\tempbox=\beamer@sidebarwidth%
  \box\tempbox%
}
                                % Entries in table of contents
\usetemplatetocsection
{\color{structure}\textbf{\inserttocsection}}
{\color{structureshaded}\textbf{\inserttocsection}}

                                % Head
\useheadtemplate{}

                                % Foot
\usefoottemplate{}

                                % Sidebar
\userightsidebartemplate{\beamer@sidebarwidth}{%
  \vskip1em
  \beamer@tempdim=\beamer@sidebarwidth%
  \advance\beamer@tempdim by -3pt%
  \hbox{%
    \hskip 3pt%
    \begin{minipage}{\beamer@tempdim}
      \leftskip0pt plus1fill%
      \rightskip0pt plus1fill%
      \tiny\color{white}\bfseries\insertshorttitle%
      \vskip.5em
      \color{structureshaded}\insertshortauthor
    \end{minipage}}%
  \vskip1em
  \insertverticalnavigation{\beamer@sidebarwidth}%
  \vfill
  \hbox to \beamer@sidebarwidth{\hfil\insertlogo\hskip3pt}
  \vskip3pt
}

                                % Sidebar Background
\userightsidebarverticalshadingtemplate{\thethemecolor}{0,0,0}

                                % Background
\usebackgroundtemplate{}

                                % Blocks
\useblocktemplate{\medskip{\color{blockstructure}\bfseries\insertblockname}\par}{\medskip}
\usealertblocktemplate{\medskip{\alert{\bfseries\insertblockname}}\par}{\medskip}
\useexampleblocktemplate{\medskip\begingroup\color{darkgreen}{\bfseries\insertblockname}\par}{\endgroup\medskip}
 
                                % Margins
\beamersetleftmargin{0.5cm}
\beamersetrightmargin{0.5cm}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.