texlive[71098] Master: tikzducks (27apr24)
commits+karl at tug.org
commits+karl at tug.org
Sat Apr 27 21:56:35 CEST 2024
Revision: 71098
https://tug.org/svn/texlive?view=revision&revision=71098
Author: karl
Date: 2024-04-27 21:56:35 +0200 (Sat, 27 Apr 2024)
Log Message:
-----------
tikzducks (27apr24)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/generic/tikzducks/README.md
trunk/Master/texmf-dist/doc/generic/tikzducks/tikzducks-doc-settings.sty
trunk/Master/texmf-dist/doc/generic/tikzducks/tikzducks-doc.pdf
trunk/Master/texmf-dist/doc/generic/tikzducks/tikzducks-doc.tex
trunk/Master/texmf-dist/tex/generic/tikzducks/t-tikzducks.mkiv
trunk/Master/texmf-dist/tex/generic/tikzducks/tikzducks.sty
trunk/Master/tlpkg/tlpsrc/tikzducks.tlpsrc
Added Paths:
-----------
trunk/Master/texmf-dist/doc/generic/tikzducks/DEPENDS.txt
Added: trunk/Master/texmf-dist/doc/generic/tikzducks/DEPENDS.txt
===================================================================
--- trunk/Master/texmf-dist/doc/generic/tikzducks/DEPENDS.txt (rev 0)
+++ trunk/Master/texmf-dist/doc/generic/tikzducks/DEPENDS.txt 2024-04-27 19:56:35 UTC (rev 71098)
@@ -0,0 +1,3 @@
+hard pgf
+hard iftex
+hard epstopdf-pkg
Property changes on: trunk/Master/texmf-dist/doc/generic/tikzducks/DEPENDS.txt
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/doc/generic/tikzducks/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/generic/tikzducks/README.md 2024-04-27 19:56:03 UTC (rev 71097)
+++ trunk/Master/texmf-dist/doc/generic/tikzducks/README.md 2024-04-27 19:56:35 UTC (rev 71098)
@@ -1,11 +1,30 @@
+![](https://raw.githubusercontent.com/samcarter/tikzducks/main/ICON.png)
+
# TikZducks
-This is a little LaTeX package for ducks to be used in TikZ pictures. The project is a continuation of the TeX.Stackexchange.com answer [How can we draw a duck](https://tex.stackexchange.com/a/347458/36296)
+[![GitHub](https://img.shields.io/github/license/samcarter/tikzducks.svg?color=blue)](http://www.latex-project.org/lppl.txt)
+[![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/samcarter/tikzducks.svg?label=current%20version)](https://github.com/samcarter/tikzducks/releases/latest)
+[![CTAN](https://img.shields.io/ctan/v/tikzducks.svg)](https://ctan.org/pkg/tikzducks)
-This project is licensed under the LaTeX Project Public License v1.3c or later, see http://www.latex-project.org/lppl.txt
+This is a little LaTeX package for ducks to be used in TikZ pictures.
-## A few examples:
+This project is licensed under the LaTeX Project Public License v1.3c or later, see http://www.latex-project.org/lppl.txt .
-![tikz ducks](https://user-images.githubusercontent.com/43832342/71718547-d160d400-2e1b-11ea-8bae-39cc4b648771.png)
+The project repository, including a bug tracker, can be found at https://github.com/samcarter/tikzducks .
-More examples of TikZducks can be seen at https://github.com/samcarter/tikzducks/
\ No newline at end of file
+### Usage
+
+```latex
+\documentclass{standalone}
+\usepackage{tikzducks}
+
+\begin{document}
+
+\begin{tikzpicture}
+ \duck
+\end{tikzpicture}
+
+\end{document}
+```
+
+For more details, please consult the [package documentation](https://github.com/samcarter/tikzducks/blob/main/DOCUMENTATION.pdf).
Modified: trunk/Master/texmf-dist/doc/generic/tikzducks/tikzducks-doc-settings.sty
===================================================================
--- trunk/Master/texmf-dist/doc/generic/tikzducks/tikzducks-doc-settings.sty 2024-04-27 19:56:03 UTC (rev 71097)
+++ trunk/Master/texmf-dist/doc/generic/tikzducks/tikzducks-doc-settings.sty 2024-04-27 19:56:35 UTC (rev 71098)
@@ -58,7 +58,10 @@
\RequirePackage[bitstream-charter]{mathdesign}
\let\hrulefill\hrulefillx
\RequirePackage[hang,flushmargin,bottom]{footmisc}
- \RequirePackage[colorlinks=true,breaklinks=true,allcolors=themecolor]{hyperref}
+ \RequirePackage{footnotehyper}
+ \makesavenoteenv{tcolorbox}
+ \RequirePackage[all]{nowidow}
+ \RequirePackage[colorlinks=true,breaklinks=true,allcolors=themecolor,hyperfootnotes=false]{hyperref}
}
\RequirePackage[T1]{fontenc}
\RequirePackage{xspace}
@@ -65,6 +68,7 @@
\RequirePackage{inconsolata}% mono font with bold, but italic is missing
% \RequirePackage[scale=0.85]{cascadia-code}
% \AddToHook{cmd/ttfamily/before}{\fontseries{sl}}
+\RequirePackage{iexec}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
@@ -72,12 +76,12 @@
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\RequirePackage[
- cachedir=./build/
+ cachedir=$TMPDIR/minted/
]{minted}
% smuggling custom pygmentize style in cache folder
% (a real pygmentise style would need installtion in some python folder)
-\begin{filecontents*}[noheader]{./build/sam.pygstyle}
+\begin{filecontents*}[noheader]{./sam.pygstyle}
\makeatletter
\def\PYG at reset{\let\PYG at it=\relax \let\PYG at bf=\relax%
\let\PYG at ul=\relax \let\PYG at tc=\relax%
@@ -122,6 +126,8 @@
\makeatother
\end{filecontents*}
+\iexec{mkdir -p $TMPDIR/minted && mv sam.pygstyle $TMPDIR/minted/.}
+
\usemintedstyle{sam}
\setminted{
breaksymbolleft={},
@@ -140,7 +146,6 @@
\tcbuselibrary{minted}
\tcbset{%
colframe=themecolor,
- arc=2mm,
fonttitle=\bfseries,
sidebyside,
center lower,
@@ -147,13 +152,24 @@
righthand width=5.7cm,
bottom=2pt,
top=2pt,
+ left=3pt,
+ right=3pt,
sidebyside gap=10pt,
lower separated=false,
listing engine=minted,
minted language=latex,
- colback=themecolor!10
+ colback=themecolor!10,
+ sharp corners,
+ boxrule=0pt,
+ before title={\strut}
}
+% avoid page breaks right in front of the tcolorbox
+\@ifclassloaded{beamer}{}{
+ \tcbuselibrary{hooks}
+ \tcbset{before pre={\nopagebreak[4]}}
+}
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% document settings
Modified: trunk/Master/texmf-dist/doc/generic/tikzducks/tikzducks-doc.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/generic/tikzducks/tikzducks-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/generic/tikzducks/tikzducks-doc.tex 2024-04-27 19:56:03 UTC (rev 71097)
+++ trunk/Master/texmf-dist/doc/generic/tikzducks/tikzducks-doc.tex 2024-04-27 19:56:35 UTC (rev 71098)
@@ -34,7 +34,7 @@
\url{https://github.com/samcarter/tikzducks}\\
\url{https://www.ctan.org/pkg/tikzducks}
}{samcarter}}
-\date{Version v1.7 \textendash{} 2024/04/19}
+\date{Version v1.8 \textendash{} 2024/04/27}
\usepackage[
themecolor=samlblue
@@ -56,10 +56,10 @@
\cfoot{%
\shuffleducks
- \begin{tikzpicture}[scale=0.5]
+ \begin{tikzpicture}[scale=0.5]
\duck[signpost=\scalebox{0.6}{\thepage},\randomhead]
\end{tikzpicture}
-}
+}
\pagestyle{scrheadings}
\begin{document}
@@ -69,10 +69,10 @@
\section{Introduc(k)tion}
\label{intro}
-Rubber ducks can be made of latex, but can they also be made with \LaTeX? Yes! The \tikzducks package is a \LaTeX{} package for rubber ducks to be used in \TikZ pictures.
+Rubber ducks can be made of latex, but can they also be made with \LaTeX? Yes! The \tikzducks package is a \LaTeX{} package for rubber ducks to be used in \TikZ pictures.
This project is a continuation of \href{https://tex.stackexchange.com/a/347458/36296}{How can we draw a duck?}.
-This package is work in progress (and will probably never be really finished as there is an infinite amount of things which could be added), therefore I would be happy to hear your feedback and ideas how to improve the package.
+This package is work in progress (and will probably never be really finished as there is an infinite amount of things which could be added), therefore I would be happy to hear your feedback and ideas how to improve the package.
The head version of the source code can be found on \url{https://github.com/samcarter/tikzducks}, including a bug tracker -- please make constructive use of it! A more stable package version can be found on \CTAN (\url{https://www.ctan.org/pkg/tikzducks}) and is included in both \miktex and \texlive as \tikzducks. If you seek any other assistance (not bug reports/feature requests), I suggest asking a question at \url{https://topanswers.xyz/tex}.
\subsection{Acknowledgements}
@@ -79,7 +79,7 @@
Without the friendly and helpful community of \TeX{} users this package would not exist. I would like to thank a few fellow users in particular:
-First of all
+First of all
%
Carla Maggi for pointing out the overwhelming need of having a \tikzducks package and valuable contribution to the package code, in particular the \hyperref[sec:footballducks]{football ducks},
%
@@ -90,7 +90,7 @@
Many other users contributed to this package (in random order):
%
Enrico Gregorio helped to implement the \saminline|\tikzset{}| interface which makes it much easier to adjust the properties of the ducks to fit the user needs,
-%
+%
Andrew Stacey contributed the \TikZ Library ``ducks'',
%
Symbol~1 solved a few problems with default key values,
@@ -99,7 +99,7 @@
%
Yudai Nakata helped with problems of \saminline|\pdfrandomseed|,
%
- at marmot for his seemingly infinite knowledge of \TikZ which he shared with the world,
+ at marmot for his seemingly infinite knowledge of \TikZ which he shared with the world,
%
@JairoAdelRio for contributing the \ConTeXt{} User Module
%
@@ -130,7 +130,7 @@
\end{tikzpicture}
\end{tcblisting}
-If the keyword consists of multiples words, it works both with and without spaces. In the following usually the version without spaces is given.
+If the keyword consists of multiples words, it works both with and without spaces. In the following usually the version without spaces is given.
In addition to the keys defined in this package, all usual \TikZ and \saminline|pgf| keys can also be used. For example if the size of the ducks should be changed or shifted:
@@ -166,7 +166,7 @@
\end{tikzpicture}
\end{document}
-\end{samcode}
+\end{samcode}
\tcblower
\begin{tikzpicture}
@@ -180,7 +180,7 @@
\end{tikzpicture}
\end{tcolorbox}
-For everybody suffering from anatidaephobia, there is also a special option to not draw the duck:
+For everybody suffering from anatidaephobia, there is also a special option to not draw the duck:
\begin{tcblisting}{title={Invisible duck}}
\begin{tikzpicture}
\duck[invisible]
@@ -189,9 +189,7 @@
This can also be useful to recycle some of the accessories presented in \ref{sec:accessories}.
-\clearpage
For the \TeX{} purists, there is also a picture mode variant:
-
{
\setlength{\unitlength}{0.6mm}
\begin{tcblisting}{title={\texttt{picture} mode duck}}
@@ -201,7 +199,7 @@
\end{tcblisting}
}
-And thanks to @JairoAdelRio there is even a \ConTeXt{} User Module available. Some of the colours might look different and not being a \ConTeXt{} user myself, I can't guarantee maintenance of this module.
+And thanks to @JairoAdelRio there is even a \ConTeXt{} User Module available. Some of the colours might look different and not being a \ConTeXt{} user myself, I can't guarantee maintenance of this module.
\begin{tcolorbox}[title={\ConTeXt{} User Module}]
\begin{samcode}
@@ -214,7 +212,7 @@
\stoptikzpicture
\stoptext
-\end{samcode}
+\end{samcode}
\tcblower
\begin{tikzpicture}
@@ -248,7 +246,7 @@
\begin{tcblisting}{title={Harlequin duck}}
\begin{tikzpicture}
\duck[body=yellow,
- head=yellow!50!orange,
+ head=yellow!50!orange,
bill=red,
eye=green]
\end{tikzpicture}
@@ -352,8 +350,7 @@
\end{tikzpicture}
\end{tcblisting}
-\addtocounter{footnote}{1}
-\begin{tcblisting}{title={Beard duck$^{\thefootnote}$}}
+\begin{tcblisting}{title={Beard duck\footnote{The beard is based on an answer by Mihikma, see \url{https://tex.stackexchange.com/a/401777/36296}}}}
\begin{tikzpicture}
\duck[beard=white!80!brown]
\end{tikzpicture}
@@ -361,7 +358,6 @@
\duck[recedinghair=white,beard]
\end{tikzpicture}
\end{tcblisting}
-\footnotetext[\thefootnote]{The beard is based on an answer by Mihikma, see \url{https://tex.stackexchange.com/a/401777/36296}}
Please note that not all of the accessories, especially hats, shown in the following sections, will suite every hairstyle. In case the desired combination of hair style and hat does not work well, there is always the possibility to look up the original definition of the hat in the \saminline|tikzducks| source code and recreate it with a more suitable position or size.
@@ -443,7 +439,7 @@
\begin{tcblisting}{title={Strawhat duck}}
\begin{tikzpicture}
- \duck[strawhat=brown!50!white,
+ \duck[strawhat=brown!50!white,
ribbon=gray]
\end{tikzpicture}
\end{tcblisting}
@@ -462,7 +458,7 @@
\begin{tcblisting}{title={Santa Duck}}
\begin{tikzpicture}
- \duck[santa=red!80!black,
+ \duck[santa=red!80!black,
beard=white!80!brown]
\end{tikzpicture}
\end{tcblisting}
@@ -471,19 +467,19 @@
\begin{tikzpicture}
\duck[graduate=gray!20!black,
tassel=red!70!black]
-\end{tikzpicture}
+\end{tikzpicture}
\end{tcblisting}
\begin{tcblisting}{title={Beret duck}}
\begin{tikzpicture}
\duck[beret=red!70!black]
-\end{tikzpicture}
+\end{tikzpicture}
\end{tcblisting}
\begin{tcblisting}{title={Peaked cap duck}}
\begin{tikzpicture}
\duck[peakedcap=blue!50!black]
-\end{tikzpicture}
+\end{tikzpicture}
\end{tcblisting}
\begin{tcblisting}{title={Harlequin duck}}
@@ -490,19 +486,19 @@
\begin{tikzpicture}
\duck[harlequin=blue,
niuqelrah=red]
-\end{tikzpicture}
+\end{tikzpicture}
\end{tcblisting}
\begin{tcblisting}{title={Sailor duck}}
\begin{tikzpicture}
\duck[sailor=white]
-\end{tikzpicture}
+\end{tikzpicture}
\end{tcblisting}
\begin{tcblisting}{title={Bobble hat duck}}
\begin{tikzpicture}
\duck[bobblehat=red!70!red]
-\end{tikzpicture}
+\end{tikzpicture}
\end{tcblisting}
\begin{tcblisting}{title={Crown duck}}
@@ -545,11 +541,10 @@
\end{tikzpicture}
\end{tcblisting}
-\addtocounter{footnote}{1}
-\begin{tcblisting}{title={Bunny duck$^{\thefootnote}$}}
+\begin{tcblisting}{title={Bunny duck\footnote{Unless an explicit colour is specified, the bunny ears will take the body colour as default colour, the inner parts will be drawn in a lighter shade.}}}
\begin{tikzpicture}
- \duck[body=white!80!brown,
- bill=white!60!brown,
+ \duck[body=white!80!brown,
+ bill=white!60!brown,
bunny]
\end{tikzpicture}
\begin{tikzpicture}
@@ -556,27 +551,22 @@
\duck[bunny=red,inear=blue]
\end{tikzpicture}
\end{tcblisting}
-\footnotetext[\thefootnote]{Unless an explicit colour is specified, the bunny ears will take the body colour as default colour, the inner parts will be drawn in a lighter shade.}
-\addtocounter{footnote}{1}
-\begin{tcblisting}{title={Sheep duck$^{\thefootnote}$}}
+\begin{tcblisting}{title={Sheep duck\footnote{The in-ear colour of the sheep is chosen to be the same as the bill}}}
\begin{tikzpicture}
- \duck[body=white!80!brown,
- bill=white!60!brown,
+ \duck[body=white!80!brown,
+ bill=white!60!brown,
sheep]
\end{tikzpicture}
\end{tcblisting}
-\footnotetext[\thefootnote]{The in-ear colour of the sheep chosen to be the same as the bill}
-\addtocounter{footnote}{1}
-\begin{tcblisting}{title={Horse duck$^{\thefootnote}$}}
+\begin{tcblisting}{title={Horse duck\footnote{If no colour is specified, the horse tail will have the same colour as the hair}}}
\begin{tikzpicture}
- \duck[body=brown!80!white,
- longhair=brown!50!black,
+ \duck[body=brown!80!white,
+ longhair=brown!50!black,
horsetail]
\end{tikzpicture}
\end{tcblisting}
-\footnotetext[\thefootnote]{If no colour is specified, the horse tail will have the same colour as the hair}
\begin{tcblisting}{title={Witch duck}}
\begin{tikzpicture}
@@ -620,10 +610,10 @@
\end{tcblisting}
\begin{tcblisting}{title={Signpost duck}}
-\begin{tikzpicture}
+\begin{tikzpicture}
\duck[signpost=42]
\end{tikzpicture}
-\begin{tikzpicture}
+\begin{tikzpicture}
\duck[signpost=\scalebox{0.4}{
\parbox{2cm}{\color{black}
\centering Science\\ first}},
@@ -632,8 +622,7 @@
\end{tikzpicture}
\end{tcblisting}
-\addtocounter{footnote}{1}
-\begin{tcblisting}{title={Speaking duck$^{\thefootnote}$}}
+\begin{tcblisting}{title={Speaking duck\footnote{Both the speech and thought bubble are inspired by the wonderful \href{https://www.ctan.org/pkg/ducksay}{ducksay package}}}}
\begin{tikzpicture}
\duck[speech={Bla},
bubblecolour=cyan!20!white,
@@ -641,30 +630,27 @@
\end{tikzpicture}
\end{tcblisting}
-\begin{tcblisting}{title={Thinking duck$^{\thefootnote}$}}
+\begin{tcblisting}{title={Thinking duck\footnotemark[\thefootnote]}}
\begin{tikzpicture}
\duck[think={Blub},
bubblecolour=white!95!yellow]
\end{tikzpicture}
\end{tcblisting}
-\footnotetext[\thefootnote]{Both the speech and thought bubble are inspired by the wonderful \href{https://www.ctan.org/pkg/ducksay}{ducksay package}}
-\addtocounter{footnote}{1}
-\begin{tcblisting}{title={Buttons duck$^{\thefootnote}$}}
+\begin{tcblisting}{title={Buttons duck\footnote{In case the duck is wearing a jacket, the buttons are positioned a bit lower}}}
\begin{tikzpicture}
\duck[buttons=brown!50!black]
-\end{tikzpicture}
+\end{tikzpicture}
\begin{tikzpicture}
\duck[jacket=red,buttons]
-\end{tikzpicture}
+\end{tikzpicture}
\end{tcblisting}
-\footnotetext[\thefootnote]{In case the duck is wearing a jacket, the buttons are positioned a bit lower}
\begin{tcblisting}{title={Dinner jacket duck}}
\begin{tikzpicture}
\duck[jacket=gray,
lapel=black,buttons]
-\end{tikzpicture}
+\end{tikzpicture}
\end{tcblisting}
\begin{tcblisting}{title={Book duck}}
@@ -672,7 +658,7 @@
\duck[book=\scalebox{0.5}{\TeX}]
\end{tikzpicture}
\begin{tikzpicture}
- \duck[book=\scalebox{0.6}{$\pi$},
+ \duck[book=\scalebox{0.6}{$\pi$},
bookcolour=blue!50!black]
\end{tikzpicture}
\end{tcblisting}
@@ -683,28 +669,24 @@
\end{tikzpicture}
\end{tcblisting}
-\begin{tcblisting}{title={Hockey duck}}
+\begin{tcblisting}{title={Football duck\footnote{The football duck is simplified version from an answer by Carla Maggi, \url{https://tex.stackexchange.com/a/387126/36296}}}}
\begin{tikzpicture}
- \duck[hockey=brown!70!black]
+ \duck[football=white!85!yellow]
\end{tikzpicture}
\end{tcblisting}
-\addtocounter{footnote}{1}
-\begin{tcblisting}{title={Football duck$^{\thefootnote}$}}
+\begin{tcblisting}{title={Hockey duck}}
\begin{tikzpicture}
- \duck[football=white!85!yellow]
+ \duck[hockey=brown!70!black]
\end{tikzpicture}
\end{tcblisting}
-\footnotetext[\thefootnote]{The football duck is simplified version from an answer by Carla Maggi, \url{https://tex.stackexchange.com/a/387126/36296}}
-\addtocounter{footnote}{1}
-\begin{tcblisting}{title={Lightsaber duck$^{\thefootnote}$}}
+\begin{tcblisting}{title={Lightsaber duck\footnote{Dedicated to the Counter Wizard (aka Christian Hupfer)}}}
\begin{tikzpicture}
\duck[lightsaber=red,
darthvader=black!30!gray]
\end{tikzpicture}
\end{tcblisting}
-\footnotetext[\thefootnote]{Dedicated to the Counter Wizard (aka Christian Hupfer)}
\begin{tcblisting}{title={Torch duck}}
\begin{tikzpicture}
@@ -727,7 +709,7 @@
\begin{tcblisting}{title={Necklace duck}}
\begin{tikzpicture}
\duck[necklace=gray!20!white]
-\end{tikzpicture}
+\end{tikzpicture}
\end{tcblisting}
\begin{tcblisting}{title={Icecream duck}}
@@ -735,88 +717,81 @@
\duck[icecream]
\end{tikzpicture}
\begin{tikzpicture}
- \duck[icecream=brown,
- flavoura=green!50!brown,
- flavourb=white,
+ \duck[icecream=brown,
+ flavoura=green!50!brown,
+ flavourb=white,
flavourc=red]
\end{tikzpicture}
\end{tcblisting}
-\addtocounter{footnote}{1}
-\begin{tcblisting}{title={Chef duck$^{\thefootnote}$}}
+\begin{tcblisting}{title={Chef duck\footnote{The chef duck is based on an idea by Carla Maggi, please see the following link for a more sophisticated version of the toque and the rolling pin: \url{https://tex.stackexchange.com/a/387126/36296}}}}
\begin{tikzpicture}
\duck[chef=white!95!yellow,
rollingpin=brown!80!black]
\end{tikzpicture}
\end{tcblisting}
-\footnotetext[\thefootnote]{The chef duck is based on an idea by Carla Maggi, please see the following link for a more sophisticated version of the toque and the rolling pin: \url{https://tex.stackexchange.com/a/387126/36296}}
\begin{tcblisting}{title={Cake duck}}
\begin{tikzpicture}
\duck[cake=red!50!violet!80!black]
-\end{tikzpicture}
+\end{tikzpicture}
\end{tcblisting}
\begin{tcblisting}{title={Pizza duck}}
\begin{tikzpicture}
\duck[pizza]
-\end{tikzpicture}
+\end{tikzpicture}
\end{tcblisting}
\begin{tcblisting}{title={Baguette duck}}
\begin{tikzpicture}
\duck[baguette=brown]
-\end{tikzpicture}
+\end{tikzpicture}
\end{tcblisting}
\begin{tcblisting}{title={Cheese duck}}
\begin{tikzpicture}
\duck[cheese=orange]
-\end{tikzpicture}
+\end{tikzpicture}
\end{tcblisting}
\begin{tcblisting}{title={Milkshake duck}}
\begin{tikzpicture}
\duck[milkshake=red!20!white]
-\end{tikzpicture}
+\end{tikzpicture}
\end{tcblisting}
-\addtocounter{footnote}{1}
-\begin{tcblisting}{title={Wine duck$^{\thefootnote}$}}
+\begin{tcblisting}{title={Wine duck\footnote{According to the resident Italian wine expert of the \href{https://chat.stackexchange.com/transcript/message/40103109}{ TeX.SE chatroom}, the duck is drinking a fine Brunello di Montalcino}}}
\begin{tikzpicture}
\duck[wine=red!70!black]
\end{tikzpicture}
\end{tcblisting}
-\footnotetext[\thefootnote]{According to the resident Italian wine expert of the \href{https://chat.stackexchange.com/transcript/message/40103109}{ TeX.SE chatroom}, the duck is drinking a fine Brunello di Montalcino}
\begin{tcblisting}{title={Cocktail duck}}
\begin{tikzpicture}
\duck[cocktail]
-\end{tikzpicture}
+\end{tikzpicture}
\end{tcblisting}
-\addtocounter{footnote}{1}
-\begin{tcblisting}{title={Banana duck$^{\thefootnote}$}}
+\begin{tcblisting}{title={Banana duck\footnote{The banana and the stick were kindly contributed by @NuzzleTOO}}}
\begin{tikzpicture}
\duck[banana=yellow!80!orange]
\end{tikzpicture}
\end{tcblisting}
-\begin{tcblisting}{title={Stick duck$^{\thefootnote}$}}
+\begin{tcblisting}{title={Stick duck\footnotemark[\thefootnote]}}
\begin{tikzpicture}
\duck[stick=red!60!green,leaf=green!70!red]
\end{tikzpicture}
\end{tcblisting}
-\footnotetext[\thefootnote]{The banana and the stick were kindly contributed by @NuzzleTOO}
-\addtocounter{footnote}{1}
-\begin{tcblisting}{title={Basket duck$^{\thefootnote}$}}
+\begin{tcblisting}{title={Basket duck\footnote{The basket and Easter basket was kindly contributed by Benito van der Zander}}}
\begin{tikzpicture}
\duck[basket=brown]
\end{tikzpicture}
\end{tcblisting}
-\begin{tcblisting}{title={Easter duck$^{\thefootnote}$}}
+\begin{tcblisting}{title={Easter duck\footnotemark[\thefootnote]}}
\begin{tikzpicture}
\duck[bunny,easter]
\end{tikzpicture}
@@ -825,7 +800,6 @@
eggb=orange,eggc=teal]
\end{tikzpicture}
\end{tcblisting}
-\footnotetext[\thefootnote]{The basket and Easter basket was kindly contributed by Benito van der Zander}
\begin{tcblisting}{title={Wing duck}}
\begin{tikzpicture}
@@ -853,38 +827,19 @@
\end{tikzpicture}
\end{tcblisting}
-\addtocounter{footnote}{1}
-\begin{tcblisting}{title={Snow Duck$^{\thefootnote}$}}
+\begin{tcblisting}{title={Snow Duck\footnote{The snowduck is dedicated to all Japanese \TeX\ users}}}
\begin{tikzpicture}
\duck[snowduck=white]
-\end{tikzpicture}
+\end{tikzpicture}
\end{tcblisting}
-\footnotetext[\thefootnote]{The snowduck is dedicated to all Japanese \TeX\ users}
-\begin{tcblisting}{title={Vampire Duck}}
-\begin{tikzpicture}
- \duck[vampire=white]
-\end{tikzpicture}
-\begin{tikzpicture}
- \duck[laughing, vampire=white]
-\end{tikzpicture}
-\end{tcblisting}
-
-\addtocounter{footnote}{1}
-\begin{tcblisting}{title={Fortune Quacker$^{\thefootnote}$}}
-\begin{tikzpicture}
- \duck[crystalball=cyan]
-\end{tikzpicture}
-\end{tcblisting}
-\footnotetext[\thefootnote]{The crystal ball is kindly contributed by @marmot}
-
\begin{tcblisting}{title={Shovelling Duck}}
\begin{tikzpicture}
\duck[shovel=gray]
-\end{tikzpicture}
+\end{tikzpicture}
\begin{tikzpicture}
\duck[pickaxe=gray]
-\end{tikzpicture}
+\end{tikzpicture}
\end{tcblisting}
\begin{tcblisting}{title={Sweeping Duck}}
@@ -892,36 +847,48 @@
\duck[strawbroom=brown!50!white,
strawbroomstick=brown,
strawbroomribbon=red!50!black]
-\end{tikzpicture}
+\end{tikzpicture}
\begin{tikzpicture}
- \duck[broom=brown,
- broomstick=gray!50!black]
-\end{tikzpicture}
+ \duck[broom=brown, broomstick=gray!50!black]
+\end{tikzpicture}
\end{tcblisting}
\begin{tcblisting}{title={Umbrella Duck}}
\begin{tikzpicture}
\duck[umbrella=cyan]
-\end{tikzpicture}
+\end{tikzpicture}
\begin{tikzpicture}
\duck[umbrellaclosed=cyan]
-\end{tikzpicture}
+\end{tikzpicture}
\end{tcblisting}
-\addtocounter{footnote}{1}
-\begin{tcblisting}{title={Overleaf Duck$^{\thefootnote}$}}
+\begin{tcblisting}{title={Fortune Quacker\footnote{The crystal ball is kindly contributed by @marmot}}}
\begin{tikzpicture}
- \duck[overleaf]
-\end{tikzpicture}
+ \duck[crystalball=cyan]
+\end{tikzpicture}
\end{tcblisting}
-\footnotetext[\thefootnote]{added to celebrate that \tikzducks are now also available on overleaf, see \url{https://www.overleaf.com/blog/tex-live-upgrade-september-2019}}
\begin{tcblisting}{title={Handbag Duck}}
\begin{tikzpicture}
\duck[handbag=red!70!black]
-\end{tikzpicture}
+\end{tikzpicture}
\end{tcblisting}
+\begin{tcblisting}{title={Vampire Duck}}
+\begin{tikzpicture}
+ \duck[vampire=white]
+\end{tikzpicture}
+\begin{tikzpicture}
+ \duck[laughing, vampire=white]
+\end{tikzpicture}
+\end{tcblisting}
+
+\begin{tcblisting}{title={Overleaf Duck\footnote{added to celebrate that \tikzducks are now also available on overleaf, see \url{https://www.overleaf.com/blog/tex-live-upgrade-september-2019}}}}
+\begin{tikzpicture}
+ \duck[overleaf]
+\end{tikzpicture}
+\end{tcblisting}
+
\section{Random ducks}
With all these available accessories it might be hard to decide which one to choose, but don't worry the \tikzducks provide a solution for this dilemma, the random duck, or short \saminline|\randuck|, which automatically creates a duck with a randomly chosen accessories and something on top of the head (hair, a hat, ears, alien antenna ...)
@@ -932,7 +899,7 @@
\end{tikzpicture}
\end{tcblisting}
-In case the duck should not be completely random, but only some of the random elements are desired, these can be accessed independently by using \saminline|\randomhead| and \saminline|\randomaccessories| for a random headpiece and a random accessories, respectively. Small caveat: Before using \saminline|\randomhead| or \saminline|\randomaccessories|, \saminline|\shuffleducks| has to be used to provide the random items (for \saminline|\randuck| this is done automatically).
+In case the duck should not be completely random, but only some of the random elements are desired, these can be accessed independently by using \saminline|\randomhead| and \saminline|\randomaccessories| for a random headpiece and a random accessories, respectively. Small caveat: Before using \saminline|\randomhead| or \saminline|\randomaccessories|, \saminline|\shuffleducks| has to be used to provide the random items (for \saminline|\randuck| this is done automatically).
\begin{tcblisting}{title={Random head gear and accessories}}
\begin{tikzpicture}
@@ -965,8 +932,8 @@
\begin{tikzpicture}
\duck
\path[preaction={fill, red!50!black},
- pattern=fivepointed stars,
- pattern color=yellow]
+ pattern=fivepointed stars,
+ pattern color=yellow]
\duckpathlonghair;
\end{tikzpicture}
\end{tcblisting}
@@ -975,15 +942,15 @@
\begin{samcode}
\duckpathbody, \duckpathgrumpybill, \duckpathbill, \duckpathtshirt,
-\duckpathjacket,\duckpathcape, \duckpathshorthair, \duckpathlonghair,
-\duckpathcrazyhair, \duckpathrecedinghair, \duckpathcrown,
-\duckpathmohican, \duckpathmullet, \duckpathqueencrown,
+\duckpathjacket,\duckpathcape, \duckpathshorthair, \duckpathlonghair,
+\duckpathcrazyhair, \duckpathrecedinghair, \duckpathcrown,
+\duckpathmohican, \duckpathmullet, \duckpathqueencrown,
\duckpathkingcrown, \duckpathdarthvader, \duckpathhorsetail
\end{samcode}
In case one of the other shapes is needed, please have a look at the package source code, which can be found in \saminline|tikzducks.sty|.
-To ease the placement of further accessories, some particular spots of the duck are marked with \TikZ coordinates, namely the \saminline|wing|, \saminline|head|, \saminline|bill| and \saminline|tail|.
+To ease the placement of further accessories, some particular spots of the duck are marked with \TikZ coordinates, namely the \saminline|wing|, \saminline|head|, \saminline|bill| and \saminline|tail|.
{
\footnotesize\ttfamily
@@ -1010,18 +977,22 @@
\duck[name=bar,xshift=90pt,
scale=.3,yshift=150pt]
\draw (foo-wing) -- (bar-wing);
-\end{tikzpicture}
+\end{tikzpicture}
\end{tcblisting}
-Sometimes it might desirable to add things at a specific z-position, for example re-draw a t-shirt with some pattern that should be below the duck's hair and accessories. To facilitate this the \tikzducks provide a couple of hooks: \saminline|\duckhookbackground|, \saminline|\duckhookbody|, \saminline|\duckhookclothing|, \saminline|\duckhookhair|, \saminline|\duckhookhat| and \saminline|\duckhookforeground|.
+Sometimes it might desirable to add things at a specific z-position, for example re-draw a t-shirt with some pattern that should be below the duck's hair and accessories. To facilitate this the \tikzducks provide a couple of hooks:
+\begin{samcode}
+\duckhookbackground, \duckhookbody, \duckhookclothing, \duckhookhair, \duckhookhat, \duckhookforeground
+\end{samcode}
+
\begin{center}
-\footnotesize\ttfamily \textbackslash duckhook\dots
+\texttt{\textbackslash duckhook}\dots
- \begin{tikzpicture}
+ \begin{tikzpicture}[scale=1.59]
\newcommand{\planes}{\fill[gray!20!white,opacity=0.9] (-0.1,-0.1) rectangle (2.4,2.4);}
\newcommand{\hooks}{\draw[themecolor, rounded corners=3pt, line width=1pt] (-0.1,-0.1) rectangle (2.4,2.4);}
- \node[font=\footnotesize\ttfamily] at (-0.8,-1.4) {\strut background};
+ \node[font=\ttfamily] at (-0.8,-1.4) {\strut background};
\begin{scope}[canvas is zy plane at x=0]
\hooks
\end{scope}
@@ -1029,15 +1000,15 @@
\planes
\duck
\end{scope}
- \node[font=\footnotesize\ttfamily] at (0.8,-1.4) {\strut body};
+ \node[font=\ttfamily] at (0.8,-1.4) {\strut body};
\begin{scope}[canvas is zy plane at x=1.6]
\hooks
\end{scope}
\begin{scope}[canvas is zy plane at x=2.4]
\planes
- \duck[invisible,jacket=black!50!gray]
+ \duck[invisible,jacket=black!50!gray]
\end{scope}
- \node[font=\footnotesize\ttfamily] at (2.4,-1.4) {\strut clothing};
+ \node[font=\ttfamily] at (2.4,-1.4) {\strut clothing};
\begin{scope}[canvas is zy plane at x=3.2]
\hooks
\end{scope}
@@ -1045,7 +1016,7 @@
\planes
\duck[invisible,longhair=red!80!black]
\end{scope}
- \node[font=\footnotesize\ttfamily] at (4.0,-1.4) {\strut hair};
+ \node[font=\ttfamily] at (4.0,-1.4) {\strut hair};
\begin{scope}[canvas is zy plane at x=4.8]
\hooks
\end{scope}
@@ -1053,7 +1024,7 @@
\planes
\duck[invisible,witch=black!50!gray];
\end{scope}
- \node[font=\footnotesize\ttfamily] at (5.6,-1.4) {\strut hat};
+ \node[font=\ttfamily] at (5.6,-1.4) {\strut hat};
\begin{scope}[canvas is zy plane at x=6.4]
\hooks
\end{scope}
@@ -1061,7 +1032,7 @@
\planes
\duck[invisible,magicwand]
\end{scope}
- \node[font=\footnotesize\ttfamily] at (7.2,-1.4) {\strut foreground};
+ \node[font=\ttfamily] at (7.2,-1.4) {\strut foreground};
\begin{scope}[canvas is zy plane at x=8.0]
\hooks
\end{scope}
@@ -1074,8 +1045,8 @@
\begin{tikzpicture}
\begingroup
\newcommand{\duckhookclothing}{
- \path[pattern=fivepointed stars,
- pattern color=yellow]
+ \path[pattern=fivepointed stars,
+ pattern color=yellow]
\duckpathjacket;
}
\duck[witch=black!50!gray,
@@ -1083,17 +1054,15 @@
jacket=black!50!gray,
magicwand]
\endgroup
-\end{tikzpicture}
+\end{tikzpicture}
\end{tcblisting}
-\clearpage
\section{Football ducks -- contributed by Carla Maggi}
\label{sec:footballducks}
\tikzducks are huge sports fans! They do a lot of different sports themselves (see all the piece of sports equipment amongst the accessories), but to cheer their favourite teams, they need suitable fan clothing. In \href{https://tex.stackexchange.com/a/387126/36296}{The Duck Pond} Carla Maggi was so kind to contribute the necessary code to dress the ducks in their team's colours.
-\addtocounter{footnote}{1}
-A (non-representative) survey$^{\thefootnote}$\footnotetext[\thefootnote]{see the selection of jerseys in \url{https://tex.stackexchange.com/a/387126/36296}} showed that most sports jerseys can be emulated by drawing stripes of various colours, sizes and orientations -- and this is exactly what the \saminline|stripes| macro does, drawing stripes across the shape of the duck's jacket. In order to preserve the whole flexibility of this powerful macro, it was integrated as an independent command into the \tikzducks package, this means it can simply be used on top of a drawn duck:
+A (non-representative) survey\footnote{see the selection of jerseys in \url{https://tex.stackexchange.com/a/387126/36296}} showed that most sports jerseys can be emulated by drawing stripes of various colours, sizes and orientations -- and this is exactly what the \saminline|stripes| macro does, drawing stripes across the shape of the duck's jacket. In order to preserve the whole flexibility of this powerful macro, it was integrated as an independent command into the \tikzducks package, this means it can simply be used on top of a drawn duck:
\begin{tcblisting}{title={\texttt{stripes} macro}}
\begin{tikzpicture}
@@ -1112,17 +1081,18 @@
Not all teams wear vertically stripped jerseys, therefore many parameters can be adjusted to best emulate your favourite teams jerseys. The available options are:
+\nopagebreak[4]
\begin{tabular}{@{}ll@{}}
- \saminline|color| & colour of the stripes, default:
+ \saminline|color| & colour of the stripes, default:
\saminline|black| \\
- \saminline|distance| & periodicity length of the stripes, default:
+ \saminline|distance| & periodicity length of the stripes, default:
\saminline|0.3| \\
- \saminline|width| & stripe width, default: \saminline|0.15| \\
- \saminline|height| & length of the stripes, default:
+ \saminline|width| & stripe width, default: \saminline|0.15| \\
+ \saminline|height| & length of the stripes, default:
\saminline|2.7| \\
- \saminline|initialx| & x coordinate of staring point, default:
+ \saminline|initialx| & x coordinate of staring point, default:
\saminline|0.1| \\
- \saminline|initialy| & y coordinate of staring point, default:
+ \saminline|initialy| & y coordinate of staring point, default:
\saminline|-0.3| \\
\saminline|rotate| & rotation angle in degree, default:
\saminline|-10|\\
@@ -1146,7 +1116,7 @@
\duck[stripes={\stripes[width=0.03]}]
\end{tikzpicture}
-\begin{tikzpicture}
+\begin{tikzpicture}
\duck[stripes={\stripes[emblem={
\includegraphics[width=.3cm]{example-image-a}
}]}]
@@ -1172,10 +1142,10 @@
For more complex or multicoloured designs the stripes can easily be stacked on top of each other:
\begin{tcblisting}{title={multicoloured \texttt{stripes}}}
-\begin{tikzpicture}
+\begin{tikzpicture}
\duck[tshirt=red, stripes={
\stripes[color=yellow, width=0.1]
- \stripes[color=orange, width=0.1,
+ \stripes[color=orange, width=0.1,
initialx=0.0]}]
\end{tikzpicture}
\end{tcblisting}
@@ -1191,7 +1161,7 @@
\end{tcblisting}
\begin{tcblisting}{title={Juve duck}}
-\begin{tikzpicture}
+\begin{tikzpicture}
\duck[tshirt=black,
stripes={\stripes[color=white]},
football]
@@ -1208,7 +1178,7 @@
\begin{tcblisting}{title={M\"{o}nchengladbach duck}}
\definecolor{mggreen}{RGB}{37,166,89}%
-\begin{tikzpicture}
+\begin{tikzpicture}
\duck[tshirt=mggreen,
stripes={\stripes},football]
\end{tikzpicture}
@@ -1216,8 +1186,8 @@
\begin{tcblisting}{title={Palmeiras duck}}
\definecolor{verdep}{RGB}{0,100,55}%
-\begin{tikzpicture}
- \duck[tshirt=green,jacket=verdep,football]
+\begin{tikzpicture}
+ \duck[tshirt=green,jacket=verdep,football]
\end{tikzpicture}
\end{tcblisting}
@@ -1224,11 +1194,11 @@
\begin{tcblisting}{title={Cagliari duck}}
\definecolor{rossocagliari}{RGB}{149,20,38}%
\definecolor{blucagliari}{RGB}{23,52,84}%
-\begin{tikzpicture}
- \duck[tshirt=white,
+\begin{tikzpicture}
+ \duck[tshirt=white,
jacket=blucagliari,
stripes={
- \stripes[color=rossocagliari,
+ \stripes[color=rossocagliari,
width=0.46, distance=3]},
football]
\end{tikzpicture}
@@ -1235,12 +1205,12 @@
\end{tcblisting}
\begin{tcblisting}{title={Sampdoria duck}}
-\begin{tikzpicture}
+\begin{tikzpicture}
\duck[tshirt=blue, jacket=blue,stripes={
\stripes[color=white,rotate=-90,
- width=0.6,distance=1]
+ width=0.6,distance=1]
\stripes[color=red,rotate=-90,
- width=0.2,distance=1.2]
+ width=0.2,distance=1.2]
\stripes[color=black,rotate=-90,
width=0.1,distance=1.3]
},football]
@@ -1248,13 +1218,13 @@
\end{tcblisting}
\begin{tcblisting}{title={Brescia duck}}
-\begin{tikzpicture}
+\begin{tikzpicture}
\duck[tshirt=blue, jacket=blue,stripes={
- \stripes[color=white, rotate=-70,
- width=0.22,distance=1.1,
+ \stripes[color=white, rotate=-70,
+ width=0.22,distance=1.1,
initialy=0.01]
- \stripes[color=white, rotate=40,
- width=0.2, distance=1.8,
+ \stripes[color=white, rotate=40,
+ width=0.2, distance=1.8,
initialy=1.0,initialx=0.285]
},football]
\end{tikzpicture}
@@ -1262,7 +1232,7 @@
\section{Examples}
-To see more examples of what can be done with the \tikzducks, you are invited to visit \url{https://github.com/samcarter/tikzducks}.
+To see more examples of what can be done with the \tikzducks, you are invited to visit \url{https://github.com/samcarter/tikzducks}.
If you have created a duck you would like to share with the community, I would be happy to add it to this collection, just make a pull request or open an issue in the bug tracking system.
Modified: trunk/Master/texmf-dist/tex/generic/tikzducks/t-tikzducks.mkiv
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tikzducks/t-tikzducks.mkiv 2024-04-27 19:56:03 UTC (rev 71097)
+++ trunk/Master/texmf-dist/tex/generic/tikzducks/t-tikzducks.mkiv 2024-04-27 19:56:35 UTC (rev 71098)
@@ -14,7 +14,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Code for this ConTeXt User Module kindly provided by @JairoAdelRio https://github.com/samcarter/tikzducks/pull/25
-\writestatus{loading}{ConTeXt User Module / TikZDucks 2024/04/19 version v1.7 Draw rubber ducks in TikZ}
+\writestatus{loading}{ConTeXt User Module / TikZDucks 2024/04/27 version v1.8 Draw rubber ducks in TikZ}
\setupcolors[state=start]
\usemodule[tikz]
Modified: trunk/Master/texmf-dist/tex/generic/tikzducks/tikzducks.sty
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tikzducks/tikzducks.sty 2024-04-27 19:56:03 UTC (rev 71097)
+++ trunk/Master/texmf-dist/tex/generic/tikzducks/tikzducks.sty 2024-04-27 19:56:35 UTC (rev 71098)
@@ -12,7 +12,7 @@
% See http://www.latex-project.org/lppl.txt
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\ProvidesPackage{tikzducks}[2024/04/19 version v1.7 Draw rubber ducks in TikZ]
+\ProvidesPackage{tikzducks}[2024/04/27 version v1.8 Draw rubber ducks in TikZ]
\RequirePackage{expl3}
\RequirePackage{tikz}
Modified: trunk/Master/tlpkg/tlpsrc/tikzducks.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/tikzducks.tlpsrc 2024-04-27 19:56:03 UTC (rev 71097)
+++ trunk/Master/tlpkg/tlpsrc/tikzducks.tlpsrc 2024-04-27 19:56:35 UTC (rev 71098)
@@ -0,0 +1,3 @@
+depend pgf
+depend iftex
+depend epstopdf-pkg
More information about the tex-live-commits
mailing list.