]> AND Private Git Repository - desynchronisation-controle.git/blob - sem1305/beamerthemefemto.sty
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
totot
[desynchronisation-controle.git] / sem1305 / beamerthemefemto.sty
1 %-------------------------------------------------------------------------------
2 % LaTeX Beamer theme "femto" from the femto-st evaluation model (2011) JM Nicod and PC Heam (LIFC)
3
4 % author: Christophe Varnier et passage au ".sty" par G. Laurent
5 %         Joel Abadie (12/06/2012) rajout de fonctionnalites tikzpicture
6 %         Jean-Marc Nicod (logo + reglage pied de page)
7 %-------------------------------------------------------------------------------
8 \NeedsTeXFormat{LaTeX2e}
9 \ProvidesPackage{beamerthemefemto}[2012/06/05 beamer theme femto package]
10 \RequirePackage{times}
11 \RequirePackage{tikz}
12 %-------------------------------------------------------------------------------
13
14 %      _         _             _                     _                     
15 %  ___| |_ _   _| | ___    ___| |_    ___ ___  _   _| | ___ _   _ _ __ ___ 
16 % / __| __| | | | |/ _ \  / _ \ __|  / __/ _ \| | | | |/ _ \ | | | '__/ __|
17 % \__ \ |_| |_| | |  __/ |  __/ |_  | (_| (_) | |_| | |  __/ |_| | |  \__ \
18 % |___/\__|\__, |_|\___|  \___|\__|  \___\___/ \__,_|_|\___|\__,_|_|  |___/
19 %          |___/                                                           
20 %
21
22 % commande permettant de dessiner une page de fond
23 % appel depuis le document par : \setbeamertemplate{background}{\titrefemto}
24 \newcommand{\titrefemto}{
25 \begin{tikzpicture}
26         %definition du node centre au dimension de la page
27         \node[minimum height=\paperheight, minimum width=\paperwidth](centre) {};
28         % placement des logos en bas à gauche
29         \matrix[above right=4mm, ampersand replacement=\&] at (centre.south west){
30                 \node[anchor=center]{\includegraphics[width=7mm]{logo-UFC.jpg}}; \&
31                 \node[anchor=center]{\includegraphics[width=6mm]{logo-CNRS.jpg}}; \&
32                 \node[anchor=center]{\includegraphics[width=13mm]{logo-ENSMM.jpg}}; \&
33                 \node[anchor=center]{\includegraphics[width=12mm]{logo-UTBM.jpg}}; \\
34         };
35         %placement des logos en haut à droite
36         \node[below left, inner sep=0] at (centre.north east) {\includegraphics[width=5.5cm]{Hexagones.jpg}};
37         %placement des logos en haut à gauche
38 %       \node[below right=6mm] at (centre.north west) {\includegraphics[width=2.8cm]{Femto-logo_couleur-2012.png}};
39         \node[below right=6mm] at (centre.north west) {\includegraphics[width=2.8cm]{logo-FEMTO.jpg}};
40 \end{tikzpicture}
41 }
42
43 % commande permettant de dessiner une page de fond
44 % appel depuis le document par : \setbeamertemplate{background}{\pagefemto}
45 \newcommand{\pagefemto}{
46 \begin{tikzpicture}
47         % definition du node centre au dimension de la page
48         \node[minimum height=\paperheight, minimum width=\paperwidth](centre) {};
49         % placement des logos en bas à gauche
50 %       \node[above right=3mm] at (centre.south west) {\includegraphics[width=1.2cm]{Femto-logo_couleur-2012.png}};
51         \node[above right=0.75mm] at ([shift={(0.25,0)}]centre.south west) {\includegraphics[width=1.2cm]{logo-FEMTO.jpg}};
52         %placement des logos en haut à droite
53         \node[below left, inner sep=0](hexa) at (centre.north east) {\includegraphics[width=3.9cm]{Hexagones.jpg}};
54         %trace des traits
55         \coordinate (A) at ([shift={(0.5,-1.4)}]centre.north west);
56         \coordinate (B) at (A-| hexa.west);
57         \draw[BleuFemtoTitre] (A) -- ([xshift=-3mm]B);
58         %trait inferieur
59 %       \coordinate (A) at ([shift={(0.5,1.1)}]centre.south west);
60         \coordinate (A) at ([shift={(0.5,.8)}]centre.south west);
61 %       \coordinate (B) at ([shift={(-0.5,1.1)}]centre.south east);
62         \coordinate (B) at ([shift={(-0.5,.8)}]centre.south east);
63         \draw[BleuFemtoTitre] (A) -- (B);
64 \end{tikzpicture}
65 }
66
67 % \definecolor{GreenYellow}{cmyk}{0.15,0,0.69,0} % PANTONE 388
68 % \definecolor{Yellow}{cmyk}{0,0,1.,0} % PANTONE YELLOW
69 % \definecolor{Goldenrod}{cmyk}{0,0.10,0.84,0} % PANTONE 109
70 % \definecolor{Dandelion}{cmyk}{0,0.29,0.84,0} % PANTONE 123
71 % \definecolor{Apricot}{cmyk}{0,0.32,0.52,0} % PANTONE 1565
72 % \definecolor{Peach}{cmyk}{0,0.50,0.70,0} % PANTONE 164
73 % \definecolor{Melon}{cmyk}{0,0.46,0.50,0} % PANTONE 177
74 % \definecolor{YellowOrange}{cmyk}{0,0.42,1.,0} % PANTONE 130
75 % \definecolor{Orange}{cmyk}{0,0.61,0.87,0} % PANTONE ORANGE-021
76 % \definecolor{BurntOrange}{cmyk}{0,0.51,1.,0} % PANTONE 388
77 % \definecolor{Bittersweet}{cmyk}{0,0.75,1.,0.24} % PANTONE 167
78 % \definecolor{RedOrange}{cmyk}{0,0.77,0.87,0} % PANTONE 179
79 % \definecolor{Mahogany}{cmyk}{0,0.85,0.87,0.35} % PANTONE 484
80 % \definecolor{Maroon}{cmyk}{0,0.87,0.68,0.32} % PANTONE 201
81 % \definecolor{BrickRed}{cmyk}{0,0.89,0.94,0.28} % PANTONE 1805
82 % \definecolor{Red}{cmyk}{0,1.,1.,0} % PANTONE RED
83 % \definecolor{OrangeRed}{cmyk}{0,1.,0.50,0} % No PANTONE,match
84 % \definecolor{RubineRed}{cmyk}{0,1.,0.13,0} % PANTONE RUBINE-RED
85 % \definecolor{WildStrawberry}{cmyk}{0,0.96,0.39,0} % PANTONE 206
86 % \definecolor{Salmon}{cmyk}{0,0.53,0.38,0} % PANTONE 183
87 % \definecolor{CarnationPink}{cmyk}{0,0.63,0,0} % PANTONE 218
88 % \definecolor{Magenta}{cmyk}{0,1.,0,0} % PANTONE PROCESS-MAGENTA
89 % \definecolor{VioletRed}{cmyk}{0,0.81,0,0} % PANTONE 219
90 % \definecolor{Rhodamine}{cmyk}{0,0.82,0,0} % PANTONE RHODAMINE-RED
91 % \definecolor{Mulberry}{cmyk}{0.34,0.90,0,0.02} % PANTONE 241
92 % \definecolor{RedViolet}{cmyk}{0.07,0.90,0,0.34} % PANTONE 234
93 % \definecolor{Fuchsia}{cmyk}{0.47,0.91,0,0.08} % PANTONE 248
94 % \definecolor{Lavender}{cmyk}{0,0.48,0,0} % PANTONE 223
95 % \definecolor{Thistle}{cmyk}{0.12,0.59,0,0} % PANTONE 245
96 % \definecolor{Orchid}{cmyk}{0.32,0.64,0,0} % PANTONE 252
97 % \definecolor{DarkOrchid}{cmyk}{0.40,0.80,0.20,0} %  No PANTONE match
98 % \definecolor{Purple}{cmyk}{0.45,0.86,0,0} % PANTONE PURPLE
99 % \definecolor{Plum}{cmyk}{0.50,1.,0,0} % PANTONE 518
100 % \definecolor{Violet}{cmyk}{0.79,0.88,0,0} % PANTONE VIOLET
101 % \definecolor{RoyalPurple}{cmyk}{0.75,0.90,0,0} % PANTONE 267
102 % \definecolor{BlueViolet}{cmyk}{0.86,0.91,0,0.04} % PANTONE 2755
103 % \definecolor{Periwinkle}{cmyk}{0.57,0.55,0,0} % PANTONE 2715
104 % \definecolor{CadetBlue}{cmyk}{0.62,0.57,0.23,0} % PANTONE (534+535)
105 % \definecolor{CornflowerBlue}{cmyk}{0.65,0.13,0,0} % PANTONE 292
106 % \definecolor{MidnightBlue}{cmyk}{0.98,0.13,0,0.43} % PANTONE 302
107 % \definecolor{NavyBlue}{cmyk}{0.94,0.54,0,0} % PANTONE 293
108 % \definecolor{RoyalBlue}{cmyk}{1.,0.50,0,0} % No PANTONE match
109 % \definecolor{Blue}{cmyk}{1.,1.,0,0} % PANTONE BLUE-072
110 % \definecolor{Cerulean}{cmyk}{0.94,0.11,0,0} % PANTONE 3005
111 % \definecolor{Cyan}{cmyk}{1.,0,0,0} % PANTONE PROCESS-CYAN
112 % \definecolor{ProcessBlue}{cmyk}{0.96,0,0,0} % PANTONE PROCESS-BLUE
113 % \definecolor{SkyBlue}{cmyk}{0.62,0,0.12,0} % PANTONE 2985
114 % \definecolor{Turquoise}{cmyk}{0.85,0,0.20,0} % PANTONE (312+313)
115 % \definecolor{TealBlue}{cmyk}{0.86,0,0.34,0.02} % PANTONE 3145
116 % \definecolor{Aquamarine}{cmyk}{0.82,0,0.30,0} % PANTONE 3135
117 % \definecolor{BlueGreen}{cmyk}{0.85,0,0.33,0} % PANTONE 320
118 % \definecolor{Emerald}{cmyk}{1.,0,0.50,0} % No PANTONE match
119 % \definecolor{JungleGreen}{cmyk}{0.99,0,0.52,0} % PANTONE 328
120 % \definecolor{SeaGreen}{cmyk}{0.69,0,0.50,0} % PANTONE 3268
121 % \definecolor{Green}{cmyk}{1.,0,1.,0} % PANTONE GREEN
122 % \definecolor{ForestGreen}{cmyk}{0.91,0,0.88,0.12} % PANTONE 349
123 % \definecolor{PineGreen}{cmyk}{0.92,0,0.59,0.25} % PANTONE 323
124 % \definecolor{LimeGreen}{cmyk}{0.50,0,1.,0} % No PANTONE match
125 % \definecolor{YellowGreen}{cmyk}{0.44,0,0.74,0} % PANTONE 375
126 % \definecolor{SpringGreen}{cmyk}{0.26,0,0.76,0} % PANTONE 381
127 % \definecolor{OliveGreen}{cmyk}{0.64,0,0.95,0.40} % PANTONE 582
128 % \definecolor{RawSienna}{cmyk}{0,0.72,1.,0.45} % PANTONE 154
129 % \definecolor{Sepia}{cmyk}{0,0.83,1.,0.70} % PANTONE 161
130 % \definecolor{Brown}{cmyk}{0,0.81,1.,0.60} % PANTONE 1615
131 % \definecolor{Tan}{cmyk}{0.14,0.42,0.56,0} % No PANTONE match
132 % \definecolor{Gray}{cmyk}{0,0,0,0.50} % PANTONE COOL-GRAY-8
133 \definecolor{DarkGray}{cmyk}{0,0,0,0.80} % PANTONE COOL-GRAY-8
134 % \definecolor{Black}{cmyk}{0,0,0,1.} % PANTONE PROCESS-BLACK
135 % \definecolor{White}{cmyk}{0,0,0,0} % No PANTONE match
136
137 % ajout des couleurs Femto
138 \definecolor{BleuFemtoTitre}{cmyk}{0.94,0.83,0,0.01}
139 \definecolor{BleuFemtoTexte}{cmyk}{0.92,0.54,0.05,0.09}
140 \definecolor{BleuFemto}{RGB}{39,84,148}
141 \definecolor{BleuClairFemto}{RGB}{66,153,214}
142 \definecolor{VertFemto}{RGB}{175,203,81}
143 \definecolor{GrisClairFemto}{RGB}{177,179,180}
144 \definecolor{GrisFemto}{RGB}{112,127,135}
145
146 \usetheme{default}
147
148 \setbeamertemplate{navigation symbols}{}
149
150 \setbeamercolor{structure}{fg=DarkGray}
151
152 % _                       _       _         _   _ _            
153 %| |_ ___ _ __ ___  _ __ | | __ _| |_ ___  | |_(_) |_ _ __ ___ 
154 %| __/ _ \ '_ ` _ \| '_ \| |/ _` | __/ _ \ | __| | __| '__/ _ \
155 %| ||  __/ | | | | | |_) | | (_| | ||  __/ | |_| | |_| | |  __/
156 % \__\___|_| |_| |_| .__/|_|\__,_|\__\___|  \__|_|\__|_|  \___|
157 %                  |_|                                         
158
159 %\pgfdeclareimage[height=\paperheight,width=\paperwidth]{titrefemto}{TitreFemto.png}
160
161 \setbeamertemplate{title page}
162 {
163 \vskip 10mm 
164 \usebeamerfont{title}\usebeamercolor[fg]{title}\LARGE\textcolor{BleuFemto}\inserttitle
165 \newline\newline
166 \normalsize\textcolor{GrisFemto}\insertauthor
167 \newline
168 \vskip 1mm
169 \textcolor{GrisFemto}\insertinstitute
170 \newline\newline
171 \footnotesize\textcolor{GrisFemto}\insertdate
172 }
173
174 % _                       _       _                                
175 %| |_ ___ _ __ ___  _ __ | | __ _| |_ ___   _ __   __ _  __ _  ___ 
176 %| __/ _ \ '_ ` _ \| '_ \| |/ _` | __/ _ \ | '_ \ / _` |/ _` |/ _ \
177 %| ||  __/ | | | | | |_) | | (_| | ||  __/ | |_) | (_| | (_| |  __/
178 % \__\___|_| |_| |_| .__/|_|\__,_|\__\___| | .__/ \__,_|\__, |\___|
179 %                  |_|                     |_|          |___/      
180
181 %\pgfdeclareimage[height=\paperheight,width=\paperwidth]{pagefemto}{PageFemto.png}
182
183 \setbeamertemplate{frametitle}{\vspace{6mm}\hspace{-5mm}\Large\bf\textcolor{BleuFemto} \insertframetitle}
184
185 % pour les block
186 \definecolor{fondFemtotableau}{rgb}{1,0.71,0.754}
187 \setbeamertemplate{blocks}[rounded]
188 \setbeamercolor{block title}{fg=BleuClairFemto!60,bg=BleuFemto}
189 \setbeamercolor{block body}{bg=GrisClairFemto!40,fg=GrisFemto!50!black}
190 \setbeamerfont{block title}{series=\bfseries}
191 \setbeamercolor{title in head/foot}{fg=gray}
192 \newenvironment{femtoBlock}[1]{%
193   \textcolor{BleuFemto}{\normalsize\textbf{#1}}\normalsize}
194
195 \setbeamertemplate{footline}
196 {%
197   \leavevmode%
198   \vspace{-2mm}%
199   \hbox{\begin{beamercolorbox}[wd=.85\paperwidth,ht=2.5ex,dp=-2.5ex,leftskip=.3cm plus1fill,rightskip=.3cm]{author in head/foot}%
200     \usebeamerfont{author in head/foot} \hfill \textcolor{GrisFemto}{\insertshortinstitute}
201   \end{beamercolorbox}%
202   \begin{beamercolorbox}[wd=.15\paperwidth,right,ht=2.5ex,dp=1.8ex,leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}%
203     \usebeamerfont{title in head/foot} \hfill \textcolor{BleuFemto}{\insertframenumber\ / \inserttotalframenumber}\hspace{0.25cm}
204   \end{beamercolorbox}}%
205   \vskip 10pt%
206 }
207
208 \setbeamertemplate{itemize item}[circle]
209 \setbeamertemplate{itemize subitem}[circle]
210
211 \partopsep=0ex % espace apres les blocks et avant le contenu
212 \topsep=5ex % debut du texte du slide
213 \parsep=0ex
214 \itemsep=0ex 
215
216 %-------------------------------------------------------------------------------
217