| 1 |
%% Copyright 2016 Nils Fleischhacker |
| 2 |
%% |
| 3 |
%% This work may be distributed and/or modified under the |
| 4 |
%% conditions of the LaTeX Project Public License, either |
| 5 |
%% version 1.3 of this license or (at your option) any later |
| 6 |
%% version. The latest version of this license is in |
| 7 |
%% |
| 8 |
%% http://www.latex-project.org/lppl.txt |
| 9 |
%% |
| 10 |
%% and version 1.3 or later is part of all distributions of |
| 11 |
%% LaTeX version 2005/12/01 or later. |
| 12 |
%% |
| 13 |
%% This work has the LPPL maintenance status `maintained'. |
| 14 |
%% |
| 15 |
%% The Current Maintainer of this work is Nils Fleischhacker. |
| 16 |
\tikzpeople@addcolorkey{tie} |
| 17 |
\tikzpeople@addcolorkey{monogram} |
| 18 |
\tikzpeople@addtextkey{monogramtext}{BP} |
| 19 |
|
| 20 |
\newcommand{\tikzpeople@businessman@paint}{ |
| 21 |
\tikzpeople@person@paintshirt |
| 22 |
\tikzpeople@businessman@paintundershirt |
| 23 |
\tikzpeople@businessman@paintopenshirt |
| 24 |
\tikzpeople@person@paintrighthorn |
| 25 |
\tikzpeople@person@painthead |
| 26 |
\tikzpeople@person@painthair |
| 27 |
\tikzpeople@person@paintgoatee |
| 28 |
\tikzpeople@person@paintlefthorn |
| 29 |
\tikzpeople@person@painthalo |
| 30 |
} |
| 31 |
|
| 32 |
\newcommand{\tikzpeople@businessman@definecolors}{ |
| 33 |
\definecolor{shirt}{rgb}{0.12,0.39,0.14} |
| 34 |
\definecolor{undershirt}{rgb}{0.9,0.9,0.9} |
| 35 |
\definecolor{tie}{rgb}{0.5,0.1,0.1} |
| 36 |
\definecolor{monogram}{rgb}{0,0,0.5} |
| 37 |
} |
| 38 |
|
| 39 |
\newcommand{\tikzpeople@businessman@definestyles}{ |
| 40 |
\if@tikzpeople@saturated |
| 41 |
\tikzset{ |
| 42 |
tie/.style={color=\tikzpeople@tie,top color=\tikzpeople@tie!70, bottom color=\tikzpeople@tie,shading angle=45} |
| 43 |
} |
| 44 |
\else |
| 45 |
\tikzset{ |
| 46 |
tie/.style={color=\tikzpeople@tie!80,top color=\tikzpeople@tie!40, bottom color=\tikzpeople@tie!80,shading angle=45} |
| 47 |
} |
| 48 |
\fi |
| 49 |
} |
| 50 |
|
| 51 |
\newcommand{\tikzpeople@businessman@paintundershirt}{ |
| 52 |
\begin{scope} |
| 53 |
\clip |
| 54 |
(-4pt,-8pt) .. controls (-2pt,-10pt) and (3pt,-9pt) .. |
| 55 |
( 5pt,-7pt) .. controls ( 5pt, 0pt) and (-5pt,0pt) .. |
| 56 |
(-4pt,-8pt); |
| 57 |
\draw[undershirt] |
| 58 |
(-2.2pt,-1pt) -- (2pt,-8.5pt) -- (2pt,-1pt); |
| 59 |
\draw[tie] |
| 60 |
(0 pt,-2.5pt) -- (0.8pt,-3.2pt) -- (1.1pt,-6 pt) -- (1.7pt,-8.7pt) -- |
| 61 |
(2pt,-8.7pt) -- (2 pt,-5.5pt) -- (1 pt,-3.1pt) -- (1.2pt,-2 pt) -- |
| 62 |
(0.3pt,-2 pt); |
| 63 |
\draw[undershirt,shading angle=-45] |
| 64 |
(0.5pt,-3pt) -- (0.1pt,-3.7pt) -- (-1pt,-3pt); |
| 65 |
\draw[undershirt,shading angle=-45] |
| 66 |
(0.9pt,-2.5pt) -- (1.8pt,-3.2pt) -- (2.2pt,-2.2pt); |
| 67 |
\end{scope} |
| 68 |
{ |
| 69 |
\pgftransformrotate{20} |
| 70 |
\pgf@xa=0.5pt*\scalingfactor |
| 71 |
\if@tikzpeople@mirrored |
| 72 |
\pgftransformxscale{-1} |
| 73 |
\pgftext[at=\pgfpoint{1pt}{-4pt}]{\resizebox{\pgf@xa}{!}{\color{\tikzpeople@monogram}{$\mathcal{\tikzpeople@monogramtext}$}}} |
| 74 |
\else |
| 75 |
\pgftext[at=\pgfpoint{0.3pt}{-4pt}]{\resizebox{\pgf@xa}{!}{\color{\tikzpeople@monogram}{$\mathcal{\tikzpeople@monogramtext}$}}} |
| 76 |
\fi |
| 77 |
} |
| 78 |
} |
| 79 |
|
| 80 |
\newcommand{\tikzpeople@businessman@paintopenshirt}{ |
| 81 |
\begin{scope} |
| 82 |
\clip |
| 83 |
(-4pt,-8pt) .. controls (-2pt,-10pt) and (3pt,-9pt) .. |
| 84 |
( 5pt,-7pt) .. controls ( 5pt, 0pt) and (-5pt,0pt) .. |
| 85 |
(-4pt,-8pt); |
| 86 |
\draw[shirt,shading angle=-45] |
| 87 |
(-2pt,-2.6 pt) -- (-1.5pt,-5pt) -- (-0.5pt,-5pt) -- (-1.1pt,-5.2pt) -- |
| 88 |
(1.6pt,-8.75pt) -- (1.9pt,-8.75pt) .. controls (1.7pt,-7pt) and |
| 89 |
(-0pt,-3.2pt) .. (-1.6pt,-2pt) -- cycle; |
| 90 |
\draw[shirt,shading angle=-45] |
| 91 |
(1.9pt,-2pt) .. controls (1.9pt,-1.8pt) and (1.9pt,-8.5pt) .. |
| 92 |
(1.9pt,-8.75pt) -- (2.3pt,-8.5pt) -- (3.2pt,-5.2pt) -- |
| 93 |
(2.6pt,-5.2 pt) -- (3.2pt,-5 pt) -- (2.3pt,-2.3pt) -- cycle; |
| 94 |
\end{scope} |
| 95 |
\draw[color=\tikzpeople@shirt!80] |
| 96 |
(-4pt,-8pt) .. controls (-2pt,-10pt) and ( 3pt,-9pt) .. |
| 97 |
( 5pt,-7pt) .. controls ( 5pt, 0pt) and (-5pt, 0pt) .. |
| 98 |
(-4pt,-8pt); |
| 99 |
} |
| 100 |
|
| 101 |
\newcommand{\tikzpeople@businessman@colors}{ |
| 102 |
shirt/200/{-1/-.75}, hair/150/{-.4/1.3}, skin/30/{.5/.8}, |
| 103 |
undershirt/180/{0/-.2}, tie/330/{.32/-.7}, monogram/0/{.3/-.17}% |
| 104 |
} |