beamerthemefemto.sty
4.53 KB
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
\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]
\node[fit=(current page),fill=\@femtomaincolor] {};
\node[anchor=north west,inner sep=3mm] at (current page.north west)
{\includegraphics[width=3cm]{img/Femto-logo_blanc-2012-transp.png}};
\node[anchor=south west,inner sep=3mm] (CNRS) at (current page.south
west)
{\includegraphics[height=1cm]{img/CNRS_logo_blanc_sur_alpha.pdf}};
\node[inner sep=0, right=0 of CNRS] (UBFC)
{\includegraphics[height=1cm]{img/ubfc_blanc_sur_alpha.pdf}};
\node[inner sep=0, right=3mm of UBFC] (UFC)
{\includegraphics[height=.5cm]{img/ufc_blanc_sur_alpha.pdf}};
\node[inner sep=0, right=3mm of UFC] (ENSMM)
{\includegraphics[height=1cm]{img/ENSMM.png}};
\node[inner sep=0, right=3mm of ENSMM] (UTBM)
{\includegraphics[height=1cm]{img/UTBM.eps}};
% orange arc
\node[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=10pt]
(0, 0) circle[radius=20pt];
\end{tikzpicture}
};
% yellow arc
\node[anchor=center, inner sep=0] at ($(current page.north east) + (0,
-3cm)$) {
\begin{tikzpicture}
\path[fill=femtoyellowstrong, even odd rule] (0, 0) circle[radius=10pt]
(0, 0) circle[radius=20pt];
\end{tikzpicture}
};
% white dot arc
\node[anchor=center, inner sep=0] at ($(current page.north west) + (6cm, 0)$) {
\begin{tikzpicture}
\path[pattern color=white, pattern={Dots[distance=2pt]}, even odd rule] (0, 0) circle[radius=10pt]
(0, 0) circle[radius=20pt];
\end{tikzpicture}
};
% white cross
\node[anchor=center, inner sep=0] at ($(current page.center) + (3cm,
-1.5cm)$) {
% white cross arc
\begin{tikzpicture}
\path[fill=white] (0, 0) rectangle (30pt, 10pt);
\path[fill=white] (10pt, 20pt) rectangle (20pt, -10pt);
\end{tikzpicture}
};
% purple angle
\node[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 (-20pt, 10pt);
\path[fill=femtopurplestrong] (0, 0) rectangle (-10pt, 20pt);
\end{tikzpicture}
};
\end{tikzpicture}
{\huge \textbf{\inserttitle}}\\
{\Large \insertsubtitle}
\hspace{-8mm}\tikz{\draw[color=\@femtolightcolor] (0, 0) -- (8mm, 0);}
{\normalsize \textit{\insertauthor}}\\
\medskip
{\small \insertinstitute}
}
\setbeamertemplate{footline}
{
\newcommand{\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]
\node[anchor=south west] at ($(current page.south west) + (1mm, 9mm)$) {
\begin{tikzpicture}
\path[fill=\@femtomaincolor] (0, 0) -- (16pt, 0) -- (16pt,
8pt) -- (8pt, 8pt)--(8pt, 16pt) -- (0, 16pt);
\end{tikzpicture}
};
\end{tikzpicture}
% Mirrored F symbol
\begin{tikzpicture}[remember picture, overlay]
\node[anchor=north east, inner sep=0] at ($(current page.north east) + (-3mm, -3mm)$) {
\begin{tikzpicture}[]
\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);
\end{tikzpicture}
};
\end{tikzpicture}
}