Blame view

beamerthemefemto.sty 4.53 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
  \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)
039cef2b4   pbreugno   :art: Logos blanc...
23
  			{\includegraphics[height=1cm]{img/CNRS_logo_blanc_sur_alpha.pdf}};
523a6a1c9   pbreugno   :tada: Thème FEMT...
24
25
  		
  ode[inner sep=0, right=0 of CNRS] (UBFC)
039cef2b4   pbreugno   :art: Logos blanc...
26
  			{\includegraphics[height=1cm]{img/ubfc_blanc_sur_alpha.pdf}};
523a6a1c9   pbreugno   :tada: Thème FEMT...
27
28
  		
  ode[inner sep=0, right=3mm of UBFC] (UFC)
039cef2b4   pbreugno   :art: Logos blanc...
29
  			{\includegraphics[height=.5cm]{img/ufc_blanc_sur_alpha.pdf}};
523a6a1c9   pbreugno   :tada: Thème FEMT...
30
31
32
33
34
  		
  ode[inner sep=0, right=3mm of UFC] (ENSMM)
  			{\includegraphics[height=1cm]{img/ENSMM.png}};
  		
  ode[inner sep=0, right=3mm of ENSMM] (UTBM)
122af2d78   pbreugno   :adhesive_bandage...
35
  			{\includegraphics[height=1cm]{img/UTBM.pdf}};
523a6a1c9   pbreugno   :tada: Thème FEMT...
36
37
38
39
40
41
  
  		% orange arc 
  		
  ode[anchor=center, inner sep=0] at ($(current page.south west) + (0,
  			2.5cm)$) {
  				\begin{tikzpicture}
66500493c   pbreugno   :bug: px->pt
42
43
  					\path[fill=femtoredstrong, even odd rule] (0, 0) circle[radius=10pt]
  						(0, 0) circle[radius=20pt];
523a6a1c9   pbreugno   :tada: Thème FEMT...
44
45
46
47
48
49
50
51
  				\end{tikzpicture}
  			};
  
  		% yellow arc 
  		
  ode[anchor=center, inner sep=0] at ($(current page.north east) + (0,
  			-3cm)$) {
  				\begin{tikzpicture}
66500493c   pbreugno   :bug: px->pt
52
53
  					\path[fill=femtoyellowstrong, even odd rule] (0, 0) circle[radius=10pt]
  						(0, 0) circle[radius=20pt];
523a6a1c9   pbreugno   :tada: Thème FEMT...
54
55
56
57
58
59
  				\end{tikzpicture}
  			};
  		% white dot arc
  		
  ode[anchor=center, inner sep=0] at ($(current page.north west) + (6cm, 0)$) {
  				\begin{tikzpicture}
66500493c   pbreugno   :bug: px->pt
60
61
  					\path[pattern color=white, pattern={Dots[distance=2pt]}, even odd rule] (0, 0) circle[radius=10pt]
  						(0, 0) circle[radius=20pt];
523a6a1c9   pbreugno   :tada: Thème FEMT...
62
63
64
65
66
67
68
69
70
  				\end{tikzpicture}
  			};
  
  		% white cross
  		
  ode[anchor=center, inner sep=0] at ($(current page.center) + (3cm,
  			-1.5cm)$) {
  				% white cross arc 
  				\begin{tikzpicture}
66500493c   pbreugno   :bug: px->pt
71
72
  					\path[fill=white] (0, 0) rectangle (30pt, 10pt);
  					\path[fill=white] (10pt, 20pt) rectangle (20pt, -10pt);
523a6a1c9   pbreugno   :tada: Thème FEMT...
73
74
75
76
77
78
79
80
81
  				\end{tikzpicture}
  			};
  		
  		% purple angle
  		
  ode[anchor=center, inner sep=0] at ($(current page.north west) + (3.7cm,
  			-1.9cm)$) {
  				% white cross arc 
  				\begin{tikzpicture}
66500493c   pbreugno   :bug: px->pt
82
83
  					\path[fill=femtopurplestrong] (0, 0) rectangle (-20pt, 10pt);
  					\path[fill=femtopurplestrong] (0, 0) rectangle (-10pt, 20pt);
523a6a1c9   pbreugno   :tada: Thème FEMT...
84
85
86
87
88
89
90
91
  				\end{tikzpicture}
  			};
  	\end{tikzpicture}
  
  	{\huge \textbf{\inserttitle}}\\
  	{\Large \insertsubtitle}
  
  	\hspace{-8mm}\tikz{\draw[color=\@femtolightcolor] (0, 0) -- (8mm, 0);}
c8b6de75a   pbreugno   :wrench: Ajout d'...
92
93
94
95
  	{
  ormalsize \textit{\insertauthor}}\\
  	\medskip
  	{\small \insertinstitute}
523a6a1c9   pbreugno   :tada: Thème FEMT...
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
  }
  
  \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}
66500493c   pbreugno   :bug: px->pt
137
138
  					\path[fill=\@femtomaincolor] (0, 0) -- (16pt, 0) -- (16pt,
  					8pt) -- (8pt, 8pt)--(8pt, 16pt) -- (0, 16pt);
523a6a1c9   pbreugno   :tada: Thème FEMT...
139
140
141
142
143
144
145
146
147
  				\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}[]
66500493c   pbreugno   :bug: px->pt
148
149
150
151
152
153
154
155
156
157
158
159
160
  				\path[fill=\@femtolightcolor] (0, 0) -- (12pt, 0) -- (12pt,
  					20pt)
  					-- (24pt, 20pt) -- (24pt, 32pt) -- (12pt, 32pt) -- (12pt,
  					44pt)
  					--(12pt, 44pt) arc[start angle=0, end angle=90,
  					radius=28pt] (-16pt, 72pt)
  					-- (-16pt, 72pt) -- (-36pt, 72pt) -- (-36pt, 60pt) --
  					(-16pt, 60pt)
  					-- (-16pt, 60pt) arc[start angle=90, end angle=0,
  					radius=16pt]
  					-- (0pt, 44pt) -- (0pt, 32pt) -- (-12pt, 32pt) --
  					(-12pt, 20pt) -- (0pt, 20pt) -- (0pt, 0pt);
  				\path[fill=\@femtolightcolor] (12pt, 60pt) rectangle (24pt, 72pt);
523a6a1c9   pbreugno   :tada: Thème FEMT...
161
162
163
164
  			\end{tikzpicture}
  			};
  	\end{tikzpicture}
  }