summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/pas-cv/macro-orion.tex
blob: 840796fe34f7a748fe7ceff9ec7d0bb2d31d03be (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
\def\modele@orion{orion}
\def\cv@h@orion{4}

% =============== FOND ===============
\newcommand*\fond@orion{%
	% rectangle gauche
	\fill[right color=white,left color=gray] (.41\paperwidth,-1) rectangle (.39\paperwidth,-26.5);
	% Ombre rectangle gauche
	\fill[left color=white,right color=\cmdPAS@bg@bordercolor] (.4\paperwidth,-.5) rectangle (.2\paperwidth,-27);
	% rectangle haut
	\fill[bottom color=\cmdPAS@bg@bgcolor!30,top color=\cmdPAS@bg@bgcolor] (0,-\cv@h@orion) rectangle+(\paperwidth,-1);
	\fill[top color=\cmdPAS@bg@bgcolor!30,bottom color=\cmdPAS@bg@bgcolor] (0,-1-\cv@h@orion) rectangle+(\paperwidth,-1);
	\draw[very thick,\cmdPAS@bg@bgcolor!10] (0,-.9-\cv@h@orion) -- (\paperwidth,-.9-\cv@h@orion);
	\fill[\cmdPAS@bg@bgcolor!50,opacity=.70] (6,-1-\cv@h@orion) circle[x radius=5cm,y radius=1.5cm];
	\fill[\cmdPAS@bg@bgcolor!30,opacity=.80] (6,-1-\cv@h@orion) circle[x radius=4cm,y radius=1.3cm];
	\fill[\cmdPAS@bg@bgcolor!50,opacity=.70] (6,-1-\cv@h@orion) circle[x radius=2.5cm,y radius=.8cm];
	\ifx\cmdPAS@bg@pic\@empty%
	\else
		\ifx\cmdPAS@bg@borderpic\@empty
			\node at (6,-1-\cv@h@orion) {\includegraphics[scale=\cmdPAS@bg@scalepic]{\cmdPAS@bg@pic}};
		\else
			\node[draw=\cmdPAS@bg@borderpic,very thick,inner sep=1pt] at (6,-1-\cv@h@orion) {\includegraphics[scale=\cmdPAS@bg@scalepic]{\cmdPAS@bg@pic}};
		\fi
	\fi
	\node[color=\cmdPAS@bg@postecolor,above] at (16.5,-1-\cv@h@orion) {\scshape\cmdPAS@bg@postesize\bfseries\cmdPAS@bg@poste};
}

%=============== INFO GAUCHE ===============
\newcommand*\infoLeft@orion[1]{%
	\AddToShipoutPicture{%
		\put(\LenToUnit{1cm},\LenToUnit{.97\paperheight})
			{%
				\rlap{
					\begin{minipage}[t]{0.5\paperwidth}
						#1
					\end{minipage}
				}
			}
	}
}

%=============== INFO DROITE ===============
\newcommand*\infoRight@orion[1]{%
	\AddToShipoutPicture
	{%
		\put(\LenToUnit{.97\paperwidth},\LenToUnit{.97\paperheight}){%
			\llap{%
			\begin{minipage}[t]{.5\paperwidth}
				\begin{flushright}#1\end{flushright}
			\end{minipage}
			}
		}
	}
}

%=============== TITRE ===============
\newcommand*\title@orion[1]{%
	\noindent
	\begin{tikzpicture}
		\node[text=\cmdPAS@title@bordercolor,scale=1.5] (coche) {$\surd$};
		\node[text=\cmdPAS@title@color,right] at (coche.east) {#1};
	\end{tikzpicture}
}

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

%=============== CLEARPAGE ===============
\newcommand*\clearpage@orion{%
	\fill[right color=white,left color=gray] (.41\paperwidth,-1) rectangle (.39\paperwidth,-26.5);
	\fill[left color=white,right color=\cmdPAS@bg@bordercolor] (.4\paperwidth,-.5) rectangle (.2\paperwidth,-27);
}
\newcommand*\clearmargins@orion{%
	\newgeometry{tmargin=1.5cm,bmargin=2cm,lmargin=1cm,rmargin=1.5cm}
}