diff options
author | Karl Berry <karl@freefriends.org> | 2013-11-27 22:29:25 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-11-27 22:29:25 +0000 |
commit | cdcbacd7c8941f2c8f774d373d813bc3ffebf629 (patch) | |
tree | dc463568de34cdbdc3e142db2d5fb9f11f295630 /Master/texmf-dist/tex/latex/pas-cv/macro-venus.tex | |
parent | f90134b905cb49dac07ee7621641b247505456ad (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-venus.tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/pas-cv/macro-venus.tex | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/pas-cv/macro-venus.tex b/Master/texmf-dist/tex/latex/pas-cv/macro-venus.tex new file mode 100644 index 00000000000..95b858a04f2 --- /dev/null +++ b/Master/texmf-dist/tex/latex/pas-cv/macro-venus.tex @@ -0,0 +1,93 @@ +\def\modele@venus{venus} +\def\cv@h@venus{4} + +% =============== FOND =============== +\newcommand*\fond@venus{% + % dégradé haut + \fill[top color=\cmdPAS@bg@bgcolor,bottom color=white] (0,0) rectangle +(\paperwidth,-\cv@h@venus); + % dégradé bas + \fill[bottom color=\cmdPAS@bg@bgcolor,top color=white] (0,-\paperheight*.97) rectangle +(\paperwidth,-1); + % Rayures haut + \foreach \x in {0.4,0.8,...,23} + { + \draw[white,very thick] (\x,0) -- (\x-.5,-\cv@h@venus+1); + \draw[white,very thick] (\x,-28) -- (\x+.5,-27); + } + \fill[left color=\cmdPAS@bg@bordercolor,right color=white] (0,-\cv@h@venus) rectangle +(\paperwidth,-.25); + \fill[right color=\cmdPAS@bg@bgcolor,left color=white] (0,-\cv@h@venus-.25) rectangle +(\paperwidth,-1); + \ifx\cmdPAS@bg@pic\@empty% + \else + \ifx\cmdPAS@bg@borderpic\@empty + \node[above] (photo) at (2,-\cv@h@venus-1) {\includegraphics[scale=\cmdPAS@bg@scalepic]{\cmdPAS@bg@pic}}; + \else + \node[above,draw=\cmdPAS@bg@borderpic,very thick,inner sep=1pt] at (2,-1-\cv@h@venus) {\includegraphics[scale=\cmdPAS@bg@scalepic]{\cmdPAS@bg@pic}}; + \fi + \fi + \node[color=\cmdPAS@bg@postecolor,left] at (.98\paperwidth,-.75-\cv@h@venus) {\scshape\cmdPAS@bg@postesize\bfseries\cmdPAS@bg@poste}; +} + +%=============== INFO GAUCHE =============== +\newcommand*\infoLeft@venus[1]{% + \AddToShipoutPicture{% + \ifx\cmdPAS@bg@pic\empty + \put(\LenToUnit{1cm},\LenToUnit{.97\paperheight}) + {% + \rlap{ + \begin{minipage}[t]{0.5\paperwidth} + #1 + \end{minipage} + } + } + \else + \put(\LenToUnit{4.5cm},\LenToUnit{.97\paperheight}) + {% + \rlap{ + \begin{minipage}[t]{0.5\paperwidth} + #1 + \end{minipage} + } + } + \fi + } +} + +%=============== INFO DROITE =============== +\newcommand*\infoRight@venus[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@venus[1]{% + \noindent + \begin{tikzpicture} + \fill[\cmdPAS@title@color] (0,.1) rectangle+(.2,-.2); + \draw[\cmdPAS@title@bordercolor,very thick] (.2,-.15) -- (-2,-.15); + \node[right,text=\cmdPAS@title@color] at (.4,0) {\scshape\bfseries #1}; + \end{tikzpicture} +} + +%=============== MARGES =============== +\newcommand*\margins@venus{% +\FPeval\result{clip(\cv@h@venus+2)} +\newgeometry{tmargin=\result cm,bmargin=2cm,lmargin=1.5cm,rmargin=1.5cm} +} + +%=============== CLEARPAGE =============== +\newcommand*\clearpage@venus{% + \fill[bottom color=\cmdPAS@bg@bgcolor,top color=white] (0,-\paperheight*.97) rectangle +(\paperwidth,-1); + \foreach \x in {0.4,0.8,...,23} + { + \draw[white,very thick] (\x,-28) -- (\x+.5,-27); + } +} +\newcommand*\clearmargins@venus{% + \newgeometry{tmargin=2cm,bmargin=2cm,lmargin=1.5cm,rmargin=1.5cm} +} |