summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/beamer2thesis/beamerouterthemetorinoth.sty
blob: 03c388aff448cea73cb615d0e91eeb13fbc8ac2b (plain)
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
28
29
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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Copyright 2011 by Fiandrino Claudio
%
% 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>

% String used between the current page and the total page count.
\def\beamer@torinoth@pageofpages{of}
\DeclareOptionBeamer{pageofpages}{\def\beamer@torinoth@pageofpages{#1}}

% Show a line below the frame title.
\DeclareOptionBeamer{titleline}[true]{\def\beamer@torinoth@titleline{#1}}

\ExecuteOptionsBeamer{titleline=false}
\ProcessOptionsBeamer

% Lengths
\newlength{\headerheight}
\setlength{\headerheight}{.05\paperheight}
\newlength{\beamer@torinoth@line}
\setlength{\beamer@torinoth@line}{.03\paperheight}
\newlength{\beamer@torinoth@box}
\setlength{\beamer@torinoth@box}{.01\paperheight}

% Footer
\defbeamertemplate*{footline}{torinoth theme}
{
  \leavevmode%
  % First line.
  \hbox{%
  \begin{beamercolorbox}[wd=\paperwidth,ht=\beamer@torinoth@line,dp=0pt]{}%
  \end{beamercolorbox}%
  } %
  % Page number.
  \hbox{%
  \begin{beamercolorbox}[wd=.85\paperwidth,ht=0ex,dp=0ex]{}%
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.075\paperwidth,ht=.2ex,dp=0ex,center,rounded=true,shadow=true,draw]{frame number}%
    \usebeamerfont{frame number}\insertframenumber{} \beamer@torinoth@pageofpages{} \inserttotalframenumber{}%
  \end{beamercolorbox}%
  } %
  % Second line.
  \hbox{%
  \begin{beamercolorbox}[wd=.2\paperwidth,ht=\beamer@torinoth@box,dp=0pt]{}%
  \end{beamercolorbox}%
  \def\beamer@torinoth@separator{-}%
  \begin{beamercolorbox}[wd=.6\paperwidth,ht=\beamer@torinoth@box,dp=0pt,center,rounded=true,shadow=true]{footerbox}%
    \usebeamerfont{footnote}\insertauthor{} \beamer@torinoth@separator{} \inserttitle % Here is inserted author-title: manage different cases
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.2\paperwidth,ht=\beamer@torinoth@box,dp=0pt]{}%
  \end{beamercolorbox}%
  } %
  % Third line.
  \hbox{%
  \begin{beamercolorbox}[wd=\paperwidth,ht=\beamer@torinoth@line,dp=0pt,left]{}%
  \insertslidenavigationsymbol
  \end{beamercolorbox}%
  } %
  
}

% Header
\defbeamertemplate*{headline}{torinoth theme}
{

  % Insert modality to manage navigation bars
  % Insert modality to manage a logo put on the right up side

  \leavevmode%
  \hbox{%
  \begin{beamercolorbox}[wd=\paperwidth,ht=\headerheight,dp=0pt]{page header}%
  \end{beamercolorbox}%
  }%
  \vskip0pt%
  \hbox{%
  \begin{beamercolorbox}[wd=\paperwidth,ht=\beamer@torinoth@line]{second header}%
  \end{beamercolorbox}%
  } %
  \vskip0pt%
}

\defbeamertemplate*{frametitle}{torinoth theme}[1][left]
{
  \ifbeamercolorempty[bg]{frametitle}{}{\nointerlineskip}%
  \@tempdima=\textwidth%
  \advance\@tempdima by\beamer@leftmargin%
  \advance\@tempdima by\beamer@rightmargin%
  \vbox{}\vskip-.5\beamer@leftmargin%
  \begin{beamercolorbox}[sep=\beamer@leftmargin,#1,wd=\the\@tempdima]{}
    \usebeamerfont{frametitle}\usebeamercolor[bg]{framesubtitle}%
    \vbox{}\vskip0ex%
    \if@tempswa\else\csname beamer@fte#1\endcsname\fi%
    \strut\insertframetitle\strut\par%
    {%
      \ifx\insertframesubtitle\@empty%
      \else%
      {\usebeamerfont{framesubtitle}\usebeamercolor[bg]{framesubtitle}\insertframesubtitle\strut\par}%
      \fi
    }%
    \vskip-1ex%
    \if@tempswa\else\vskip-\beamer@leftmargin\fi
  \end{beamercolorbox}%
  \def\beamer@torinoth@truetext{true}%
  \ifx\beamer@torinoth@titleline\beamer@torinoth@truetext%
    \vskip-.5\beamer@leftmargin%
    \begin{beamercolorbox}[wd=\textwidth,ht=.1ex,dp=0ex]{titleline}%
    \end{beamercolorbox}%
  \fi
}

% Frame title continuations, default

\defbeamertemplate*{frametitle continuation}{torinoth theme}{(\insertcontinuationcount)}


\mode
<all>