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

% =============== FOND ===============
\newcommand*\fond@architecte{%
	\fill[color=\cmdPAS@bg@bgcolor!70] (0,-\cv@h@architecte-.3) rectangle +(\paperwidth,-2);
	\fill[color=\cmdPAS@bg@bgcolor] (.4\paperwidth,-\cv@h@architecte-2.3) -- (.7\paperwidth,0) -- (.56\paperwidth,-\cv@h@architecte-2.3) -- cycle;
	\fill[color=\cmdPAS@bg@bgcolor] (.5\paperwidth,-\cv@h@architecte-2.3) -- (.7\paperwidth,-\cv@h@architecte+1) -- (.6\paperwidth,-\cv@h@architecte-2.3) -- cycle;
	\fill[color=\cmdPAS@bg@bgcolor] (.88\paperwidth,-\cv@h@architecte-2.3) -- (.93\paperwidth,-\cv@h@architecte-1.2) -- (.9\paperwidth,-\cv@h@architecte-2.3) -- cycle;
	\fill[color=\cmdPAS@bg@bgcolor] (.92\paperwidth,-\cv@h@architecte-2.3) -- (.97\paperwidth,-\cv@h@architecte-1.5) -- (.94\paperwidth,-\cv@h@architecte-2.3) -- cycle;
	% bas
	\fill[color=\cmdPAS@bg@bgcolor] (.92\paperwidth,-\paperheight) -- (.85\paperwidth,-.95\paperheight) -- (.89\paperwidth,-\paperheight) -- cycle;
	%
	\fill[left color=\cmdPAS@bg@bordercolor,right color=white] (0,-\cv@h@architecte-2.3) rectangle +(\paperwidth,.3);
	\fill[right color=\cmdPAS@bg@bordercolor,left color=white] (0,-\cv@h@architecte-2.3) rectangle +(\paperwidth,-.3);
	\fill[color=white] (.1,-\cv@h@architecte) rectangle +(.15,-2.6);
	\draw[white,very thick] (.35,-\cv@h@architecte) -- (.35,-\cv@h@architecte-2.6);
	\draw[white,thin] (.45,-\cv@h@architecte) -- (.45,-\cv@h@architecte-2.6);
	\ifx\cmdPAS@bg@pic\@empty%
	\else
		\ifx\cmdPAS@bg@borderpic\@empty
			\node[below right,inner sep=1pt] at (1,-\cv@h@architecte+1.5) {\includegraphics[scale=\cmdPAS@bg@scalepic]{\cmdPAS@bg@pic}};
		\else
			\node[below right,draw=\cmdPAS@bg@borderpic,very thick,inner sep=1pt] at (1,-\cv@h@architecte+1.5) {\includegraphics[scale=\cmdPAS@bg@scalepic]{\cmdPAS@bg@pic}};
		\fi
	\fi
	\node[right,color=\cmdPAS@bg@postecolor] at (5,-\cv@h@architecte-1.3) {\scshape\cmdPAS@bg@postesize\bfseries\cmdPAS@bg@poste};
}

%=============== INFO GAUCHE ===============
\newcommand*\infoLeft@architecte[1]{%
	\AddToShipoutPicture
	{%
		\ifx\cmdPAS@bg@pic\@empty
			\put(\LenToUnit{0.5cm},\LenToUnit{.97\paperheight})
			{%
				\rlap{
					\begin{minipage}[t]{0.5\paperwidth}
						#1
					\end{minipage}
				}
			}
		\else
			\put(\LenToUnit{3.5cm},\LenToUnit{.97\paperheight})
			{%
				\rlap
				{
					\begin{minipage}[t]{0.5\paperwidth}
						#1
					\end{minipage}
				}
			}
		\fi
	}
}

%=============== INFO DROITE ===============
\newcommand*\infoRight@architecte[1]{%
	\AddToShipoutPicture{%
		\put(\LenToUnit{\paperwidth},\LenToUnit{\paperheight}){%
			\llap{%
			\begin{minipage}[t]{.6\paperwidth}
				\begin{flushright}\vskip 2mm #1\end{flushright}
			\end{minipage}
			}
		}
	}
}

%=============== TITRE ===============
\newcommand*\title@architecte[1]{%
	\begin{tikzpicture}
		\filldraw[color=\cmdPAS@title@bordercolor!50,draw=white] (.25,-.25) -- (1.25,.25) -- (.25,-.75) -- cycle;
		\node[right,text=\cmdPAS@title@color] (title) at (1,0) {\scshape\bfseries\Large #1};
		\fill[color=\cmdPAS@title@bordercolor] ($(title.north west)+(0,-.1)$) -- ($(title.south west)+(0,.1)$) -- ($(title.south west)+(-.2,.1)$) -- ($(title.north west)+(-.2,-.1)$) -- cycle;
	\end{tikzpicture}
}

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

%=============== CLEARPAGE ===============
\newcommand*\clearpage@architecte{%
	\fill[color=\cmdPAS@bg@bgcolor] (.92\paperwidth,-\paperheight) -- (.85\paperwidth,-.95\paperheight) -- (.89\paperwidth,-\paperheight) -- cycle;
}
\newcommand*\clearmargins@architecte{%
	\newgeometry{tmargin=2cm,bmargin=1.5cm,lmargin=1.5cm,rmargin=1.5cm}
}