summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tikzlings/tikzlings-cats.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/tikzlings/tikzlings-cats.sty')
-rw-r--r--Master/texmf-dist/tex/latex/tikzlings/tikzlings-cats.sty19
1 files changed, 12 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/tikzlings/tikzlings-cats.sty b/Master/texmf-dist/tex/latex/tikzlings/tikzlings-cats.sty
index 92b3b901228..fd3559c347f 100644
--- a/Master/texmf-dist/tex/latex/tikzlings/tikzlings-cats.sty
+++ b/Master/texmf-dist/tex/latex/tikzlings/tikzlings-cats.sty
@@ -12,7 +12,7 @@
% See http://www.latex-project.org/lppl.txt
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\ProvidesPackage{tikzlings-cats}[2021/03/17 version v0.5 Drawing cats in TikZ]
+\ProvidesPackage{tikzlings-cats}[2021/04/16 version v0.6 Drawing cats in TikZ]
\RequirePackage{tikz}
\RequirePackage{tikzlings-addons}
@@ -82,12 +82,17 @@
eyes/.forward to = /cat/eye,
pupil/.code = \def\cat@pupil{#1},
pupil = black,
- pupilwidth/.code = \def\cat@pupil@width{#1}\edef\cat@pupil@offset{\strip@pt\dimexpr#1pt/4},
+ pupilwidth/.code = \def\cat@pupil@width{#1}
+ \edef\cat@pupil@offset{\strip@pt\dimexpr#1pt/4},
pupil width/.forward to = /cat/pupilwidth,
- narrow pupils/.style = {pupil width = 0.005},
- medium pupils/.style = {pupil width = 0.015},
- wide pupils/.style = {pupil width = 0.025},
- very wide pupils/.style = {pupil width = 0.050},
+ narrow pupils/.code = \def\cat@pupil@width{0.005}
+ \edef\cat@pupil@offset{\strip@pt\dimexpr 0.005pt/4},
+ medium pupils/.code = \def\cat@pupil@width{0.015}
+ \edef\cat@pupil@offset{\strip@pt\dimexpr 0.015pt/4},
+ wide pupils/.code = \def\cat@pupil@width{0.025}
+ \edef\cat@pupil@offset{\strip@pt\dimexpr 0.025pt/4},
+ very wide pupils/.code = \def\cat@pupil@width{0.050}
+ \edef\cat@pupil@offset{\strip@pt\dimexpr 0.050pt/4},
pupil width = 0.015,
paws/.code = \def\cat@paws{#1},
paws = \cat@body,
@@ -182,7 +187,7 @@
\cat@part@draw[\cat@body] (0,1.64) circle[radius=0.44];
%
% Show details only from the front %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\ifcat@back\else
+\unless\ifcat@back
%
% Eyes %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\cat@part@draw[\cat@eye] (-0.1014, 1.7491) .. controls (-0.1014, 1.7491) and (-0.1451, 1.7171) .. (-0.1841, 1.7284) .. controls (-0.2231, 1.7397) and (-0.2427, 1.79) .. (-0.2427, 1.79) .. controls (-0.2427, 1.79) and (-0.1992, 1.8221) .. (-0.1602, 1.8108) .. controls (-0.1212, 1.7995) and (-0.1014, 1.7491) .. (-0.1014, 1.7491) -- cycle;