diff options
author | Karl Berry <karl@freefriends.org> | 2017-11-23 21:05:53 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-11-23 21:05:53 +0000 |
commit | 581f29cebf7db4db5a75042f8430c71631373f85 (patch) | |
tree | a7ddb3c82825e6dd54fec291b301b3788a4f0bff /Master/texmf-dist/tex/latex/tikzducks | |
parent | 2007afba85fda62764b07053de91cd8bd8995e36 (diff) |
tikzducks (23nov17)
git-svn-id: svn://tug.org/texlive/trunk@45893 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/tikzducks')
-rw-r--r-- | Master/texmf-dist/tex/latex/tikzducks/tikzducks.sty | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/tikzducks/tikzducks.sty b/Master/texmf-dist/tex/latex/tikzducks/tikzducks.sty index 5877b3e2001..69bab18b0ae 100644 --- a/Master/texmf-dist/tex/latex/tikzducks/tikzducks.sty +++ b/Master/texmf-dist/tex/latex/tikzducks/tikzducks.sty @@ -10,8 +10,8 @@ % Released under the LaTeX Project Public License v1.3c or later % See http://www.latex-project.org/lppl.txt % -% Version 0.5 -% Nov 21, 2017 +% Version 0.5a +% Nov 23, 2017 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -22,6 +22,9 @@ \usetikzlibrary{patterns} % for the wizard hat \usetikzlibrary{calc} % for the sports jerseys +\RequirePackage{ifpdf} +\RequirePackage{ifluatex} + %\pgfdeclarelayer{backgroundlayer} %\pgfdeclarelayer{bodylayer} %\pgfdeclarelayer{clothinglayer} @@ -764,7 +767,14 @@ % Random ducks % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\pgfmathsetseed{\number\pdfrandomseed} +\pgfmathsetseed{\time} +\ifpdf % filters pdflatex and lualatex + \ifluatex + \pgfmathsetseed{\number\randomseed} + \else % filters only pdflatex + \pgfmathsetseed{\number\pdfrandomseed} + \fi +\fi \pgfmathdeclarerandomlist{head}{{shorthair}{longhair}{crazyhair}{alien}{hat}{cap}{santa}{chef}{graduate}{beret}{magichat}{witch}{crown}{bunny}{peakedcap}{tophat}} \pgfmathdeclarerandomlist{accessories}{{glasses}{sunglasses}{icecream}{book}{signpost}{magicwand}{cricket}{rollingpin}{lightsaber}{cake}{pizza}{hockey}{baguette}{football}{mask}{necklace}{milkshake}{wine}{prison}} |