summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/pas-cv/macro-gaia.tex
blob: 65801e4af4db59d36bcd7961612a85282527d0ff (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@gaia{gaia}
\def\cv@h@gaia{2}

% =============== FOND ===============
\newcommand*\fond@gaia{%
	\fill[left color=black,right color=\cmdPAS@bg@bgcolor] (0,-\cv@h@gaia) rectangle+(7,-3);
	\fill[left color=black,right color=\cmdPAS@bg@bgcolor] (0,-28) rectangle+(23,1);
	\draw[\cmdPAS@bg@bordercolor,very thick] (7,0) -- (7,-30);
	\fill[right color=black,left color=\cmdPAS@bg@bgcolor] (11,-\cv@h@gaia) rectangle+(13,-3);
	\ifx\cmdPAS@bg@pic\@empty%
	\else
		\node (photo) at (9,-\cv@h@gaia-1.5) {\includegraphics[scale=\cmdPAS@bg@scalepic]{\cmdPAS@bg@pic}};
		\foreach \d/\c in {0.2/10,0.15/30,0.1/50,0.05/70}
		{
			\fill[black!\c] ($(photo.north west)+(\d,-\d)+(0.07,-0.15)$) rectangle ($(photo.south east)+(\d,-\d)+(0.05,0)$);
		}
		\ifx\cmdPAS@bg@borderpic\@empty
			\node at (9,-\cv@h@gaia-1.5) {\includegraphics[scale=\cmdPAS@bg@scalepic]{\cmdPAS@bg@pic}};
		\else
			\node[draw=\cmdPAS@bg@borderpic,very thick,inner sep=1pt] at (9,-\cv@h@gaia-1.5) {\includegraphics[scale=\cmdPAS@bg@scalepic]{\cmdPAS@bg@pic}};
		\fi
	\fi
	\node[color=\cmdPAS@bg@postecolor,right] at (11.5,-\cv@h@gaia-1.5) {\begin{minipage}{8cm}\scshape\cmdPAS@bg@postesize\bfseries\cmdPAS@bg@poste\end{minipage}};
}

%=============== INFO GAUCHE ===============
\newcommand*\infoLeft@gaia[1]{%
	\AddToShipoutPicture{%
		\begin{tikzpicture}
		\clip (0,0) rectangle+(\paperwidth,-\paperheight);
		\node[below left,minimum height=3cm] at (6.7,-\cv@h@gaia-.2){
				\begin{minipage}{5.5cm}
					\begin{flushright}#1\end{flushright}
				\end{minipage}
		};
		\end{tikzpicture}
	}
}

%=============== INFO DROITE ===============
\newcommand*\infoRight@gaia[1]{%
	\AddToShipoutPicture{%
		\put(\LenToUnit{0.5cm},\LenToUnit{1.5cm}){%
			\begin{minipage}[b]{6cm}
				\begin{flushright}#1\end{flushright}
			\end{minipage}
		}
	}
}

%=============== TITRE ===============
\newcommand*\title@gaia[1]{%
	\noindent
	\begin{tikzfadingfrompicture}[name=title]
		\node[text=transparent!20] {#1};
	\end{tikzfadingfrompicture}
	\begin{minipage}{9cm}
		\begin{tikzpicture}
			\node[inner sep=0cm] (textbox) {\phantom{#1}};
			\shadedraw[path fading=title,fit fading=false,left color=\cmdPAS@title@bordercolor,right color=\cmdPAS@title@color,right] (textbox.south west) rectangle (textbox.north east);
			\draw[\cmdPAS@title@bordercolor,very thick] ($(textbox.south east)+(.1,.1)$) -- ($(textbox.south east)+(15,.1)$);
		\end{tikzpicture}
	\end{minipage}
}

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

%=============== CLEARPAGE ===============
\newcommand*\clearpage@gaia{%
	\fill[left color=black,right color=\cmdPAS@bg@bgcolor] (0,-28) rectangle+(23,1);
	\draw[\cmdPAS@bg@bordercolor,very thick] (7,0) -- (7,-30);
}
\newcommand*\clearmargins@gaia{%
	\newgeometry{tmargin=1cm,bmargin=2.5cm,lmargin=7.5cm,rmargin=1.5cm}
}