-
Notifications
You must be signed in to change notification settings - Fork 0
/
beamerouterthemeRoma.sty
85 lines (76 loc) · 2.6 KB
/
beamerouterthemeRoma.sty
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
%*************************************************
%
% Roma Beamer Theme - Claudio Fiandrino
%
%*************************************************
\mode<presentation>
% String used between the current frame and the total frame number
\def\beamer@Roma@pageofpages{}
\DeclareOptionBeamer{pageofpages}{\def\beamer@Roma@pageofpages{#1}}
\ExecuteOptionsBeamer{pageofpages=of}
% Line below the frame title
\DeclareOptionBeamer{titleline}[false]{\def\beamer@Roma@titleline{#1}}
\ExecuteOptionsBeamer{titleline=true}
\ProcessOptionsBeamer
% Lengths
\newlength{\beamer@Roma@line}
\setlength{\beamer@Roma@line}{.02\paperheight}
\newlength{\beamer@Roma@linebar}
\setlength{\beamer@Roma@linebar}{.03\paperheight}
% Footer
\defbeamertemplate*{footline}{Roma theme}
{
\leavevmode%
% First line
\hbox{%
\begin{beamercolorbox}[wd=.2\paperwidth,ht=\beamer@Roma@line,dp=0pt]{}%
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.8\paperwidth,ht=\beamer@Roma@line,dp=0pt]{line}%
\end{beamercolorbox}%
} %
% Second line
\hbox{%
\begin{beamercolorbox}[leftskip=\beamer@Roma@normalmargin,rightskip=\beamer@Roma@normalmargin,wd=\paperwidth,ht=\beamer@Roma@linebar,dp=0pt,sep=0.5pt]{linebar}%
\tiny{\insertshorttitle\hfill\insertshortdate\hfill
\insertframenumber\hskip1pt\beamer@Roma@pageofpages\hskip1pt\inserttotalframenumber}%
\end{beamercolorbox}%
} %
% Third line
\hbox{%
\begin{beamercolorbox}[wd=\paperwidth,ht=\beamer@Roma@line,dp=0pt]{line}%
\end{beamercolorbox}%
}%
}
\defbeamertemplate*{frametitle}{Roma theme}[1][left]
{
\vskip-\beamer@Roma@line
\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@Roma@truetext{true}%
\ifx\beamer@Roma@titleline\beamer@Roma@truetext%
\vskip-.5\beamer@leftmargin%
\begin{beamercolorbox}[wd=\textwidth,ht=.1ex,dp=0ex]{titleline}%
\end{beamercolorbox}%
\fi
}
% Frame title continuation
\defbeamertemplate*{frametitle continuation}{Roma theme}{(\insertcontinuationcount)}
\mode
<all>