summaryrefslogtreecommitdiff
path: root/graphics/pgf/contrib/tikzlings/tikzlings.sty
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-12-05 03:00:47 +0000
committerNorbert Preining <norbert@preining.info>2020-12-05 03:00:47 +0000
commit042d4edb85997e17a0b71f0f584e7c6371b2bf39 (patch)
tree5f4c6f9d7566fa96afec11e038da430979c6a4b1 /graphics/pgf/contrib/tikzlings/tikzlings.sty
parentc21dfc1b6264e70868fc851d90a124d5b1d9c341 (diff)
CTAN sync 202012050300
Diffstat (limited to 'graphics/pgf/contrib/tikzlings/tikzlings.sty')
-rw-r--r--graphics/pgf/contrib/tikzlings/tikzlings.sty29
1 files changed, 17 insertions, 12 deletions
diff --git a/graphics/pgf/contrib/tikzlings/tikzlings.sty b/graphics/pgf/contrib/tikzlings/tikzlings.sty
index 1ae5e70edb..389849784a 100644
--- a/graphics/pgf/contrib/tikzlings/tikzlings.sty
+++ b/graphics/pgf/contrib/tikzlings/tikzlings.sty
@@ -12,7 +12,7 @@
% See http://www.latex-project.org/lppl.txt
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\ProvidesPackage{tikzlings}[2020/04/22 version v0.3 Collection of packages to draw animals and other beings in TikZ]
+\ProvidesPackage{tikzlings}[2020/12/04 version v0.4 Collection of packages to draw animals and other beings in TikZ]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
@@ -38,6 +38,7 @@
\RequirePackage{tikzlings-bees}
\RequirePackage{tikzlings-anteaters}
\RequirePackage{tikzlings-squirrels}
+\RequirePackage{tikzlings-sheep}
\RequirePackage{tikzlings-addons}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -45,20 +46,24 @@
% Drawing a random tikzling
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\RequirePackage{ifluatex}
-\RequirePackage{ifxetex}
-
-\ifluatex
- \let\pdfrandomseed\randomseed
-\fi
-
-\ifxetex
- \pgfmathsetseed{\time}
+\RequirePackage{expl3}
+\ExplSyntaxOn
+\ifdefined\sys_rand_seed:
+ \pgfmathsetseed {\sys_rand_seed:}
\else
- \pgfmathsetseed{\number\pdfrandomseed}
+ \ifdefined\pdfrandomseed % pdflatex
+ \else
+ \ifdefined\randomseed
+ \let\pdfrandomseed\randomseed % post TL19 xelatex and lualatex
+ \else
+ \let\pdfrandomseed\time % pre TL19 xelatex
+ \fi
+ \fi
+ \pgfmathsetseed{\number\pdfrandomseed}
\fi
+\ExplSyntaxOff
-\pgfmathdeclarerandomlist{tikzlings}{{\bear}{\penguin}{\marmot}{\owl}{\koala}{\coati}{\snowman}{\mouse}{\moles}{\sloth}{\pig}{\cat}{\hippo}{\rhino}{\bee}{\anteater}}
+\pgfmathdeclarerandomlist{tikzlings}{{\bear}{\penguin}{\marmot}{\owl}{\koala}{\coati}{\snowman}{\mouse}{\moles}{\sloth}{\pig}{\cat}{\hippo}{\rhino}{\bee}{\anteater}{\sheep}}
\newcommand{\tikzling}[1][]{%
\pgfmathrandomitem{\tikzling@random}{tikzlings}%