summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/pas-cv/macro-pluton.tex
blob: 11ad8e8b7f739938d6bcf4eec17a76df9893e4fe (plain)
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
\def\modele@pluton{pluton}
\def\cv@h@pluton{5}

% =============== FOND ===============
\newcommand*\fond@pluton{%
	\fill[bottom color=\cmdPAS@bg@bgcolor!20,top color=white] (0,0) rectangle+(\paperwidth,-\cv@h@pluton);
	\draw[\cmdPAS@bg@bgcolor] (0,-\cv@h@pluton) -- (\paperwidth,-\cv@h@pluton);
	\draw[\cmdPAS@bg@bgcolor!50,very thick] (.8\paperwidth,-2) circle (5mm);
	\fill[\cmdPAS@bg@bgcolor!20] ($(.8\paperwidth,-2)+(8mm,8mm)$) circle (2mm);
	\fill[\cmdPAS@bg@bgcolor!40] (0,0) ellipse[x radius=9cm,y radius=13cm];%5 & 8
	\foreach \rx/\ry/\c in {8.7/12.7/10,8.66/12.66/30,8.62/12.62/50,8.58/12.58/70,8.54/12.54/90}
	{
		\fill[fill=black!\c!\cmdPAS@bg@bgcolor!40] (0,0) ellipse[x radius=\rx cm,y radius=\ry cm];
	}
	\fill[white] (0,0) ellipse[x radius=8.5cm,y radius=12.5cm];
	\fill[\cmdPAS@bg@bgcolor!20] (3,-25) circle (3cm);
	\fill[white] (3,-25) circle (2.5cm);
	\fill[\cmdPAS@bg@bgcolor!30] (2.2,-17) circle (.7cm);
	\fill[white] (2.2,-17) circle (0.6cm);
	\draw[very thick,\cmdPAS@bg@bgcolor!50] (1cm,0) -- (1cm,-\paperheight);
	\draw[very thick,\cmdPAS@bg@bgcolor!50] (1.2cm,0) -- (1.2cm,-\paperheight);
	\node[color=\cmdPAS@bg@postecolor,below right] at (9cm,-.5*\cv@h@pluton) {\begin{minipage}{12cm}\scshape\cmdPAS@bg@postesize\bfseries\cmdPAS@bg@poste\end{minipage}};
	\clip (0,0) ellipse[x radius=8.5cm,y radius=12.5cm];
	\fill[\cmdPAS@bg@bordercolor] (0,-1) rectangle+(15,-1);
	\ifx\cmdPAS@bg@pic\@empty%
	\else
		\ifx\cmdPAS@bg@borderpic\@empty
			\node[above left] at (3.5,-12) {\includegraphics[scale=\cmdPAS@bg@scalepic]{\cmdPAS@bg@pic}};
		\else
			\node[above left,draw=\cmdPAS@bg@borderpic,very thick,inner sep=1pt] at (3.5,-12) {\includegraphics[scale=\cmdPAS@bg@scalepic]{\cmdPAS@bg@pic}};
		\fi
	\fi
}

%=============== INFO GAUCHE ===============
\newcommand*\infoLeft@pluton[1]{%
	\AddToShipoutPicture
	{%
		\AtPageLowerLeft
		{%
			\begin{tikzpicture}
				\clip (0,0) rectangle+(\paperwidth,-\paperheight);
				\node[below right] at (1.5,-1.25){
					\begin{minipage}{0.4\paperwidth}
						#1
					\end{minipage}};
			\end{tikzpicture}
		}
	}
}

%=============== INFO DROITE ===============
\newcommand*\infoRight@pluton[1]{%
	\AddToShipoutPicture{%
		\AtPageLowerLeft
		{%
			\begin{tikzpicture}
				\clip (0,0) rectangle+(\paperwidth,-\paperheight);
				\node[below right] at (9.2,-.5){
					\begin{minipage}{11cm}
						#1
					\end{minipage}};
			\end{tikzpicture}
		}
	}
}

%=============== TITRE ===============
\newcommand*\title@pluton[1]{%
	\noindent
	\begin{tikzpicture}
		\fill[\cmdPAS@title@bordercolor] (0,0) circle (1.7mm);
		\fill[\cmdPAS@title@bordercolor!50] (3.5mm,0) circle (1mm);
		\fill[\cmdPAS@title@bordercolor!25] (6mm,0) circle (.7mm);
		\node[right,text=\cmdPAS@title@color] at (7mm,0) {\scshape\bfseries #1};
	\end{tikzpicture}
}

%=============== MARGES ===============
\newcommand*\margins@pluton{%
\FPeval\result{clip(\cv@h@pluton+1)}
\newgeometry{tmargin=\result cm,bmargin=2cm,lmargin=8.5cm,rmargin=1.5cm}
}

%=============== CLEARPAGE ===============
\newcommand*\clearpage@pluton{%
	\fill[\cmdPAS@bg@bgcolor!40] (0,0) ellipse[x radius=9cm,y radius=13cm];%5 & 8
	\foreach \rx/\ry/\c in {8.7/12.7/10,8.66/12.66/30,8.62/12.62/50,8.58/12.58/70,8.54/12.54/90}
	{
		\fill[fill=black!\c!\cmdPAS@bg@bgcolor!40] (0,0) ellipse[x radius=\rx cm,y radius=\ry cm];
	}
	\fill[white] (0,0) ellipse[x radius=8.5cm,y radius=12.5cm];
	\fill[\cmdPAS@bg@bgcolor!20] (3,-25) circle (3cm);
	\fill[white] (3,-25) circle (2.5cm);
	\fill[\cmdPAS@bg@bgcolor!30] (2.2,-17) circle (.7cm);
	\fill[white] (2.2,-17) circle (0.6cm);
	\draw[very thick,\cmdPAS@bg@bgcolor!50] (1cm,0) -- (1cm,-\paperheight);
	\draw[very thick,\cmdPAS@bg@bgcolor!50] (1.2cm,0) -- (1.2cm,-\paperheight);
}
\newcommand*\clearmargins@pluton{%
	\newgeometry{tmargin=2cm,bmargin=2cm,lmargin=9cm,rmargin=1.5cm}
}