diff options
author | Karl Berry <karl@freefriends.org> | 2020-01-03 22:15:44 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-01-03 22:15:44 +0000 |
commit | 82b4ea140835f4a222bf33969065de43c75dd5a2 (patch) | |
tree | 036f16c02bbfe28c69817eb6f2b23900e74f92d8 /Master/texmf-dist/doc | |
parent | 4bfb02eb16018b2a9105dc3439cccaca07ad0ff5 (diff) |
tikzducks (3jan20)
git-svn-id: svn://tug.org/texlive/trunk@53312 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc')
-rw-r--r-- | Master/texmf-dist/doc/latex/tikzducks/README.md | 26 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/tikzducks/tikzducks-doc.pdf | bin | 561804 -> 439733 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/tikzducks/tikzducks-doc.tex | 451 |
3 files changed, 90 insertions, 387 deletions
diff --git a/Master/texmf-dist/doc/latex/tikzducks/README.md b/Master/texmf-dist/doc/latex/tikzducks/README.md index 50f28440357..248ed49d42f 100644 --- a/Master/texmf-dist/doc/latex/tikzducks/README.md +++ b/Master/texmf-dist/doc/latex/tikzducks/README.md @@ -1,29 +1,11 @@ -# Tikzducks +# TikZducks -This is a little LaTeX package for ducks to be used in TikZ pictures. The project is a continuation of https://tex.stackexchange.com/a/347458/36296 +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) This project is licensed under the LaTeX Project Public License v1.3c or later, see http://www.latex-project.org/lppl.txt -The project repository, including a bug tracker, can be found at https://github.com/samcarter/tikzducks/issues - -![This repository has an official duck seal of approval](https://i.stack.imgur.com/mSAtL.png) - ## A few examples: -![tikz ducks](https://user-images.githubusercontent.com/8226363/33049537-e71e9dd0-ce60-11e7-8b4c-7e1de0177f14.png) - -## Video showcases - -There are several videos featuring the TikZducks, kindly contributed by Ulrike and Gert Fischer, Carla Maggi, Paulo Cereda and Prof. van Duck - many thanks to you all! - -[![The great TikZducks Christmas Extravaganza 2017](https://user-images.githubusercontent.com/8226363/43651585-1281b074-9743-11e8-97f5-bf70617738a5.png)](https://vimeo.com/246256860) -[![International Pizza Day](https://user-images.githubusercontent.com/8226363/43651587-12c92daa-9743-11e8-83b5-7fd3a3ac19a3.png)](https://vimeo.com/254643482) -[![Happy Groundhog Day](https://user-images.githubusercontent.com/8226363/43651589-12e84334-9743-11e8-9621-d5e6e53a0ca8.png)](https://vimeo.com/252719006) -[![Aquarela with TikZducks](https://user-images.githubusercontent.com/8226363/43651586-12a6c008-9743-11e8-99d2-5a66e7f5f1ee.png)](https://vimeo.com/270727100) -[![Saint Crispin's Day](https://user-images.githubusercontent.com/43832342/47496794-37d18600-d858-11e8-9e6e-777ffee1acdc.png)](https://vimeo.com/295353434) -[![James Bond](https://user-images.githubusercontent.com/43832342/47496795-37d18600-d858-11e8-8c0c-20ea2d0a23cd.png)](https://vimeo.com/284348495) -[![The great TikZlings Christmas Extravaganza 2018](https://user-images.githubusercontent.com/43832342/49704004-3cd27500-fc0d-11e8-9002-319a8e71aca7.png)](https://vimeo.com/305374856) - - +![tikz ducks](https://user-images.githubusercontent.com/43832342/71718547-d160d400-2e1b-11ea-8bae-39cc4b648771.png) -The source code for the "The great TikZducks Christmas Extravaganza 2017" is available in https://github.com/cereda/duck-extravaganza, for "The great TikZlings Christmas Extravaganza 2018" it can be found at https://github.com/samcarter/Extravanganza2018 . +More examples of TikZducks can be seen at https://github.com/samcarter/tikzducks/
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/tikzducks/tikzducks-doc.pdf b/Master/texmf-dist/doc/latex/tikzducks/tikzducks-doc.pdf Binary files differindex ba529426bbb..cbcdb1bb3af 100644 --- a/Master/texmf-dist/doc/latex/tikzducks/tikzducks-doc.pdf +++ b/Master/texmf-dist/doc/latex/tikzducks/tikzducks-doc.pdf diff --git a/Master/texmf-dist/doc/latex/tikzducks/tikzducks-doc.tex b/Master/texmf-dist/doc/latex/tikzducks/tikzducks-doc.tex index afc66143077..34de5f9863a 100644 --- a/Master/texmf-dist/doc/latex/tikzducks/tikzducks-doc.tex +++ b/Master/texmf-dist/doc/latex/tikzducks/tikzducks-doc.tex @@ -10,9 +10,6 @@ % Released under the LaTeX Project Public License v1.3c or later % See http://www.latex-project.org/lppl.txt % -% Version 1.1 -% April 7, 2019 -% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \documentclass[parskip=half]{scrartcl} @@ -24,7 +21,7 @@ \usepackage{tikzducks} \usetikzlibrary{ducks} \usepackage[most]{tcolorbox} -\usepackage[paper=a4paper,margin=3cm]{geometry} +\usepackage[paper=a4paper,margin=3cm,foot=2cm]{geometry} \usepackage{url} \usepackage{xspace} \usepackage{scrlayer-scrpage} @@ -56,7 +53,7 @@ commentstyle={\color{green!50!black}\slshape}, columns=fullflexible, emphstyle=\color{orange!70!black}, - emph=[1]{water,body,head,eye,pupil,bill,grumpy,tshirt,jacket,tie,cape,shorthair,longhair,crazyhair,recedinghair,eyebrow,beard,glasses,sunglasses,alien,hat,cap,santa,chef,cheese,graduate,tassel,beret,crown,unicorn,icecream,flavoura,flavourb,flavourc,book,bookcolour,signpost,signcolour,signback,magichat,magicstars,magicwand,witch,cricket,rollingpin,lightsaber,torch,cake,pizza,hockey,baguette,wing,football,mask,bunny,inear,necklace,milkshake,wine,peakedcap,prison,tophat,speech,bubblecolour,think,buttons,sheep,squareglasses,tail,basket,easter,egga,eggb,eggc,mohican,mullet,horsetail,darthvader,crozier,queencrown,kingcrown,wing,laughing,parrot,stethoscope,niuqelrah,harlequin,neckerchief,woggle,snowduck,invisible,strawhat,ribbon,vampire,parting,crystalball,helmet,shovel,pickaxe,bowtie,lapel,umbrella,umbrellaclosed,handbag,cocktail,viking,devil}, + emph=[1]{water,body,head,eye,pupil,bill,grumpy,tshirt,jacket,tie,cape,shorthair,longhair,crazyhair,recedinghair,eyebrow,beard,glasses,sunglasses,alien,hat,cap,santa,chef,cheese,graduate,tassel,beret,crown,unicorn,icecream,flavoura,flavourb,flavourc,book,bookcolour,signpost,signcolour,signback,magichat,magicstars,magicwand,witch,cricket,rollingpin,lightsaber,torch,cake,pizza,hockey,baguette,wing,football,mask,bunny,inear,necklace,milkshake,wine,peakedcap,prison,tophat,speech,bubblecolour,think,buttons,sheep,squareglasses,tail,basket,easter,egga,eggb,eggc,mohican,mullet,horsetail,darthvader,crozier,queencrown,kingcrown,wing,laughing,parrot,stethoscope,niuqelrah,harlequin,neckerchief,woggle,snowduck,invisible,strawhat,ribbon,vampire,parting,crystalball,helmet,shovel,pickaxe,bowtie,lapel,umbrella,umbrellaclosed,handbag,cocktail,viking,devil,aodai,conicalhat,overleaf}, texcsstyle=*\color{duckblue}\bfseries, keywordstyle=\color{red!60!black}\bfseries, morekeywords={tikzpicture,picture,scope,patterns,calc,pgfinterruptboundingbox}, @@ -86,7 +83,7 @@ \pgfkeys{/duck/|stripes|/.style={stripes={#1}}} \pgfmathsetseed{2} -\setlength{\footheight}{45pt} +\setlength{\footheight}{41pt} \newlength{\duckoffset} \cfoot{% @@ -119,7 +116,7 @@ \url{https://github.com/samcarter/tikzducks}\\ \url{https://www.ctan.org/pkg/tikzducks} }{samcarter}} -\date{Version 1.1 -- \today} +\date{Version v1.3 \textendash{} 2020/01/03} \begin{document} \maketitle @@ -156,7 +153,9 @@ Andrew Stacey contributed the \TikZ Library ``ducks'', % \href{https://tex.stackexchange.com/users/148434/mihikma}{Mihikma} created the duck's beard, % -\href{https://github.com/yudai-nkt}{Yudai Nakata} helped with problems of \lstinline|\pdfrandomseed| +\href{https://github.com/yudai-nkt}{Yudai Nakata} helped with problems of \lstinline|\pdfrandomseed|, +% +@marmot for his seemingly infinite knowledge of \TikZ which he shared with the world on TeX.SE % and last but not least my thanks go to \href{https://tex.stackexchange.com/users/5763/martin-schr%c3%b6der}{Martin Schr\"oder} for his feedback to the code review. @@ -167,10 +166,10 @@ The ducks mostly consist of basic geometric shapes drawn in \TikZ. Some of the m The \tikzducks package loads \TikZ, which in turn loads the \lstinline|xcolor| package (amongst others). If you require one of these packages to be loaded with some option, please consider loading it yourself before the \tikzducks package or use, e.g. -\begin{lstlisting}[aboveskip=0em,morekeywords={xcolor,svgnames}] +\begin{lstlisting}[morekeywords={xcolor,svgnames}] \PassOptionsToPackage{svgnames}{xcolor} \end{lstlisting} -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. +It also uses the \lstinline|\usetikzlibrary{patterns}| and \lstinline|\usetikzlibrary{calc}|. \subsection{License} @@ -246,6 +245,16 @@ To make the usage easier for the \TikZ-savvy users, Andrew Stacey contributed a \end{tikzpicture} \end{tcolorbox} +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] +\end{tikzpicture} +\end{tcblisting} + +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: { @@ -257,7 +266,6 @@ For the \TeX{} purists, there is also a picture mode variant: \end{tcblisting} } -\clearpage \subsection{Body parts} The various parts of the duck can also be coloured independently, i.e.\ \lstinline|body|, \lstinline|head| or \lstinline|bill|: @@ -300,42 +308,50 @@ Furthermore using the keywords \lstinline|grumpy|, \lstinline|laughing| or \lsti \end{tikzpicture} \end{tcblisting} -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] -\end{tikzpicture} -\end{tcblisting} -This can also be useful to recycle some of the accessories presented in \ref{sec:accessories}. - -\clearpage \subsection{Hair styles} Some duck also like to have nice hair cuts, several different hair styles are available: -\begin{tcblisting}{title={Hairy duck},righthand width=9cm} + +\begin{tcblisting}{title={Long hair duck}} \begin{tikzpicture} \duck[longhair] \end{tikzpicture} +\end{tcblisting} + +\begin{tcblisting}{title={Short hair duck}} \begin{tikzpicture} \duck[shorthair] \end{tikzpicture} +\end{tcblisting} + +\begin{tcblisting}{title={Parting hair duck}} +\begin{tikzpicture} + \duck[parting] +\end{tikzpicture} +\end{tcblisting} + +\begin{tcblisting}{title={Crazy hair duck}} \begin{tikzpicture} \duck[crazyhair] \end{tikzpicture} +\end{tcblisting} +\begin{tcblisting}{title={Receding hair duck}} \begin{tikzpicture} \duck[recedinghair] \end{tikzpicture} +\end{tcblisting} + +\begin{tcblisting}{title={Mohican duck}} \begin{tikzpicture} \duck[mohican] \end{tikzpicture} -\begin{tikzpicture} - \duck[mullet] -\end{tikzpicture} +\end{tcblisting} +\begin{tcblisting}{title={Mullet duck}} \begin{tikzpicture} - \duck[parting] + \duck[mullet] \end{tikzpicture} \end{tcblisting} @@ -378,37 +394,52 @@ Please note that not all of the accessories, especially hats, shown in the follo \subsection{Clothing} -A respectable duck needs a suitable wardrobe. It can choose from a \lstinline|tshirt|, a \lstinline|jacket|, a \lstinline|tie| or a \lstinline|bowtie|. In it's infinite wardrobe these items are available in all colours definable in the current colour model. +A respectable duck needs a suitable wardrobe. It can choose from several different garments. In it's infinite wardrobe these items are available in all colours definable in the current colour model. -\begin{tcblisting}{title={Dressed duck}} +\begin{tcblisting}{title={T-shirt duck}} \begin{tikzpicture} - \duck[tshirt] + \duck[tshirt=red] \end{tikzpicture} +\end{tcblisting} + +\begin{tcblisting}{title={Jacket duck}} \begin{tikzpicture} - \duck[jacket] + \duck[jacket=blue] \end{tikzpicture} +\end{tcblisting} +\begin{tcblisting}{title={Tie duck}} \begin{tikzpicture} - \duck[tie] + \duck[tshirt, + jacket=gray, + tie] \end{tikzpicture} +\end{tcblisting} + +\begin{tcblisting}{title={Bowtie duck}} \begin{tikzpicture} - \duck[bowtie] + \duck[tshirt, + jacket=gray, + bowtie] \end{tikzpicture} +\end{tcblisting} +\begin{tcblisting}{title={Áo dài duck}} \begin{tikzpicture} - \duck[cape] + \duck[tshirt=cyan, + aodai=blue!50!black + ] \end{tikzpicture} +\end{tcblisting} + +\begin{tcblisting}{title={Cape duck}} \begin{tikzpicture} - \duck[tshirt=lightgray, - jacket=blue!50!black, - tie=blue!80!black, - shorthair] + \duck[cape] \end{tikzpicture} \end{tcblisting} For more ways to customise the clothing also have a look at the \hyperref[sec:footballducks]{football ducks in Section \ref{sec:footballducks}}. -\clearpage \subsection{Accessories} \label{sec:accessories} @@ -450,6 +481,12 @@ There is a multitude of things a duck might need. The following examples all als \end{tikzpicture} \end{tcblisting} +\begin{tcblisting}{title={Conical hat duck}} +\begin{tikzpicture} + \duck[conicalhat=brown] +\end{tikzpicture} +\end{tcblisting} + \begin{tcblisting}{title={Santa Duck}} \begin{tikzpicture} \duck[santa=red!80!black, @@ -846,6 +883,14 @@ There is a multitude of things a duck might need. The following examples all als \end{tikzpicture} \end{tcblisting} +\addtocounter{footnote}{1} +\begin{tcblisting}{title={Overleaf Duck$^{\thefootnote}$}} +\begin{tikzpicture} + \duck[overleaf] +\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}} + \clearpage \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 \lstinline|\randuck|, which automatically creates a duck with a randomly chosen accessories and something on top of the head (hair, a hat, ears, alien antenna ...) @@ -920,7 +965,6 @@ To ease the placement of further accessories, some particular spots of the duck \end{tikzpicture} \end{tcblisting} } -An example making use this option are the \hyperref[starducks]{``Live long and prosper'' ducks}. To distinguish coordinates from multiple ducks in the same \lstinline|tikzpicture|, one can name the ducks using the option \lstinline[emph={name}]|name|. If this option is used, the coordinates are prefixed with the respective name and a dash: \lstinline|<name>-<coordinate>|. @@ -1095,336 +1139,13 @@ A few examples to see \lstinline|stripes| in action: \end{tikzpicture} \end{tcblisting} -In case your favourite team is missing from the above examples, feel free to create an example and share it with the community in \href{https://tex.stackexchange.com/q/387047/36296}{The Duck Pond}. - -\clearpage -\section{Showcase} - -\addtocounter{footnote}{1} -In the following a few examples of possible duck customisations, some of which will require additional packages (which are stated as a comment at the start of the code). For more examples (or to show your own creations) please visit \href{https://tex.stackexchange.com/q/387047/36296}{The Duck Pond} or have a look at \href{https://vimeo.com/246256860}{The Great Christmas Extravaganza}$^{\thefootnote}$\footnotetext[\thefootnote]{the source code is available at \url{https://github.com/cereda/duck-extravaganza}}. - -\begin{tcblisting}{title={\texttt{samcarter} duck}} -\begin{tikzpicture} - \duck[body=yellow!50!brown!50!white, - longhair=red!50!brown, - jacket=blue!50!black] -\end{tikzpicture} -\end{tcblisting} - -\begin{tcblisting}{title={Paulo duck}} -\begin{tikzpicture} - \duck[cap,cricket] -\end{tikzpicture} -\end{tcblisting} - -\begin{tcblisting}{title={Party duck}} -\begin{tikzpicture} - \duck[cake=violet, - magichat=violet, - magicstars=white!85!yellow] -\end{tikzpicture} -\end{tcblisting} - -\begin{tcblisting}{title={Brazil duck}} -\begin{tikzpicture} - \definecolor{brazilgreen}{RGB}{0,155,58}% - \definecolor{brazilyellow}{RGB}{254,223,0}% - \definecolor{brazilblue}{RGB}{0,39,118}% - \duck[body=brazilyellow, - shorthair=brazilgreen] - \path[preaction={fill, brazilblue},pattern=fivepointed stars, pattern color=white] - \duckpathjacket; -\end{tikzpicture} -\end{tcblisting} - -\begin{tcblisting}{title={Duck in black}} -\begin{tikzpicture} - \duck[grumpy, body=yellow!50!brown!50!white, tshirt=white, jacket=black, tie=black, hat=black, sunglasses=black] -\end{tikzpicture} -\end{tcblisting} - -\begin{tcblisting}{title={Prof.\ van Duck}} -\begin{tikzpicture} - \duck[body=yellow!50!brown!40!white, - crazyhair=gray!50!white, - eyebrow, - glasses=brown!70!black, - book=\scalebox{0.2}{$E=mc^2$}, - bookcolour=red!20!brown] -\end{tikzpicture} -\end{tcblisting} - -\begin{tcblisting}{title={Knuth duck}} -\begin{tikzpicture} - \duck[body=yellow!50!red!20!white, - recedinghair=gray!50!white, - eyebrow, - tshirt=white!93!black, - jacket=red!50!black, - glasses=brown!70!lightgray, - book=\scalebox{0.5}{\TeX}, - bookcolour=black!20!brown] -\end{tikzpicture} -\end{tcblisting} - -\begin{tcblisting}{title={May the Quack be with you}} -\begin{tikzpicture} - \colorlet{skin}{white!45!gray!80!green} - \duck[lightsaber, body=skin, bill=gray!80!green, - tshirt=brown!50!black, jacket=brown!30!gray] - \fill[skin,rounded corners=3] (0.44,1.70) -- (0.25,2) -- (0.6,1.95); - \fill[skin,rounded corners=3] (1.34,1.60) -- (1.53,1.9) -- (1.16,1.85); -\end{tikzpicture} - -\begin{tikzpicture} - \duck[grumpy,lightsaber=red,cape=black!85!white, - body=black!70!white,darthvader=black!85!white] -\end{tikzpicture} - -\begin{tikzpicture} - \fill[brown!70!black] (0.5,1.65) circle (0.25); - \duck[jacket=white!95!brown, body=brown!50!white, - shorthair=brown!70!black, lightsaber=cyan] - \fill[brown!70!black] (1.3,1.6) circle (0.25); -\end{tikzpicture} -\end{tcblisting} - -\begin{tcblisting}{title={Ghost duck}} -\colorlet{ghost}{white!98!gray}% -\begin{tikzpicture} -\duck[body=ghost,bill=ghost,prison=gray] -\fill[ghost,rotate=-17](-0.1,0.7) rectangle (0.15,1.3); -\fill[ghost,rotate=17] (1.6,0.7) rectangle (1.81,1.3); -\end{tikzpicture} -\end{tcblisting} - -\addtocounter{footnote}{1} -\begin{tcblisting}{title={67P/Churyumov-Gerasimenko duck$^{\thefootnote}$}} -\begin{tikzpicture}[path image/.style={path picture={\foreach \j in {0,...,2}{\node at (0,\j) {\foreach \i in {1,...,5}{\includegraphics[height=1cm]{#1}}};}}}] -\path (0.1,0.1) rectangle (2.1,2.12); -\begin{pgfinterruptboundingbox} -\path[path image=crinklepaper] - (0.90,1.50) ellipse (0.50 and 0.625); -\path[path image=crinklepaper] \duckpathbody; -\fill[gray!80!white] \duckpathbill; -\fill[white!70!gray, rotate=-20] - (0.23,1.7675) ellipse (0.0893 and 0.125) - (-0.06,1.74) ellipse (0.0786 and 0.1143); -\fill[black, rotate=-20] - (0.26,1.7575) ellipse (0.0357 and 0.0714) - (-0.03,1.73) ellipse (0.0286 and 0.0643); -\end{pgfinterruptboundingbox} -\end{tikzpicture} -\end{tcblisting} -\footnotetext[\thefootnote]{If you try this at home, replace the \texttt{crinklepaper} with an image of the comet's surface, e.g. \url{https://arxiv.org/abs/1707.02945}} - -\begin{tcblisting}{title={With my username I had to...}} -%\usepackage{marvosym} -\definecolor{sgskin}{RGB}{222,197,159}% -\definecolor{sgblond}{RGB}{238,203,96}% -\colorlet{sggreen}{olive!50!black} -\colorlet{sgbill}{sgskin!85!black} -\colorlet{sgshirt}{sggreen!50!black} - -\begin{tikzpicture} - \duck[body=sgskin,bill=sgbill,tshirt=sgshirt,jacket=sggreen,cap=sggreen] -\end{tikzpicture} - -\begin{tikzpicture} - \duck[body=sgskin,bill=sgbill,tshirt=sgshirt,jacket=sggreen,shorthair=sgblond] -\end{tikzpicture} - -\begin{tikzpicture} - \duck[body=sgskin,bill=sgbill,tshirt=sgshirt,jacket=sggreen,parting=brown!70!black,glasses=brown!30!gray, book={\AA}, bookcolour=brown!50!black] -\end{tikzpicture} - -\begin{tikzpicture} - \duck[body=brown!80!black,bill=brown!65!black,tshirt=sgshirt,jacket=sggreen,grumpy] - \fill[sgblond, rotate=-10] (0.45,2.0) ellipse (0.12 and 0.05); - \node[rotate=170] at (0.8,1.89) {\scalebox{0.35}{\Leo}}; -\end{tikzpicture} -\end{tcblisting} - - -\begin{tcblisting}{title={Live long and prosper},label=starducks} -%\usepackage{fontawesome} -\definecolor{unigold}{RGB}{203,157,52}% -\definecolor{uniblue}{RGB}{46,114,167}% -\definecolor{unired}{RGB}{177,49,34}% - -\definecolor{skink}{RGB}{245,206,193}% -\definecolor{skins}{RGB}{255,222,151}% -\definecolor{skinu}{RGB}{146,113,96}% - -\newcommand*{\insignia}{\node[rotate=15] at (wing) {\color{yellow!80!brown}\faLocationArrow};} - -\begin{tikzpicture} -\duck[tshirt=black!60!gray, jacket=unigold, body=skink, shorthair=brown!80!black, bill=skink!60!gray] -\insignia -\end{tikzpicture} - -\begin{tikzpicture} -\duck[tshirt=black!60!gray, jacket=uniblue, body=skins, mullet=black!60!brown, bill=skins!60!gray] -\fill[skins,rotate=175, xshift=-46, yshift=-74] (0.45,1.20)--(0.50,0.80)--(0.65,1.20); -\fill[black!60!brown, rounded corners=1, rotate=70] (1.85,0.13) rectangle (1.91,-0.05); -\fill[black!60!brown, rounded corners=1, rotate=90] (1.7,-0.75) rectangle (1.76,-0.97); -\insignia -\end{tikzpicture} - -\begin{tikzpicture} -\duck[tshirt=black!60!gray, jacket=unired, body=skinu, longhair=black!60!brown, bill=skinu!70!black] -\insignia -\end{tikzpicture} -\end{tcblisting} - -\begin{tcblisting}{title={French duck}} -\begin{tikzpicture} -\duck[body=yellow!60!red!30!white,tshirt=white!90!yellow,|stripes|={\stripes[color=blue!70!black,rotate=-87,width=0.07,distance=0.12]},beret=blue!30!black,baguette=brown] -\end{tikzpicture} -\end{tcblisting} - -\begin{tcblisting}{title={Bee duck}} -\begin{tikzpicture} - \duck[|stripes|={\stripes[distance=0.4,width=0.2,rotate=0,initialx=0.15]},alien=black,laughing] -\end{tikzpicture} -\end{tcblisting} - -\begin{tcblisting}{title={Jailbird duck}} -\begin{tikzpicture} -\duck[peakedcap=gray!40!black,tshirt=white,stripes={ -\stripes[rotate=100,color=gray!40!black]},prison=gray] -\end{tikzpicture} -\end{tcblisting} - -\begin{tcblisting}{title={Super duck brothers}} -\newcommand{\superstripes}{\stripes[color=blue!80!black,width=3,height=1.0,rotate=5] \stripes[color=blue!80!black,width=0.1,rotate=0,distance=0.7,initialx=-1.1,height=2]} -\begin{tikzpicture} -\duck[tshirt=red!80!black,peakedcap=red!80!black,|stripes|={\superstripes}] -\fill[white] (0.8,2) circle (0.13); -\node[red!80!black,rotate=-25] at (0.8,2) {\scalebox{0.6}{\textsf{M}}}; -\end{tikzpicture} -\begin{tikzpicture} -\duck[tshirt=green!70!black,peakedcap=green!70!black, |stripes|={\superstripes}] -\fill[white] (0.8,2) circle (0.13); -\node[green!70!black,rotate=-25] at (0.8,2) {\scalebox{0.6}{\textsf{L}}}; -\end{tikzpicture} -\end{tcblisting} - -\begin{tcblisting}{title={Princess duck}} -\definecolor{pskin}{RGB}{255,200,184}% -\definecolor{phair}{RGB}{249,249,139}% -\begin{tikzpicture} -\duck[body=pskin!80!white,longhair=phair,tshirt=magenta!60!white,jacket=magenta!40!white,necklace=white!85!yellow] -\path (0.7,2) rectangle (1.4,2.55); -\fill[yellow!80!orange,rotate=-10,xshift=-11,yshift=5] \duckpathcrown; -\end{tikzpicture} -\end{tcblisting} - -\begin{tcblisting}{title={ZZZoro duck}} -\begin{tikzpicture} -\duck[cape=black,hat=black,mask=black] -\node[rotate=-5] at (0.4,0.7) {\tiny\fontfamily{pzc}\selectfont \textbackslash ZZZ}; -\fill[black,rotate=24] (0.1,0.21) rectangle (1.1,0.23) (1.2,0.22) ellipse (0.15 and 0.03) (1.08,0.22) ellipse (0.03 and 0.15); -\end{tikzpicture} -\end{tcblisting} - -\begin{tcblisting}{title={Farm animals}} -\definecolor{fskin}{RGB}{161,140,126}% -\definecolor{fbill}{RGB}{238,212,191}% -\definecolor{fhair}{RGB}{89,72,72}% -\begin{tikzpicture} -\duck[body=fskin,bill=fbill,shorthair=fhair,bunny,inear=fbill] -\node[fskin,rotate=45,scale=3] at (1.7,1.55) {\textsf{s}}; -\fill[fhair,rotate=45] (2.4,0.13) ellipse (0.15 and 0.07); -\end{tikzpicture} - -\begin{tikzpicture} -\duck[body=white!80!brown, bill=white!60!brown, bunny, longhair=white!60!brown] -\fill[white!60!brown] (tail) circle (0.2); -\end{tikzpicture} - -\begin{tikzpicture} -\duck[body=red!20!white,bill=red!30!white,shorthair=red!30!white,bunny=red!30!white,inear=red!30!white] -\node[red!20!white,rotate=25,scale=3] at (1.7,1.51) {\textsf{s}}; -\end{tikzpicture} - -\begin{tikzpicture} -\duck[body=white!80!brown, bill=white!60!brown, sheep] -\end{tikzpicture} - -\begin{tikzpicture} -\begin{scope}[yshift=-6] -\clip[rotate=-5] (0.68,2.38) ellipse (0.3 and 0.4); -\fill[brown,rotate=-5](0.28,2.26)ellipse (0.3 and 0.4); -\end{scope} -\duck[body=brown,mohican=brown!50!black,horsetail] -\begin{scope}[yshift=-5,xshift=1] -\clip[rotate=-5] (0.68,2.38) ellipse (0.3 and 0.4); -\fill[brown,rotate=-5](1.06,2.2) ellipse (0.3 and 0.4); -\end{scope} -\end{tikzpicture} -\end{tcblisting} - -\addtocounter{footnote}{1} -\begin{tcblisting}{title={Arara duck$^{\thefootnote}$}} -\begin{tikzpicture} -\duck[parrot,bill=gray!80!black] -\shade[left color=cyan!90!blue,right color=blue!70!black] \duckpathwing; -\shade[bottom color=yellow!70!brown, top color=green!40!teal] \duckpathcrazyhair; -\end{tikzpicture} -\end{tcblisting} -\footnotetext[\thefootnote]{In honour of the cool TeX automation tool arara, \url{https://github.com/cereda/arara}} - -\begin{tcblisting}{title={Duck Queen}} -\definecolor{qskin}{RGB}{225,219,206}% -\definecolor{qbill}{RGB}{170,123,154}% -\definecolor{qdress}{RGB}{184,209,206}% -\definecolor{qcrown}{RGB}{90,76,183}% -\begin{tikzpicture} -\duck[body=qskin,bill=qbill,jacket=qdress,tshirt=teal!30!qdress,shorthair=gray!60!white,necklace=gray!10!white,handbag=teal!30!qdress] -\fill[gray!60!white,rotate=-30] (0.27,1.23) rectangle (0.37,0.65); -\fill[qcrown,scale=0.23,rotate=-20,yshift=82,xshift=38] \duckpathqueencrown; -\fill[qcrown,yshift=3] \duckpathkingcrown; -\end{tikzpicture} -\end{tcblisting} - -\begin{tcblisting}{title={Duck, MD}} -\begin{tikzpicture} -\duck[parting=brown!70!black, squareglasses, - tshirt=teal!50!white, jacket=white, - buttons=gray!50!white, stethoscope] -\end{tikzpicture} -\end{tcblisting} - -\addtocounter{footnote}{1} -\begin{tcblisting}{title={Duck scout with ``šátek'' and ``turbánek''$^{\thefootnote}$}} -\begin{tikzpicture} -\duck[head=yellow!60!brown!50!white, - tshirt=brown!80!gray!40!white, - cap=orange!50!yellow, - neckerchief=orange!50!yellow, - woggle=brown, bookcolour=brown!80!black, - book={\tiny\sffamily\scalebox{0.3}{\parbox{1.1cm}{\centering Scouting\\for\\Ducklings}}}] -\end{tikzpicture} -\end{tcblisting} -\footnotetext[\thefootnote]{This is a very special duck, because yo' won the scout duck in the contest \href{https://tex.meta.stackexchange.com/q/7493/36296}{When will @egreg reach 654321}. In Czech, the neckerchief is called ``šátek'' and the woggle ``turbánek'', which means ``little turban''.} +\section{Examples} -\begin{tcblisting}{title={My name is Duck, James Duck}} -\begin{tikzpicture} -\duck[tshirt,lapel,jacket=gray!50!black,cocktail, - buttons,bowtie,parting=brown!50!black] -\end{tikzpicture} -\end{tcblisting} +To see more examples of what can be done with the \tikzducks, you are invited to visit \url{https://github.com/samcarter/tikzducks}. -\addtocounter{footnote}{1} -\begin{tcblisting}{title={Mary Duckings$^{\thefootnote}$}} -\begin{tikzpicture} -\duck[tshirt,bowtie=red!70!black,jacket=blue!50!black,umbrellaclosed=cyan!50!green,longhair=brown!60!black,hat=black] -\end{tikzpicture} -\end{tcblisting} -\footnotetext[\thefootnote]{following an idea from Paulo} +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. \clearpage \printindex -\end{document}
\ No newline at end of file +\end{document} |