diff options
author | Karl Berry <karl@freefriends.org> | 2016-11-08 22:38:47 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-11-08 22:38:47 +0000 |
commit | 7516c04b155b9684ffa936fd2f21957501999a42 (patch) | |
tree | 019d70e58b650718a345efd9762f75e63581e2d8 /Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.graduate.sty | |
parent | 21c7cbc76da87bbb51df802f72b58b55f25247ac (diff) |
tikzpeople (8nov16)
git-svn-id: svn://tug.org/texlive/trunk@42471 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.graduate.sty')
-rwxr-xr-x | Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.graduate.sty | 122 |
1 files changed, 122 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.graduate.sty b/Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.graduate.sty new file mode 100755 index 00000000000..c4831b4adad --- /dev/null +++ b/Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.graduate.sty @@ -0,0 +1,122 @@ +%% 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{stripes} +\tikzpeople@addcolorkey{undershirt} +\tikzpeople@addcolorkey{hat} + +\newcommand{\tikzpeople@graduate@paint}{ + \tikzpeople@person@paintshirt + \tikzpeople@graduate@paintundershirt + \tikzpeople@graduate@paintstripes + \tikzpeople@person@paintrighthorn + \tikzpeople@person@painthead + \tikzpeople@person@painthair + \tikzpeople@graduate@painthat + \tikzpeople@person@paintgoatee + \tikzpeople@person@paintlefthorn + \tikzpeople@person@painthalo +} + +\newcommand{\tikzpeople@graduate@paintstripes}{ + \begin{scope} + \clip + (-4.0pt,-8.0pt) .. controls (-2pt,-10pt) and ( 3pt,-9pt) .. + ( 5.0pt,-7.0pt) .. controls ( 5pt, 0pt) and (-5pt, 0pt) .. + (-4.0pt,-8.0pt); + \draw[stripes] + (1.5pt,-9.5pt) .. controls (0.7pt,-6pt) and (-1pt,-4pt) .. + (-2.5pt,-2pt) -- (-3.8pt,-2pt) .. controls (-3.2pt,-4pt) and + (-0.7pt,-6pt) .. (0pt,-9.5pt) -- cycle; + \draw[stripes] + (2.3 pt,-2pt) .. controls (3pt,-5pt) and (3pt,-6.5pt) .. + (2.9 pt,-9.5pt) -- (3.9 pt,-9.5pt) .. controls (4pt,-6.5pt) and + (4pt,-5pt) .. (3.3pt,-2pt); + \end{scope} +} + +\newcommand{\tikzpeople@graduate@paintundershirt}{ + \begin{scope} + \clip + (-4.0pt,-8.0pt) .. controls (-2pt,-10pt) and ( 3pt,-9pt) .. + ( 5.0pt,-7.0pt) .. controls ( 5pt, 0pt) and (-5pt, 0pt) .. + (-4.0pt,-8.0pt); + \draw[undershirt] + (-3 pt,-2 pt) .. controls (-0.1pt,-3 pt) and ( 1.2pt,-6 pt) .. + ( 2.2pt,-8 pt) .. controls ( 2.3pt,-6 pt) and ( 2.2pt,-4 pt) .. + ( 2 pt,-2 pt) -- cycle; + \end{scope} + \draw[\tikzpeople@shirt!80] + (-4.0pt,-8.0pt) .. controls (-2pt,-10pt) and ( 3pt,-9pt) .. + ( 5.0pt,-7.0pt) .. controls ( 5pt, 0pt) and (-5pt, 0pt) .. + (-4.0pt,-8.0pt); +} + +\newcommand{\tikzpeople@graduate@painthat}{ + \draw[hat] + (175:3pt) .. controls ++(0.5pt,0.5pt) and (1pt,0.5pt) .. + (1.5pt,0pt) .. controls (1.7pt,0.5pt) and (25:2.8pt) .. + (20:3pt) -- +(0pt,2pt) -- (175:3pt |- 0,3pt) -- cycle; + \draw[hat] + (4.4pt,3.6pt) -- (-1.5pt,4pt) -- (-4.3pt,2.5pt) -- (2pt,2pt); + \draw[color=\tikzpeople@hat!80,line width=0.15*\scalingfactor] + (0pt,3.2pt) -- (-3.4pt,2.5pt) arc (90:180:0.2pt) -- (-3.5pt,-0.5pt); + \draw[hat] + (-3.6pt,-0.5pt) -- (-3.7pt,-1.5pt) .. controls (-3.5pt,-1.6pt) .. + (-3.3pt,-1.5pt) -- + (-3.4pt,-0.5pt); + \draw[hat] + (-3.5pt,-0.5pt) circle (0.25pt); +} + +\newcommand{\tikzpeople@graduate@definecolors}{ + \definecolor{shirt}{rgb}{0,0,0} + \definecolor{hat}{rgb}{0,0,0} + \definecolor{undershirt}{RGB}{232,232,232} + \definecolor{stripes}{rgb}{0.16,0.55,0.31} + \definecolor{skin}{rgb}{0.84,0.58,0.24} + \definecolor{hair}{rgb}{0.45,0.24,0} +} +\newcommand{\tikzpeople@graduate@definestyles}{ + \tikzstyle{shirt}=[color=\tikzpeople@shirt!80,top color=\tikzpeople@shirt!40, bottom color=\tikzpeople@shirt!80,shading angle=45]; + \tikzstyle{hat}=[color=\tikzpeople@hat!80,top color=\tikzpeople@hat!40, bottom color=\tikzpeople@hat!80,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{undershirt}=[color=\tikzpeople@undershirt!80,top color=\tikzpeople@undershirt!30, bottom color=\tikzpeople@undershirt!90,shading angle=45]; + \tikzstyle{stripes}=[color=\tikzpeople@stripes!80,top color=\tikzpeople@stripes!40, bottom color=\tikzpeople@stripes!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@graduate@colors}{ + shirt/200/{-1/-.9}, hair/180/{-.75/.9}, hat/160/{-.75/1.3}, skin/20/{.5/.75}, + undershirt/0/{.4/-.1}, stripes/340/{.8/-.7,0/-1.3}% +} |