diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/tikzlings/tikzlings-elephants.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/tikzlings/tikzlings-elephants.sty | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/Master/texmf-dist/tex/latex/tikzlings/tikzlings-elephants.sty b/Master/texmf-dist/tex/latex/tikzlings/tikzlings-elephants.sty index 0bfa9ffc50d..d846c1d9d45 100644 --- a/Master/texmf-dist/tex/latex/tikzlings/tikzlings-elephants.sty +++ b/Master/texmf-dist/tex/latex/tikzlings/tikzlings-elephants.sty @@ -12,7 +12,7 @@ %% See https://www.latex-project.org/lppl.txt %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\ProvidesPackage{tikzlings-elephants}[2024/12/12 version v2.1 Draw teddy elephants in TikZ] +\ProvidesPackage{tikzlings-elephants}[2025/01/05 version v2.2 Draw teddy elephants in TikZ] \RequirePackage{tikz} \RequirePackage{tikzlings-addons} @@ -50,32 +50,32 @@ eye/.store in = \elephant@eye, eye = \elephant@body!30!black, ears/.store in = \elephant@ears, - ears = \elephant@body!30!white, + ears = \elephant@body!30!white, feet/.store in = \elephant@feet, - feet = \elephant@body!30!white, + feet = \elephant@body!30!white, hands/.store in = \elephant@hands, - hands = \elephant@body!30!white, + hands = \elephant@body!30!white, belly/.store in = \elephant@belly, - belly = \elephant@body!30!white, + belly = \elephant@body!30!white, tail/.store in = \elephant@tail, - tail = \elephant@body!30!white, + tail = \elephant@body!30!white, %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % options % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - 3D/.code = \elephant@threeDtrue, - back/.code = \elephant@backtrue, + 3D/.code = \elephant@threeDtrue, + back/.code = \elephant@backtrue, contour/.code = \elephant@contourtrue \def\elephant@contour{#1}, - contour/.default = black, - outline/.forward to = /elephant/contour, + contour/.default = black, + outline/.forward to = /elephant/contour, } \def\elephant@draw{% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % - % minimal bounding box size + % minimal bounding box size % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \path (-0.86, 0.0) rectangle (0.86, 2.17); @@ -92,7 +92,7 @@ \pgfmathsetmacro{\yscalefactor}{\tmpscaleD} % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - % + % % switch between 2D, 3D and contours, from % https://chat.stackexchange.com/transcript/message/45991801#45991801 % @@ -110,7 +110,7 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Body parts - % + % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % adding hook for users to customise %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -123,14 +123,14 @@ % % Feet if back %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ifelephant@back - \elephant@part@draw[\elephant@body] (0.425, 0.3) circle[radius=0.28]; + \elephant@part@draw[\elephant@body] (0.425, 0.3) circle[radius=0.28]; \elephant@part@draw[\elephant@body] (-0.425, 0.3) circle[radius=0.28]; \elephant@part@draw[\elephant@body] (0.57,0.74) circle [radius=0.20]; \elephant@part@draw[\elephant@body] (-0.57,0.74) circle [radius=0.20]; \fi% back % % Body %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - \elephant@part@draw[\elephant@body] (0,0.75) ellipse[x radius=0.55, y radius=0.65]; + \elephant@part@draw[\elephant@body] (0,0.75) ellipse[x radius=0.55, y radius=0.65]; \unless\ifelephant@back \elephant@part@draw[\elephant@belly] (0,0.7) ellipse[x radius=0.35, y radius=0.4]; \fi% back @@ -141,14 +141,14 @@ % % Feet %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \unless\ifelephant@back - \elephant@part@draw[\elephant@body] (0.425, 0.3) circle[radius=0.28]; + \elephant@part@draw[\elephant@body] (0.425, 0.3) circle[radius=0.28]; \elephant@part@draw[\elephant@body] (-0.425, 0.3) circle[radius=0.28]; - \elephant@part@draw[\elephant@feet] (0.425, 0.3) circle[radius=0.17]; + \elephant@part@draw[\elephant@feet] (0.425, 0.3) circle[radius=0.17]; \elephant@part@draw[\elephant@feet] (-0.425, 0.3) circle[radius=0.17]; - \elephant@part@draw[\elephant@body] (0.57,0.75) circle [radius=0.20]; + \elephant@part@draw[\elephant@body] (0.57,0.75) circle [radius=0.20]; \elephant@part@draw[\elephant@hands] (0.57,0.74) circle [radius=0.12]; \elephant@part@draw[\elephant@body] (-0.57,0.74) circle [radius=0.20]; - \elephant@part@draw[\elephant@hands] (-0.57,0.74) circle [radius=0.12]; + \elephant@part@draw[\elephant@hands] (-0.57,0.74) circle [radius=0.12]; \fi% back % % Ears %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -156,11 +156,11 @@ \elephant@part@draw[\elephant@body] (-0.5, 1.7) ellipse [x radius=0.35,y radius=0.45]; \unless\ifelephant@back \elephant@part@draw[\elephant@ears] (0.5, 1.7) ellipse [x radius=0.25,y radius=0.35]; - \elephant@part@draw[\elephant@ears] (-0.5, 1.7) ellipse [x radius=0.25,y radius=0.35]; + \elephant@part@draw[\elephant@ears] (-0.5, 1.7) ellipse [x radius=0.25,y radius=0.35]; \fi% back % % Head %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - \elephant@part@draw[\elephant@body] (0, 1.55) circle[radius=0.5]; + \elephant@part@draw[\elephant@body] (0, 1.55) circle[radius=0.5]; % % Show details only from the front %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \unless\ifelephant@back @@ -175,8 +175,8 @@ \fi% 3D % % Eyes %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - \elephant@part@draw[\elephant@eye] (-0.155, 1.7) circle[radius=0.05]; - \elephant@part@draw[\elephant@eye] (0.155, 1.7) circle[radius=0.05]; + \elephant@part@draw[\elephant@eye] (-0.155, 1.7) circle[radius=0.05]; + \elephant@part@draw[\elephant@eye] (0.155, 1.7) circle[radius=0.05]; % \fi% back % |