1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
%% Copyright 2016 Nils Fleischhacker
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
%% version 1.3 of this license or (at your option) any later
%% version. The latest version of this license is in
%%
%% http://www.latex-project.org/lppl.txt
%%
%% and version 1.3 or later is part of all distributions of
%% LaTeX version 2005/12/01 or later.
%%
%% 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{hat}
\tikzpeople@addcolorkey{mask}
\newcommand{\tikzpeople@surgeon@paint}{
\tikzpeople@person@paintshirt
\tikzpeople@surgeon@paintshirtdetails
\tikzpeople@person@paintrighthorn
\tikzpeople@person@painthead
\tikzpeople@person@painthair
\tikzpeople@surgeon@painthat
\tikzpeople@surgeon@paintmask
\tikzpeople@person@paintlefthorn
\tikzpeople@person@painthalo
}
\newcommand{\tikzpeople@surgeon@paintshirtdetails}{
\draw[shirt,thick,color=\tikzpeople@shirt,shading angle=90]
(230:3pt) .. controls +(-0.4pt,-1.5pt) .. ++(0pt,-3pt) .. controls
+(1.5pt,0.5pt) .. ++(3pt,0.2pt) .. controls +(0.5pt,0.4pt) .. ++(2pt,0.7pt)
.. controls +(0pt,0.5pt) .. (312:3pt);
\draw[skin] (231:3pt) -- (1pt,-4.85pt)--(311:3pt) -- cycle;
}
\newcommand{\tikzpeople@surgeon@painthat}{
\draw[hat]
(160:3pt) ++(.3pt,1.6pt) -- (160:3pt) arc (-180:0:2.85pt and 1pt) --
++(-.3pt,1.6pt) arc (0:180:2.55pt and 1pt) arc (-180:0:2.55pt and 1pt);
}
\newcommand{\tikzpeople@surgeon@paintmask}{
\begin{scope}
\clip (0,0) circle (\pgflinewidth/\scalingfactor +3);
\draw[mask,color=\tikzpeople@mask!40,shading angle=-90]
(-17:3pt) arc (295:235:6.1pt) -- ++(0,-.05pt) arc (235:295:6.1pt) --cycle;
\draw[mask]
(-18:3pt) arc (295:235:6pt) -- ++(0,-.05pt) arc (230:245:5pt) --
++(0,-.6pt) arc (260:245:6pt) -- ++(0,-.1pt) arc (235:300:6pt) --cycle;
\end{scope}
}
\newcommand{\tikzpeople@surgeon@definecolors}{
\definecolor{shirt}{RGB}{171,201,177}
\definecolor{hat}{RGB}{171,201,177}
\definecolor{mask}{RGB}{171,201,177}
\definecolor{skin}{rgb}{0.84,0.58,0.24}
\definecolor{hair}{rgb}{0.45,0.24,0}
}
\newcommand{\tikzpeople@surgeon@definestyles}{
\tikzstyle{shirt}=[color=\tikzpeople@shirt!80,top color=\tikzpeople@shirt!30, bottom color=\tikzpeople@shirt!90,shading angle=45];
\tikzstyle{mask}=[color=\tikzpeople@mask!98!black,top color=\tikzpeople@mask!30, bottom color=\tikzpeople@mask!90,shading angle=90];
\tikzstyle{hat}=[color=\tikzpeople@hat!98!black,top color=\tikzpeople@hat!30, bottom color=\tikzpeople@hat!90,shading angle=90];
\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];
}
\newcommand{\tikzpeople@surgeon@colors}{
shirt/200/{-1/-1}, hair/180/{-.8/.9}, hat/160/{-.7/1.3}, mask/350/{.5/.5},
skin/10/{.6/.9}%
}
|