-
Notifications
You must be signed in to change notification settings - Fork 0
/
beamerinnerthemeLE2IUTBM.sty
106 lines (92 loc) · 3.1 KB
/
beamerinnerthemeLE2IUTBM.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
% Copyright (c) 2013-15 Stephane GALLAND <[email protected]>
%
% UTBM logo and name are registered and owned by the
% "Universite de Technology of Belfort-Montbeliard".
%
% LE2I logo and name are registered and owned by the
% "Universite de Bourgogne".
%
% CNRS logo and name are registered and owned by the
% "Centre National de la Recherche Scientifique".
%
% This program is free library; you can redistribute it and/or modify
% it under the terms of the GNU Lesser General Public License as
% published by the Free Software Foundation; either version 3 of the
% License, or any later version.
%
% This library 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
% Lesser General Public License for more details.
%
% You should have received a copy of the GNU Lesser General Public
% License along with this library; see the file COPYING. If not,
% write to the Free Software Foundation, Inc., 59 Temple Place - Suite
% 330, Boston, MA 02111-1307, USA.
%
\ProvidesPackage{beamerinnerthemeLE2IUTBM}
[2015/09/21 Beamer Inner 'LE2I at UTBM' Theme]
\DeclareOptionBeamer{language}{\gdef\beamer@innertheme@leiiutbm@lang{#1}}
%\ExecuteOptionsBeamer{left}
\ProcessOptionsBeamer
\mode<presentation>
\useinnertheme{rectangles}
\global\let\footnoterule\relax % no rule for footnotes
\setbeamertemplate{blocks}[rounded][shadow=true]
% Issue #16: The size of the block title must follow the size of the enclosing context.
\setbeamerfont{block title}{size={}}
% Create the style for the pseudo-code or programs
\defbeamertemplate*{code basic style}{default}{%
\tiny%
}
\defbeamertemplate*{code inline style}{default}{%
\normalcolor%
}
\defbeamertemplate*{code identifier style}{default}{%
\ttfamily%
}
\defbeamertemplate*{code keyword style}{default}{%
\bfseries%
}
% Redefine the style for definition blocks
\newenvironment<>{definitionblock}[1]{%
\begin{actionenv}#2%
\def\insertblocktitle{#1}%
\par%
\usebeamertemplate{block begin definition}%
}{%
\par%
\usebeamertemplate{block end definition}%
\end{actionenv}
}
\gdef\th@definition{%
\normalfont % body font
\def\inserttheoremblockenv{definitionblock}
}
\setbeamertemplate{theorem begin}{%
\begin{\inserttheoremblockenv}%
{%
\ifthenelse{\equal{\inserttheoremblockenv}{definitionblock}}{%
\ifx\inserttheoremaddition\@empty%
\inserttheoremname%
\else%
\inserttheoremaddition%
\fi%
}{%
\inserttheoremname%
\ifx\inserttheoremaddition\@empty\else\ (\inserttheoremaddition)\fi%
}%
}%
}
\defbeamertemplate*{block begin definition}{default}{%
\par\vskip\medskipamount%
\begin{beamerboxesrounded}[upper=block title definition,lower=block body definition,shadow=true]%
{\raggedright\usebeamerfont*{block title definition}\insertblocktitle}%
\raggedright%
\usebeamerfont{block body definition}%
}
\defbeamertemplate*{block end definition}{default}{%
\end{beamerboxesrounded}\vskip\smallskipamount%
}
\mode
<all>