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-saturne.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-saturne.tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/pas-cv/macro-saturne.tex | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/pas-cv/macro-saturne.tex b/Master/texmf-dist/tex/latex/pas-cv/macro-saturne.tex new file mode 100644 index 00000000000..86a315794cf --- /dev/null +++ b/Master/texmf-dist/tex/latex/pas-cv/macro-saturne.tex @@ -0,0 +1,76 @@ +\def\modele@saturne{saturne} +\def\cv@h@saturne{5} + +% =============== FOND =============== +\newcommand*\fond@saturne{% + % Création d'un dégradé dans la colonne de gauche + \shade[right color=gray!20,left color=white] (7,0) rectangle +(-7,-\paperheight); + \draw[color=gray,thick] (7,0) -- (7,-\paperheight); + % Création du rectangle et des traits + \draw[very thick,color=\cmdPAS@bg@bordercolor] (0,-\cv@h@saturne+.15) -- (\paperwidth,-\cv@h@saturne+.15); + \draw[very thick,color=\cmdPAS@bg@bordercolor] (0,-2.15-\cv@h@saturne) -- (\paperwidth,-2.15-\cv@h@saturne); + \fill[fill=\cmdPAS@bg@bgcolor] (0,-\cv@h@saturne) rectangle +(\paperwidth,-2); + \ifx\cmdPAS@bg@pic\@empty% + \else + \ifx\cmdPAS@bg@borderpic\@empty + \node at (2.5,-1-\cv@h@saturne) {\includegraphics[scale=\cmdPAS@bg@scalepic]{\cmdPAS@bg@pic}}; + \else + \node[draw=\cmdPAS@bg@borderpic,very thick,inner sep=1pt] at (2.5,-1-\cv@h@saturne) {\includegraphics[scale=\cmdPAS@bg@scalepic]{\cmdPAS@bg@pic}}; + \fi + \fi + \clip (0,-\cv@h@saturne) rectangle +(\paperwidth,-2); + \shade[bottom color=\cmdPAS@bg@bgcolor!80!white,top color=\cmdPAS@bg@bgcolor,rotate=10,opacity=.2] (.5\paperwidth,-2-\cv@h@saturne) ellipse (5 and 1.5); + \node[left,color=\cmdPAS@bg@postecolor] at (.97\paperwidth,-1-\cv@h@saturne) {\scshape\cmdPAS@bg@postesize\bfseries\cmdPAS@bg@poste}; +} + +%=============== INFO GAUCHE =============== +\newcommand*\infoLeft@saturne[1]{% + \AddToShipoutPicture{% + \put(\LenToUnit{1cm},\LenToUnit{.97\paperheight}) + {% + \rlap{ + \begin{minipage}[t]{0.5\paperwidth} + #1 + \end{minipage} + } + } + } +} + +%=============== INFO DROITE =============== +\newcommand*\infoRight@saturne[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@saturne[1]{% + \noindent + \begin{tikzpicture} + \fill[color=\cmdPAS@title@bordercolor,rotate=10] (0,-.25) ellipse (.25 and .125); + \node[below right,text=\cmdPAS@title@color] (title) at (.33,0) {\begin{minipage}{5cm}\scshape\bfseries #1\end{minipage}}; + \end{tikzpicture} +} + +%=============== MARGES =============== +\newcommand*\margins@saturne{% +\FPeval\result{clip(\cv@h@saturne+3)} +\newgeometry{tmargin=\result cm,bmargin=1.5cm,lmargin=1cm,rmargin=1cm} +} + +%=============== CLEARPAGE =============== +\newcommand*\clearpage@saturne{% + % Création d'un dégradé dans la colonne de droite + \shade[right color=gray!20,left color=white] (7,0) rectangle +(-7,-\paperheight); + \draw[color=gray,thick] (7,0) -- (7,-\paperheight); +} +\newcommand*\clearmargins@saturne{% + \newgeometry{tmargin=2cm,bmargin=1.5cm,lmargin=1cm,rmargin=1cm} +} |