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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
|
%% 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{ringtop}
\tikzpeople@addcolorkey{ringmid}
\tikzpeople@addcolorkey{ringbot}
\newcommand{\tikzpeople@mexican@paint}{
\tikzpeople@person@paintshirt
\tikzpeople@mexican@paintrings
\tikzpeople@person@painthead
\tikzpeople@mexican@painthair
\tikzpeople@mexican@painthat
\tikzpeople@person@paintgoatee
}
\newcommand{\tikzpeople@mexican@definecolors}{
\definecolor{skin}{rgb}{0.84,0.58,0.24}
\definecolor{hair}{rgb}{0,0,0}
\definecolor{shirt}{rgb}{0,0.3,0}
\definecolor{ringtop}{rgb}{1,1,0}
\definecolor{ringmid}{rgb}{0,0.8,1}
\definecolor{ringbot}{rgb}{1,0,0}
\definecolor{hat}{rgb}{0.7,0,0}
}
\newcommand{\tikzpeople@mexican@definestyles}{
\tikzstyle{shirt}=[top color=\tikzpeople@shirt!60, bottom color=\tikzpeople@shirt!80,shading angle=45];
\tikzstyle{ringtop}=[top color=\tikzpeople@ringtop!80, bottom color=\tikzpeople@ringtop,shading angle=45];
\tikzstyle{ringmid}=[top color=\tikzpeople@ringmid!80, bottom color=\tikzpeople@ringmid,shading angle=45];
\tikzstyle{ringbot}=[top color=\tikzpeople@ringbot!80, bottom color=\tikzpeople@ringbot,shading angle=45];
\tikzstyle{skin}=[color=\tikzpeople@skin!80,top color=\tikzpeople@skin!40, bottom color=\tikzpeople@skin!80,shading angle=45];
\tikzstyle{hat}=[color=\tikzpeople@hat!80,top color=\tikzpeople@hat!40, bottom color=\tikzpeople@hat!80,shading angle=45];
\tikzstyle{innerhat}=[color=\tikzpeople@hat!80,top color=\tikzpeople@hat!60, bottom color=\tikzpeople@hat,shading angle=45];
\tikzstyle{hair}=[color=\tikzpeople@hair!80,top color=\tikzpeople@hair!40, bottom color=\tikzpeople@hair!80];
\tikzstyle{goatee}=[color=\tikzpeople@hair!80,top color=\tikzpeople@hair!40, bottom color=\tikzpeople@hair!80,shading angle=45];
}
\newcommand{\tikzpeople@mexican@painthair}{
\draw[hair]
(-3.5pt, 1 pt) .. controls (-3.3pt, 0pt) and (-4.3pt,-1.1pt) ..
(-4.5pt,-1.3pt) .. controls (-3.8pt,-2pt) and (-2 pt,-2.9pt) ..
(-1.2pt,-3.3pt) .. controls (-1.6pt,-2pt) and (-1.6pt, 0 pt) ..
(-1.3pt, 1 pt);
}
\newcommand{\tikzpeople@mexican@painthat}{
{
\pgftransformrotate{4}
\draw[hat] (-0.3pt,2pt) ellipse (6.4pt and 2.2pt);
\draw[innerhat] (-0.3pt,2.5pt) ellipse (5.4pt and 1.3pt);
}{
\pgftransformrotate{1}
\draw[hat]
(-3 pt,2.3pt) .. controls (-3 pt,4.5pt) and (-1.4pt,6.7pt) ..
(-0.7pt,6.7pt) .. controls ( 0.2pt,6.7pt) and ( 2.3pt,3.5pt) ..
( 1.9pt,2.7pt) .. controls ( 1.2pt,2 pt) and (-2.3pt,1.8pt) ..
(-3 pt,2.3pt);
}
}
\newcommand{\tikzpeople@mexican@paintrings}{
\shade[ringtop]
(-3.4 pt,-4 pt) .. controls (-2.0pt,-6.0pt) and ( 3pt,-5 pt) ..
( 3.85pt,-3.5pt) .. controls ( 3.6pt,-3.1pt) ..
( 3.4 pt,-3 pt) .. controls ( 3 pt,-4.2pt) and (-2pt,-5.3pt) .. (-3pt,-3.4pt);
\draw[color=\tikzpeople@ringtop,dash pattern=on 0.08*\scalingfactor off 0.15*\scalingfactor,line width=0.08*\scalingfactor]
(-3.4 pt,-4.2pt) .. controls (-2pt,-6.2pt) and (3pt,-5.2pt) ..
( 3.85pt,-3.7pt);
\shade[ringmid]
(-3.9pt,-5.5pt) .. controls (-2 pt,-7.5pt) and (3pt,-6.5pt) ..
(4.55pt,-4.7pt) .. controls ( 4.45pt,-4.3pt) ..
(4.2 pt,-4 pt) .. controls ( 3 pt,-5.7pt) and (-2pt,-6.7pt) ..
(-3.7pt,-4.8pt);
\draw [color=\tikzpeople@ringmid,dash pattern=on 0.08*\scalingfactor off 0.15*\scalingfactor,line width=0.08*\scalingfactor]
(-3.9pt,-5.7pt) .. controls (-2pt,-7.7pt) and (3pt,-6.7pt) .. (4.55pt, -4.9pt);
\shade [ringbot]
(-4 pt, -7 pt) .. controls (-2 pt,-9 pt) and ( 3pt,-8 pt) ..
( 4.9 pt, -6 pt) .. controls ( 4.9pt,-5.8pt) ..
( 4.75pt,-5.2pt) .. controls ( 3 pt,-7.2pt) and (-2pt,-8.2pt) ..
(-4 pt,-6.2pt);
\draw [color=\tikzpeople@ringbot,dash pattern=on 0.08*\scalingfactor off 0.15*\scalingfactor,line width=0.08*\scalingfactor]
(-4pt,-7.2pt) .. controls (-2pt,-9.2pt) and (3pt,-8.2pt) .. (4.9pt, -6.2pt);
\draw[color=\tikzpeople@shirt!80]
(-4pt,-8pt) .. controls (-2pt,-10pt) and ( 3pt,-9pt) ..
( 5pt,-7pt) .. controls ( 5pt, 0pt) and (-5pt, 0pt) ..
(-4pt,-8pt);
}
\newcommand{\tikzpeople@mexican@colors}{
shirt/350/{.5/0}, hat/30/{1/1.25}, hair/150/{-1.1/.5}, skin/10/{.35/.5},
ringtop/170/{-.9/-.15}, ringmid/190/{-1/-.6}, ringbot/210/{-1.1/-1}%
}
|