summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/pas-cv/macro-gaia.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/pas-cv/macro-gaia.tex')
-rw-r--r--Master/texmf-dist/tex/latex/pas-cv/macro-gaia.tex78
1 files changed, 78 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/pas-cv/macro-gaia.tex b/Master/texmf-dist/tex/latex/pas-cv/macro-gaia.tex
new file mode 100644
index 00000000000..65801e4af4d
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/pas-cv/macro-gaia.tex
@@ -0,0 +1,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}
+}