summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/pas-cv/macro-dynamique.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-11-27 22:29:25 +0000
committerKarl Berry <karl@freefriends.org>2013-11-27 22:29:25 +0000
commitcdcbacd7c8941f2c8f774d373d813bc3ffebf629 (patch)
treedc463568de34cdbdc3e142db2d5fb9f11f295630 /Master/texmf-dist/tex/latex/pas-cv/macro-dynamique.tex
parentf90134b905cb49dac07ee7621641b247505456ad (diff)
pas-vc (27nov13)
git-svn-id: svn://tug.org/texlive/trunk@32263 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/pas-cv/macro-dynamique.tex')
-rw-r--r--Master/texmf-dist/tex/latex/pas-cv/macro-dynamique.tex69
1 files changed, 69 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/pas-cv/macro-dynamique.tex b/Master/texmf-dist/tex/latex/pas-cv/macro-dynamique.tex
new file mode 100644
index 00000000000..7de2146c1e6
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/pas-cv/macro-dynamique.tex
@@ -0,0 +1,69 @@
+\def\modele@dynamique{dynamique}
+\def\cv@h@dynamique{5}
+
+% =============== FOND ===============
+\newcommand*\fond@dynamique{%
+ % traits verticaux
+ \draw[color=\cmdPAS@bg@bordercolor] (0,-\cv@h@dynamique) -- (\paperwidth,-\cv@h@dynamique);
+ \draw[color=\cmdPAS@bg@bordercolor!50,very thick] (0,-\cv@h@dynamique-1) -- (\paperwidth,-\cv@h@dynamique-1);
+ % bande oscillante
+ \filldraw[left color=\cmdPAS@bg@bgcolor,right color=white,draw=white] (0,-2.1-\cv@h@dynamique) .. controls (10,-3.1-\cv@h@dynamique) and (15,-1.1-\cv@h@dynamique) .. (\paperwidth,-1.1-\cv@h@dynamique) -- (\paperwidth,-1.6-\cv@h@dynamique) .. controls (15,-1.6-\cv@h@dynamique) and (10,-3.6-\cv@h@dynamique) .. (0,-2.6-\cv@h@dynamique) -- cycle;
+ % Poste
+ \node[right,color=\cmdPAS@bg@postecolor] at (1,-.5-\cv@h@dynamique) {\scshape\bfseries\cmdPAS@bg@postesize\cmdPAS@bg@poste};
+ \clip (0,-2.1-\cv@h@dynamique) .. controls (10,-3.1-\cv@h@dynamique) and (15,-1.1-\cv@h@dynamique) .. (\paperwidth,-1.1-\cv@h@dynamique) -- (\paperwidth,0) -- (0,0) -- cycle;
+ % Photo
+ \ifx\cmdPAS@bg@pic\@empty%
+ \else
+ \ifx\cmdPAS@bg@borderpic\@empty
+ \node[above] at (.9\paperwidth,-1.5-\cv@h@dynamique) {\includegraphics[scale=\cmdPAS@bg@scalepic]{\cmdPAS@bg@pic}};
+ \else
+ \node[above,draw=\cmdPAS@bg@borderpic,very thick,inner sep=1pt] at (.9\paperwidth,-1.5-\cv@h@dynamique) {\includegraphics[scale=\cmdPAS@bg@scalepic]{\cmdPAS@bg@pic}};
+ \fi
+ \fi
+}
+
+%=============== INFO GAUCHE ===============
+\newcommand*\infoLeft@dynamique[1]{%
+ \AddToShipoutPicture{%
+ \put(\LenToUnit{1cm},\LenToUnit{.97\paperheight})
+ {%
+ \rlap{
+ \begin{minipage}[t]{0.5\paperwidth}
+ #1
+ \end{minipage}
+ }
+ }
+ }
+}
+
+%=============== INFO DROITE ===============
+\newcommand*\infoRight@dynamique[1]{%
+ \AddToShipoutPicture{%
+ \put(\LenToUnit{.95\paperwidth},\LenToUnit{.97\paperheight}){%
+ \llap{%
+ \begin{minipage}[t]{.5\paperwidth}
+ \begin{flushright}#1\end{flushright}
+ \end{minipage}
+ }
+ }
+ }
+}
+
+%=============== TITRE ===============
+\newcommand*\title@dynamique[1]{%
+ \begin{tikzpicture}
+ \node[right,fill=\cmdPAS@title@color,draw=\cmdPAS@title@color] (titre) {\scshape\bfseries\Large #1};
+ \fill[color=\cmdPAS@title@bordercolor] ($(titre.north west)+(.01,0)$) -- ($(titre.south west)+(.01,-.01)$) -- ($(titre.south west)+(-.5,-.01)$) -- ($(titre.north west)+(-.5,0)$) -- cycle;
+ \end{tikzpicture}
+}
+
+%=============== MARGES ===============
+\newcommand*\margins@dynamique{%
+\FPeval\result{clip(\cv@h@dynamique+4)}
+\newgeometry{tmargin=\result cm,bmargin=1.5cm,lmargin=1cm,rmargin=1cm}
+}
+
+%=============== CLEARPAGE ===============
+\newcommand*\clearmargins@dynamique{%
+ \newgeometry{tmargin=2cm,bmargin=1.5cm,lmargin=1cm,rmargin=1cm}
+}