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-jupiter.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-jupiter.tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/pas-cv/macro-jupiter.tex | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/pas-cv/macro-jupiter.tex b/Master/texmf-dist/tex/latex/pas-cv/macro-jupiter.tex new file mode 100644 index 00000000000..612fb931ed1 --- /dev/null +++ b/Master/texmf-dist/tex/latex/pas-cv/macro-jupiter.tex @@ -0,0 +1,77 @@ +\def\modele@jupiter{jupiter} +\def\cv@h@jupiter{4} + +% =============== FOND =============== +\newcommand*\fond@jupiter{% + \fill[left color=\cmdPAS@bg@bgcolor!20, right color=\cmdPAS@bg@bgcolor] (0,-\cv@h@jupiter) rectangle +(.3\paperwidth,-2); + \fill[pattern=crosshatch dots,pattern color=\cmdPAS@bg@bgcolor!50] (0,-\cv@h@jupiter) rectangle +(.3\paperwidth,-2); + \draw[color=\cmdPAS@bg@bgcolor,double,very thick] (9,0) arc (120:220:15cm and 23cm); + \fill[left color=\cmdPAS@bg@bordercolor,right color=white] (0,-\cv@h@jupiter-2.2) rectangle +(\paperwidth,-.3); + \ifx\cmdPAS@bg@pic\@empty% + \else + \ifx\cmdPAS@bg@borderpic\@empty + \node[below,rectangle,thick,inner sep=1pt] at (2,-\cv@h@jupiter-1) {\includegraphics[scale=\cmdPAS@bg@scalepic]{\cmdPAS@bg@pic}}; + \else + \node[below,rectangle,draw=\cmdPAS@bg@borderpic,thick,inner sep=1pt] at (2,-\cv@h@jupiter-1) {\includegraphics[scale=\cmdPAS@bg@scalepic]{\cmdPAS@bg@pic}}; + \fi + \fi + \clip (\paperwidth,-\paperheight) -- (\paperwidth,0) -- (9,0) arc (120:220:14.6cm and 22.6cm) -- cycle; + \fill[left color=\cmdPAS@bg@bgcolor!50, right color=white] (.1\paperwidth,-\cv@h@jupiter) rectangle +(.9\paperwidth,-2); + \fill[pattern=crosshatch dots,pattern color=\cmdPAS@bg@bgcolor!50] (.1\paperwidth,-\cv@h@jupiter) rectangle +(.9\paperwidth,-2); + \draw[color=\cmdPAS@bg@bgcolor!10,double,very thick] (9.5,0) arc (120:220:15cm and 23cm); + \node[above right,color=\cmdPAS@bg@postecolor] (poste) at (.5\textwidth,-\cv@h@jupiter-1.5) {\scshape\cmdPAS@bg@postesize\bfseries\cmdPAS@bg@poste}; + \draw[very thick,color=\cmdPAS@bg@postecolor] ($(poste.south east)+(0,.1)$) -- ($(poste.south west)+(-5,.1)$); +} + +%=============== INFO GAUCHE =============== +\newcommand*\infoLeft@jupiter[1]{% + \AddToShipoutPicture{% + \put(\LenToUnit{0.5cm},\LenToUnit{.97\paperheight}) + {% + \rlap{ + \begin{minipage}[t]{0.5\paperwidth} + #1 + \end{minipage} + } + } + } +} + +%=============== INFO DROITE =============== +\newcommand*\infoRight@jupiter[1]{% + \AddToShipoutPicture{% + \put(\LenToUnit{.97\paperwidth},\LenToUnit{.97\paperheight}){% + \llap{% + \begin{minipage}[t]{.6\paperwidth} + \begin{flushright}#1\end{flushright} + \end{minipage} + } + } + } +} + +%=============== TITRE =============== +\newcommand*\title@jupiter[1]{% + \tikzfading[name=fade out,inner color=transparent!0,outer color=transparent!100] + \begin{tikzpicture} + \fill[\cmdPAS@title@color] (0,0) circle (1mm); + \node[right,text=\cmdPAS@title@color] (title) at (0.3,0) {\bfseries\scshape #1}; + \fill[path fading=fade out,\cmdPAS@title@bordercolor] ($(title.south west)+(-.8,0)$) rectangle ($(title.south east)+(0.3,-.1)$); + \end{tikzpicture} +} + +%=============== MARGES =============== +\newcommand*\margins@jupiter{% +\FPeval\result{clip(\cv@h@jupiter+3)} +\newgeometry{tmargin=\result cm,bmargin=1.5cm,lmargin=4cm,rmargin=1.5cm} +} + +%=============== CLEARPAGE =============== +\newcommand*\clearpage@jupiter{% + \draw[color=\cmdPAS@bg@bgcolor,double,very thick] (9,0) arc (120:220:15cm and 23cm); + \draw[color=\cmdPAS@bg@bgcolor!10,double,very thick] (9.5,0) arc (120:220:15cm and 23cm); + +} +\newcommand*\clearmargins@jupiter{% + \newgeometry{tmargin=2cm,bmargin=1.5cm,lmargin=1.5cm,rmargin=1.5cm} +} |