-
Notifications
You must be signed in to change notification settings - Fork 0
/
beamerthemeJLTree.sty
139 lines (120 loc) · 4.74 KB
/
beamerthemeJLTree.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
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
% Written and (C) by Jérôme Lelong <jerome.lelong@gmail.com>
% 2008 - 2018
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version 3 of the License, or
% (at your option) any later version.
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
% You should have received a copy of the GNU General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>.
\ProvidesPackage{beamerthemeJLTree}
\newif\ifbeamer@tree@showhooks
\beamer@tree@showhookstrue
\DeclareOptionBeamer{hooks}[true]{\csname beamer@tree@showhooks#1\endcsname}
\ProcessOptionsBeamer
\mode
<presentation>
\setbeamertemplate{navigation symbols}{}
\usecolortheme{rose}
\mode
<presentation>
\useinnertheme[shadow=true]{rounded}% les block
\mode
<all>
\defbeamertemplate*{footline}{JLTree theme}
{
\begin{beamercolorbox}[colsep=1.5pt]{upper separation line foot}
\end{beamercolorbox}
\hbox{%
\begin{beamercolorbox}[wd=.8\paperwidth,ht=2.25ex,dp=1ex,left]{author in head/foot}%
\usebeamerfont{author in head/foot}\hspace*{2ex}\insertshortauthor %
\if\beamer@shortinstitute\empty\else\hspace*{1ex}(\insertshortinstitute)\fi%
\usebeamerfont{date in head/foot}\hspace*{2ex}%
\hspace*{2ex} \if\beamer@shortdate\empty\insertdate\else\insertshortdate\fi%
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.2\paperwidth,ht=2.25ex,dp=1ex,right]{page number in head/foot}%
\usebeamerfont{page number in head/foot}
\usebeamertemplate{page number in head/foot}\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}%
\advance\@tempdimb 1.125ex%
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=1.125ex,ht=\@tempdimb]{middle separation line head}%
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.40\paperwidth]{middle block}%
\vbox to\@tempdimb{\vfill%
\begin{beamercolorbox}[wd=.40\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=.40\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\raise0.9pt\hbox{\vrule width0.4pt height4pt\vrule width 6pt height0.4pt}%
\hskip1pt%
\fi%
\else%
\hskip6pt%
\fi%
\insertsectionhead
\end{beamercolorbox}
\begin{beamercolorbox}[wd=.40\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%
\hskip10.5pt\raise0.9pt\hbox{\vrule width0.4pt height4pt\vrule width 6pt height0.4pt}%
\hskip1pt%
\fi%
\else%
\hskip12pt%
\fi%
\insertsubsectionhead
\end{beamercolorbox}%
\vfill}%
\end{beamercolorbox}
\begin{beamercolorbox}[wd=.11\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}
}
\mode <presentation>
\setbeamercolor{separation line}{use=structure,bg=structure.fg!50!bg}
\mode <handout>
\setbeamercolor{separation line}{use=structure,bg=black}
\setbeamercolor{block title}{use=structure,fg=black,bg=white}
\setbeamercolor{block body}{parent=normal text,use=block title,bg=white}
\setbeamercolor{frametitle}{fg=black}
\mode
<all>