texlive[45893] Master/texmf-dist: tikzducks (23nov17)

commits+karl at tug.org commits+karl at tug.org
Thu Nov 23 22:05:53 CET 2017


Revision: 45893
          http://tug.org/svn/texlive?view=revision&revision=45893
Author:   karl
Date:     2017-11-23 22:05:53 +0100 (Thu, 23 Nov 2017)
Log Message:
-----------
tikzducks (23nov17)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/tikzducks/tikzducks-doc.pdf
    trunk/Master/texmf-dist/doc/latex/tikzducks/tikzducks-doc.tex
    trunk/Master/texmf-dist/tex/latex/tikzducks/tikzducks.sty

Modified: trunk/Master/texmf-dist/doc/latex/tikzducks/tikzducks-doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/tikzducks/tikzducks-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tikzducks/tikzducks-doc.tex	2017-11-23 21:05:40 UTC (rev 45892)
+++ trunk/Master/texmf-dist/doc/latex/tikzducks/tikzducks-doc.tex	2017-11-23 21:05:53 UTC (rev 45893)
@@ -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 
 %
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \documentclass[parskip=half]{scrartcl}
@@ -118,7 +118,7 @@
 		\url{https://github.com/samcarter8/tikzducks}\\
 		\url{https://www.ctan.org/pkg/tikzducks}
 	}{samcarter}}
-\date{Version 0.5 -- \today}
+\date{Version 0.5a -- \today}
 
 \begin{document}
 \maketitle
@@ -148,7 +148,7 @@
 \begin{lstlisting}[aboveskip=1.2em,morekeywords={xcolor,svgnames}]
 	\PassOptionsToPackage{svgnames}{xcolor}
 \end{lstlisting}
-It also uses the \lstinline|\usetikzlibrary{patterns}| and \lstinline|\usetikzlibrary{calc}|.
+It also uses the \lstinline|\usetikzlibrary{patterns}| and \lstinline|\usetikzlibrary{calc}|. Furthermore the packages \lstinline|ifpdf| and \lstinline|ifluatex| are necassary starting with version 0.5 of this package.
 
 \subsection{License}
 

Modified: trunk/Master/texmf-dist/tex/latex/tikzducks/tikzducks.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tikzducks/tikzducks.sty	2017-11-23 21:05:40 UTC (rev 45892)
+++ trunk/Master/texmf-dist/tex/latex/tikzducks/tikzducks.sty	2017-11-23 21:05:53 UTC (rev 45893)
@@ -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}}



More information about the tex-live-commits mailing list