-
Notifications
You must be signed in to change notification settings - Fork 3
/
beamerthemeln12common.sty
228 lines (192 loc) · 6.9 KB
/
beamerthemeln12common.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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
\ProvidesPackageRCS $Header: /cvsroot/latex-beamer/latex-beamer/themes/theme/compatibility/beamerthemeln12common.sty,v 1.8 2004/10/07 20:53:10 tantau Exp $
\mode<presentation>
% From Boadilla
\newif\ifbeamer@secheader
\beamer@secheaderfalse
\DeclareOptionBeamer{secheader}{\beamer@secheadertrue}
\ProcessOptionsBeamer
\useinnertheme[shadow]{rounded}
% do not reduce size of subitems
\setbeamerfont{itemize/enumerate subbody}{size=\normalsize}
\setbeamerfont{itemize/enumerate subsubbody}{size=\normalsize}
\useitemizeitemtemplate{%
\scriptsize\raise1.25pt\hbox{\color{beamerstructure}$\blacktriangleright$}
}
\usesubitemizeitemtemplate{%
\scriptsize\raise1.25pt\hbox{\color{beamerstructure}$\blacklozenge$}
}
\usesubsubitemizeitemtemplate{%
\scriptsize\raise1.25pt\hbox{\color{beamerstructure}$\bigstar$}
}
\setbeamersize{text margin left=1em,text margin right=1em}
\ifbeamer@secheader\else\setbeamertemplate{headline}[default]\fi
%%% end of copy from Boadilla
\definecolor{myred}{HTML}{d01e1e}
\definecolor{mygreen}{HTML}{129d1c}
\definecolor{colorsimterpose}{HTML}{bd0505}
\definecolor{mydarkred}{HTML}{a41313}
\definecolor{mylightgray}{HTML}{F4F1F1}
\setbeamercolor{section in toc}{fg=black,bg=white}
\setbeamercolor{alerted text}{fg=darkred!80!gray}
\setbeamercolor*{palette primary}{fg=black,bg=gray!30!white}
\setbeamercolor*{palette secondary}{fg=darkred!70!black,bg=gray!15!white}
\setbeamercolor*{palette tertiary}{bg=darkred!80!black,fg=gray!10!white}
\setbeamercolor*{palette quaternary}{fg=darkred,bg=gray!5!white}
\setbeamercolor*{sidebar}{fg=darkred,bg=gray!10!white}
\setbeamercolor*{palette sidebar primary}{fg=darkred!10!black}
\setbeamercolor*{palette sidebar secondary}{fg=white}
\setbeamercolor*{palette sidebar tertiary}{fg=darkred!50!black}
\setbeamercolor*{palette sidebar quaternary}{fg=gray!10!white}
\setbeamercolor{titlelike}{bg=mydarkred, fg=white}
\setbeamercolor{frametitle}{bg=gray!10!white, fg=mydarkred}
\setbeamercolor{frametitle right}{bg=gray!60!white}
\setbeamercolor{block body}{fg=black}
\setbeamercolor*{separation line}{}
\setbeamercolor*{fine separation line}{}
\setbeamercolor{structure}{fg=mydarkred}
\setbeamertemplate{navigation symbols}{}
\setbeamercovered{transparent}
% blocks
\defbeamertemplate*{block begin}{emptty}
{
\par\vskip\medskipamount%
\begin{beamercolorbox}[colsep*=.75ex]{block title}
\usebeamerfont*{block title}\insertblocktitle\vspace{-.2\baselineskip}% Just added this vskip
\end{beamercolorbox}%
{\parskip0pt\par}%
\ifbeamercolorempty[bg]{block title}
{}
{\ifbeamercolorempty[bg]{block body}{}{\nointerlineskip\vskip-0.5pt}}%
\usebeamerfont{block body}%
\begin{beamercolorbox}[colsep*=.75ex,vmode]{block body}%
\ifbeamercolorempty[bg]{block body}{\vskip-.25ex}{\vskip-.75ex}\vbox{}%
}
\defbeamertemplate*{block end}{emptty}
{\end{beamercolorbox}\vskip 0.5em}
% title theme
\setbeamertemplate{frametitle}{%
\ifbeamer@plainframe%
\else%
\vskip0.1em%
{\leftskip-\beamer@leftmargin\advance\leftskip by0.3cm%
\rightskip-\beamer@rightmargin plus1fil\advance\rightskip by0.3cm\leavevmode
{\usebeamercolor{frametitle}\usebeamerfont{frametitle}
\Large\bfseries{\underline{\insertframetitle}}}\par}%
\vskip-.3cm
\fi%
}
%% footline theme
\setbeamercolor{author in head/foot}{fg=white!20!black,bg=white}
\setbeamercolor{title in head/foot}{fg=white!20!black,bg=white}
\defbeamertemplate*{footline}{split theme}
{%
\leavevmode%
\hbox{\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.1cm plus1fill,rightskip=.1cm]{author in head/foot}%
\usebeamerfont{author in head/foot}\insertshortauthor
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.1cm,rightskip=.1cm plus1fil]{title in head/foot}%
\usebeamerfont{title in head/foot}\insertshorttitle \hfill \insertframenumber{} / \inserttotalframenumber{}
\end{beamercolorbox}}%
\vskip0pt%
}
\mode
<all>
\usepackage{wasysym}
\usepackage[utf8]{inputenc}
\usepackage{helvet}
\usepackage{times}
\usepackage[T1]{fontenc}
\usepackage{xspace}
\usepackage{comment}
\usepackage{figlatex}
\usepackage{verbatim}
\usepackage{comment}
\usepackage{soul}
\usepackage{tabularx}
\usepackage{listings}
\beamertemplatetransparentcovereddynamic
\setbeamercovered{invisible}
\newcommand{\br}{\vskip 1em}
\newcommand{\hbr}{\vskip 0.5em}
\newcommand{\hhbr}{\vskip 0.25em}
\newcommand{\Fleche}{\textbf{$\Rightarrow$}\xspace}
\newcommand{\fleche}{\textbf{$\rightarrow$}\xspace}
\renewcommand{\ttdefault}{aett}
\usepackage{aecompl}
\newcommand{\logopath}{/home/lucas/d/junkdocs/latex/logos/}
\newcommand{\picspath}{/home/lucas/d/junkdocs/latex/pics/}
\newcommand{\figspath}{/home/lucas/d/junkdocs/latex/figs/}
%%%%%%%%%% Useful macros
\definecolor{darkgreen}{rgb}{0,.7,0}
\definecolor{darkred}{rgb}{.7,0,0}
\newcommand{\Smiley}{{\color{darkgreen}\smiley}}
\newcommand{\Frownie}{{\color{darkred}\frownie}}
\newcommand{\authorteaching}{\author[Lucas Nussbaum]{Lucas Nussbaum\\{\small\texttt{[email protected]}}}}
\newcommand{\authorresearch}{\author[Lucas Nussbaum]{Lucas Nussbaum\\{\small\texttt{[email protected]}}}}
\newcommand{\instituteresearch}{%
\institute{
\vspace{0.3cm}
\begin{columns}[b]
\begin{column}{1cm}
\end{column}
\begin{column}{2.5cm}
\centerline{\includegraphics[height=.7cm]{logo-loria.pdf}}
\end{column}
\begin{column}{2.5cm}
\centerline{\includegraphics[height=.7cm]{logo-cnrs.pdf}}
\end{column}
\begin{column}{2.5cm}
\centerline{\includegraphics[height=.7cm]{logo-inria.pdf}}
\end{column}
\begin{column}{2.5cm}
\centerline{\includegraphics[height=.7cm]{logo-ul.pdf}}
\end{column}
\begin{column}{1cm}
\end{column}
\end{columns}
}
}
\newcommand{\instituteresearchgrid}{%
\institute{
\vspace{0.3cm}
\begin{columns}[b]
\begin{column}{1cm}
\end{column}
\begin{column}{2.5cm}
\centerline{\includegraphics[height=.8cm]{INRIA_SCIENTIFIQUE_UK_CMJN.pdf}}
\end{column}
\begin{column}{2.5cm}
\centerline{\includegraphics[height=.8cm]{UL_LOGO_CMJN-crop.pdf}}
\end{column}
\begin{column}{2.5cm}
\centerline{\includegraphics[height=.8cm]{logo_loria_complet_couleur.pdf}}
\end{column}
\begin{column}{2.5cm}
\centerline{\includegraphics[height=.8cm]{grid5000-logo.pdf}}
\end{column}
\begin{column}{2.5cm}
\centerline{\includegraphics[height=.8cm]{logo-cnrs.pdf}}
\end{column}
\begin{column}{1cm}
\end{column}
\end{columns}
}
}
\newcommand{\instituteiutlp}{%
\institute{\small Licence professionnelle ASRALL\\
{\scriptsize \sl Administration de systèmes, réseaux et applications à base de logiciels libres}\\[1em]
\includegraphics[width=6cm]{logo-iut-info}\\[1em]
{\scriptsize License: GNU General Public License version 3 or later\\ or Creative Commons BY-SA 3.0 Unported\\(see README.md)}
}
}
\newcommand{\instituteiutras}{%
\institute{\small Réseaux (Année Spéciale)\\[1em]
\includegraphics[width=6cm]{logo-iut-info}
}
}
\newcommand{\pedp}{\NoAutoSpaceBeforeFDP}
\lstset{
extendedchars=true,
inputencoding=utf8,
literate={à}{{\`a}}1 {è}{{\`e}}1 {é}{{\'e}}1
}