Blame view

beamerthemefemto.sty 4.46 KB
523a6a1c9   pbreugno   :tada: Thème FEMT...
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
  \mode<presentation>
  
  \RequirePackage{tikz}
  \RequirePackage{xcolor}
  \RequirePackage{helvet}
  \usetikzlibrary{fit,positioning,calc,patterns.meta}
  
  
  \usecolortheme{femto}
  \usefonttheme{femto}
  
  \setbeamertemplate{title page}
  {
  	\begin{tikzpicture}[remember picture, overlay]
  		
  ode[fit=(current page),fill=\@femtomaincolor] {};
  		
  ode[anchor=north west,inner sep=3mm] at (current page.north west)
  			{\includegraphics[width=3cm]{img/Femto-logo_blanc-2012-transp.png}};
  		
  ode[anchor=south west,inner sep=3mm] (CNRS) at (current page.south
  			west)
  			{\includegraphics[height=1cm]{img/CNRS_white.png}};
  		
  ode[inner sep=0, right=0 of CNRS] (UBFC)
  			{\includegraphics[height=1cm]{img/UBFC_white.png}};
  		
  ode[inner sep=0, right=3mm of UBFC] (UFC)
  			{\includegraphics[height=.5cm]{img/UFC_white.png}};
  		
  ode[inner sep=0, right=3mm of UFC] (ENSMM)
  			{\includegraphics[height=1cm]{img/ENSMM.png}};
  		
  ode[inner sep=0, right=3mm of ENSMM] (UTBM)
  			{\includegraphics[height=1cm]{img/UTBM.eps}};
  
  		% orange arc 
  		
  ode[anchor=center, inner sep=0] at ($(current page.south west) + (0,
  			2.5cm)$) {
  				\begin{tikzpicture}
  					\path[fill=femtoredstrong, even odd rule] (0, 0) circle[radius=10px]
  						(0, 0) circle[radius=20px];
  				\end{tikzpicture}
  			};
  
  		% yellow arc 
  		
  ode[anchor=center, inner sep=0] at ($(current page.north east) + (0,
  			-3cm)$) {
  				\begin{tikzpicture}
  					\path[fill=femtoyellowstrong, even odd rule] (0, 0) circle[radius=10px]
  						(0, 0) circle[radius=20px];
  				\end{tikzpicture}
  			};
  		% white dot arc
  		
  ode[anchor=center, inner sep=0] at ($(current page.north west) + (6cm, 0)$) {
  				\begin{tikzpicture}
  					\path[pattern color=white, pattern={Dots[distance=2px]}, even odd rule] (0, 0) circle[radius=10px]
  						(0, 0) circle[radius=20px];
  				\end{tikzpicture}
  			};
  
  		% white cross
  		
  ode[anchor=center, inner sep=0] at ($(current page.center) + (3cm,
  			-1.5cm)$) {
  				% white cross arc 
  				\begin{tikzpicture}
  					\path[fill=white] (0, 0) rectangle (30px, 10px);
  					\path[fill=white] (10px, 20px) rectangle (20px, -10px);
  				\end{tikzpicture}
  			};
  		
  		% purple angle
  		
  ode[anchor=center, inner sep=0] at ($(current page.north west) + (3.7cm,
  			-1.9cm)$) {
  				% white cross arc 
  				\begin{tikzpicture}
  					\path[fill=femtopurplestrong] (0, 0) rectangle (-20px, 10px);
  					\path[fill=femtopurplestrong] (0, 0) rectangle (-10px, 20px);
  				\end{tikzpicture}
  			};
  	\end{tikzpicture}
  
  	{\huge \textbf{\inserttitle}}\\
  	{\Large \insertsubtitle}
  
  	\hspace{-8mm}\tikz{\draw[color=\@femtolightcolor] (0, 0) -- (8mm, 0);}
  
  	{
  ormalsize \textit{\insertauthor}}
  }
  
  \setbeamertemplate{footline}
  {
  
  	
  ewcommand{\separationwidth}{\paperwidth}
  	\advance \separationwidth by -7mm
  	\hspace{4mm}
  	\begin{beamercolorbox}[wd=\separationwidth,ht=.5pt]{top separation line
  		foot}
  	\end{beamercolorbox}
  
  	\hbox{
  		\begin{beamercolorbox}[wd=.2\paperwidth,ht=8mm,sep=2mm]{background}
  			\includegraphics[height=5mm]{img/Femto-logo_gris-2012.png}
  		\end{beamercolorbox}%
  		\begin{beamercolorbox}[wd=.8\paperwidth,ht=8mm]{background}
  			\parbox[b][8mm][c]{.8\paperwidth}{
  				\usebeamerfont{footline}
  				\hfill \insertshorttitle $\ |$ \insertshortauthor $\ |$ \insertshortdate
  				\usebeamerfont{page number in head/foot}
  				\hspace{3mm}
  				\insertframenumber
  			}
  		\end{beamercolorbox}
  	}
  }
  
  % Removes navigation
  \setbeamertemplate{navigation symbols}
  {
  }
  
  \setbeamertemplate{background}
  {
  	% Bottom left angle
  	\begin{tikzpicture}[remember picture, overlay]
  		
  ode[anchor=south west] at ($(current page.south west) + (1mm, 9mm)$) {
  				\begin{tikzpicture}
  					\path[fill=\@femtomaincolor] (0, 0) -- (16px, 0) -- (16px,
  					8px) -- (8px, 8px)--(8px, 16px) -- (0, 16px);
  				\end{tikzpicture}
  			};
  	\end{tikzpicture}
  
  	% Mirrored F symbol
  	\begin{tikzpicture}[remember picture, overlay]
  		
  ode[anchor=north east, inner sep=0] at ($(current page.north east) + (-3mm, -3mm)$) {
  			\begin{tikzpicture}[]
  				\path[fill=\@femtolightcolor] (0, 0) -- (12px, 0) -- (12px,
  					20px)
  					-- (24px, 20px) -- (24px, 32px) -- (12px, 32px) -- (12px,
  					44px)
  					--(12px, 44px) arc[start angle=0, end angle=90,
  					radius=28px] (-16px, 72px)
  					-- (-16px, 72px) -- (-36px, 72px) -- (-36px, 60px) --
  					(-16px, 60px)
  					-- (-16px, 60px) arc[start angle=90, end angle=0,
  					radius=16px]
  					-- (0px, 44px) -- (0px, 32px) -- (-12px, 32px) --
  					(-12px, 20px) -- (0px, 20px) -- (0px, 0px);
  				\path[fill=\@femtolightcolor] (12px, 60px) rectangle (24px, 72px);
  			\end{tikzpicture}
  			};
  	\end{tikzpicture}
  }