summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.nurse.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.nurse.sty')
-rw-r--r--Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.nurse.sty44
1 files changed, 17 insertions, 27 deletions
diff --git a/Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.nurse.sty b/Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.nurse.sty
index f77b69a36a0..4d0fff06a6d 100644
--- a/Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.nurse.sty
+++ b/Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.nurse.sty
@@ -13,25 +13,11 @@
%% This work has the LPPL maintenance status `maintained'.
%%
%% The Current Maintainer of this work is Nils Fleischhacker.
-%%
-%% This work consists of the files tikzpeople.tex, tikzpeople.sty,
-%% tikzpeople.shape.alice.sty, tikzpeople.shape.bob.sty,
-%% tikzpeople.shape.bride.sty, tikzpeople.shape.builder.sty,
-%% tikzpeople.shape.businessman.sty, tikzpeople.shape.charlie.sty,
-%% tikzpeople.shape.chef.sty, tikzpeople.shape.conductor.sty,
-%% tikzpeople.shape.cowboy.sty, tikzpeople.shape.criminal.sty,
-%% tikzpeople.shape.dave.sty, tikzpeople.shape.graduate.sty,
-%% tikzpeople.shape.groom.sty, tikzpeople.shape.guard.sty,
-%% tikzpeople.shape.jester.sty, tikzpeople.shape.judge.sty,
-%% tikzpeople.shape.mexican.sty, tikzpeople.shape.nun.sty,
-%% tikzpeople.shape.nurse.sty, tikzpeople.shape.physician.sty,
-%% tikzpeople.shape.pilot.sty, tikzpeople.shape.police.sty,
-%% tikzpeople.shape.priest.sty, tikzpeople.shape.sailor.sty,
-%% tikzpeople.shape.santa.sty and tikzpeople.shape.surgeon.sty
\tikzpeople@addcolorkey{badge}
\tikzpeople@addcolorkey{badgeclip}
\tikzpeople@addcolorkey{badgename}
\tikzpeople@addcolorkey{redcross}
+\tikzpeople@addtextkey{badgetext}{Nurse}
\newcommand{\tikzpeople@nurse@paint}{
\tikzpeople@person@paintshirt
@@ -58,10 +44,10 @@
(180:360:1.2pt) --cycle;
\draw[color=\tikzpeople@shirt!90!black,thick]
(-.1pt,-7.2pt) to[out=204,in=348] (-2.5pt,-7.2pt);
- \draw[fill=\tikzpeople@badge,draw=\tikzpeople@badge!30!black]
+ \draw[badge]
(-.4pt,-7.6pt) to[out=185,in=355] (-2.1pt,-7.6pt) -- ++(270:.7pt)
to[out=355,in=185] (-.4pt,-8.3pt) --cycle;
- \draw[top color=\tikzpeople@badgeclip!30, bottom color=\tikzpeople@badgeclip,shading angle=45,rounded corners=.08*\scalingfactor]
+ \draw[badgeclip]
(-1.1pt,-7.3pt) rectangle ++(-.2pt,-.4pt);
\draw[draw=\tikzpeople@redcross,fill=\tikzpeople@redcross]
(-1.8pt,-7.8pt) -- ++(0pt,-.1pt) -- ++(-.1pt,0pt) -- ++(0pt,-.1pt) --
@@ -69,14 +55,13 @@
++(.1pt,0pt) -- ++(0pt,.1pt) -- ++(-.1pt,0pt) -- ++(0pt,.1pt) --cycle;
{
\pgf@xa=0.6pt*\scalingfactor
- \pgftext[at=\pgfpoint{-1pt}{-7.95pt}]{\resizebox{\pgf@xa}{!}{\color{\tikzpeople@badgename}\if@tikzpeople@mirrored\reflectbox{Nurse}\else{Nurse}\fi}}
+ \pgftext[at=\pgfpoint{-1pt}{-7.95pt}]{\resizebox{\pgf@xa}{!}{\color{\tikzpeople@badgename}\if@tikzpeople@mirrored\reflectbox{\tikzpeople@badgetext}\else{\tikzpeople@badgetext}\fi}}
}
\end{scope}
}
\newcommand{\tikzpeople@nurse@definecolors}{
\definecolor{shirt}{RGB}{237,113,102}
- \definecolor{skin}{rgb}{0.84,0.58,0.24}
\definecolor{badgename}{rgb}{0,0,0}
\definecolor{badge}{rgb}{1,1,1}
\definecolor{badgeclip}{rgb}{0.4,0.4,0.4}
@@ -84,16 +69,21 @@
\definecolor{hair}{rgb}{0,0,0}
}
\newcommand{\tikzpeople@nurse@definestyles}{
- \tikzstyle{shirt}=[color=\tikzpeople@shirt!80,top color=\tikzpeople@shirt!30, bottom color=\tikzpeople@shirt!90,shading angle=45];
- \tikzstyle{skin}=[color=\tikzpeople@skin!80,top color=\tikzpeople@skin!40, bottom color=\tikzpeople@skin!80,shading angle=45];
- \tikzstyle{hair}=[color=\tikzpeople@hair!80,top color=\tikzpeople@hair!40, bottom color=\tikzpeople@hair!80,shading angle=45];
- \tikzstyle{goatee}=[color=\tikzpeople@hair!80,top color=\tikzpeople@hair!40, bottom color=\tikzpeople@hair!80,shading angle=45];
- \tikzstyle{horns}=[color=red!80,top color=red!40, bottom color=red!80,shading angle=45];
- \tikzstyle{halo}=[color=yellow!80,top color=yellow!40, bottom color=yellow!80,shading angle=45];
+ \if@tikzpeople@saturated
+ \tikzset{
+ badge/.style={fill=\tikzpeople@badge,draw=\tikzpeople@badge!30!black},
+ badgeclip/.style={top color=\tikzpeople@badgeclip!70, bottom color=\tikzpeople@badgeclip,shading angle=45,rounded corners=.08*\scalingfactor}
+ }
+ \else
+ \tikzset{
+ badge/.style={fill=\tikzpeople@badge,draw=\tikzpeople@badge!30!black},
+ badgeclip/.style={top color=\tikzpeople@badgeclip!30, bottom color=\tikzpeople@badgeclip,shading angle=45,rounded corners=.08*\scalingfactor}
+ }
+ \fi
}
\newcommand{\tikzpeople@nurse@colors}{
- shirt/0/{.9/-.35}, hair/150/{-.75/.9}, badgeclip/170/{-.425/-1.15},
- redcross/190/{-.55/-1.3}, badge/210/{-.4/-1.35}, badgename/340/{-.3/-1.3},
+ shirt/0/{.9/-.35}, hair/150/{-.75/.9}, badgeclip/170/{-.45/-1.2},
+ redcross/190/{-.6/-1.35}, badge/210/{-.5/-1.4}, badgename/340/{-.4/-1.35},
skin/20/{.6/.6}%
}