summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/tikzducks/tikzducks-doc.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/tikzducks/tikzducks-doc.tex')
-rw-r--r--Master/texmf-dist/doc/latex/tikzducks/tikzducks-doc.tex153
1 files changed, 129 insertions, 24 deletions
diff --git a/Master/texmf-dist/doc/latex/tikzducks/tikzducks-doc.tex b/Master/texmf-dist/doc/latex/tikzducks/tikzducks-doc.tex
index 24cff4cd179..c33d671ea9f 100644
--- a/Master/texmf-dist/doc/latex/tikzducks/tikzducks-doc.tex
+++ b/Master/texmf-dist/doc/latex/tikzducks/tikzducks-doc.tex
@@ -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.6
-% April 04, 2018
+% Version 0.7
+% July 10, 2018
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[parskip=half]{scrartcl}
@@ -56,11 +56,11 @@
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,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},
+ 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,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},
texcsstyle=*\color{duckblue}\bfseries,
keywordstyle=\color{red!60!black}\bfseries,
morekeywords={tikzpicture,scope,patterns,calc,pgfinterruptboundingbox},
- moretexcs={duck,path,definecolor,duckpathjacket,duckpathbody,duckpathgrumpybill,duckpathbill,duckpathtshirt,duckpathcape,duckpathshorthair,duckpathlonghair,duckpathcrazyhair,duckpathrecedinghair,duckpathcrown,scalebox,foreach,node,draw,PassOptionsToPackage,usetikzlibrary,selectcolormodel,colorlet,insignia,stripes,color,includegraphics,mcap,setboardfontcolors,setboardfontencoding,WhiteQueenOnWhite,WhiteKingOnWhite,superstripes,shuffleducks,randuck,randomhead,randomaccessories,duckpathmohican,duckpathmullet,duckpathqueencrown,duckpathkingcrown,duckpathdarthvader,duckpathhorsetail,tikzset},
+ moretexcs={duck,path,definecolor,duckpathjacket,duckpathbody,duckpathgrumpybill,duckpathbill,duckpathtshirt,duckpathcape,duckpathshorthair,duckpathlonghair,duckpathcrazyhair,duckpathrecedinghair,duckpathcrown,scalebox,foreach,node,draw,PassOptionsToPackage,usetikzlibrary,selectcolormodel,colorlet,insignia,stripes,color,includegraphics,mcap,setboardfontcolors,setboardfontencoding,WhiteQueenOnWhite,WhiteKingOnWhite,superstripes,shuffleducks,randuck,randomhead,randomaccessories,duckpathmohican,duckpathmullet,duckpathqueencrown,duckpathkingcrown,duckpathdarthvader,duckpathhorsetail,tikzset,duckpathwing,shade},
delim ={[s][\ttfamily\color{green!50!black}]{$}{$}},
moredelim=[is][\footnotesize\ttfamily\color{orange!70!black}]{|}{|},
index=[1][emph]
@@ -85,7 +85,7 @@
\lstset{style=duckstyle}
\pgfkeys{/duck/|stripes|/.style={stripes={#1}}}
-\pgfmathsetseed{10}
+\pgfmathsetseed{1}
\setlength{\footheight}{45pt}
\newlength{\duckoffset}
@@ -119,7 +119,7 @@
\url{https://github.com/samcarter8/tikzducks}\\
\url{https://www.ctan.org/pkg/tikzducks}
}{samcarter}}
-\date{Version 0.6 -- \today}
+\date{Version 0.7 -- \today}
\begin{document}
\maketitle
@@ -267,7 +267,7 @@ The various parts of the duck can also be coloured independently, i.e.\ \lstinli
\end{tikzpicture}
\end{tcblisting}
-Furthermore using the keyword \lstinline|grumpy| the shape of the bill can be changed:
+Furthermore using the keywords \lstinline|grumpy|, \lstinline|laughing| or \lstinline|parrot| the shape of the bill can be changed:
\begin{tcblisting}{title={Grumpy duck}}
\begin{tikzpicture}
@@ -278,31 +278,61 @@ Furthermore using the keyword \lstinline|grumpy| the shape of the bill can be ch
\end{tikzpicture}
\end{tcblisting}
+\begin{tcblisting}{title={Laughing duck}}
+\begin{tikzpicture}
+ \duck[laughing]
+\end{tikzpicture}
+\begin{tikzpicture}
+ \duck[laughing, bill=red]
+\end{tikzpicture}
+\end{tcblisting}
+
+\begin{tcblisting}{title={Parrot duck}}
+\begin{tikzpicture}
+ \duck[parrot]
+\end{tikzpicture}
+\begin{tikzpicture}
+ \duck[parrot, bill=blue]
+\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}}
+\begin{tcblisting}{title={Hairy duck},righthand width=9cm}
\begin{tikzpicture}
\duck[longhair]
\end{tikzpicture}
\begin{tikzpicture}
\duck[shorthair]
\end{tikzpicture}
-
\begin{tikzpicture}
\duck[crazyhair]
\end{tikzpicture}
+
\begin{tikzpicture}
\duck[recedinghair]
\end{tikzpicture}
-
\begin{tikzpicture}
\duck[mohican]
\end{tikzpicture}
\begin{tikzpicture}
\duck[mullet]
\end{tikzpicture}
+
+\begin{tikzpicture}
+ \duck[parting]
+\end{tikzpicture}
\end{tcblisting}
And of course the colour of each hair style can be adjusted:
@@ -314,18 +344,18 @@ And of course the colour of each hair style can be adjusted:
Eyebrows and a beard are also part of the package. The colour choice is more tricky for them -- if a colour is explicitly specified (\lstinline|eyebrow=<colour name>| or \lstinline|beard=<colour name>|) this colour is of course used, but if no colour is given, it first falls back to the hair colour and only if the duck does not have any hairs, the default colour is applied.
+\enlargethispage{2\baselineskip}
+
\begin{tcblisting}{title={Eye brow duck}}
\begin{tikzpicture}
\duck[eyebrow]
\end{tikzpicture}
\begin{tikzpicture}
- \duck[longhair=blue,
- eyebrow]
+ \duck[longhair=blue,eyebrow]
\end{tikzpicture}
\begin{tikzpicture}
- \duck[crazyhair=red,
- eyebrow=blue]
+ \duck[crazyhair=red,eyebrow=blue]
\end{tikzpicture}
\end{tcblisting}
@@ -401,6 +431,13 @@ There is a multitude of things a duck might need. The following examples all als
\end{tikzpicture}
\end{tcblisting}
+\begin{tcblisting}{title={Strawhat duck}}
+\begin{tikzpicture}
+ \duck[strawhat=brown!50!white, ribbon=gray]
+\end{tikzpicture}
+\end{tcblisting}
+
+
\begin{tcblisting}{title={Basecap duck}}
\begin{tikzpicture}
\duck[cap=red!80!black]
@@ -432,6 +469,13 @@ There is a multitude of things a duck might need. The following examples all als
\end{tikzpicture}
\end{tcblisting}
+\begin{tcblisting}{title={Harlequin duck}}
+\begin{tikzpicture}
+ \duck[harlequin=blue,
+ niuqelrah=red]
+\end{tikzpicture}
+\end{tcblisting}
+
\begin{tcblisting}{title={Crown duck}}
\begin{tikzpicture}
\duck[body=black!75!white,
@@ -538,7 +582,7 @@ There is a multitude of things a duck might need. The following examples all als
\addtocounter{footnote}{1}
\begin{tcblisting}{title={Speaking duck$^{\thefootnote}$}}
\begin{tikzpicture}
- \duck[speech={Bla},bubblecolour=cyan!20!white]
+ \duck[speech={Bla},bubblecolour=cyan!20!white,laughing]
\end{tikzpicture}
\end{tcblisting}
@@ -674,6 +718,12 @@ There is a multitude of things a duck might need. The following examples all als
\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={Wing duck}}
+\begin{tikzpicture}
+ \duck[wing=yellow!90!brown]
+\end{tikzpicture}
+\end{tcblisting}
+
\addtocounter{footnote}{1}
\begin{tcblisting}{title={Basket duck$^{\thefootnote}$}}
\begin{tikzpicture}
@@ -686,11 +736,42 @@ There is a multitude of things a duck might need. The following examples all als
\duck[bunny,easter]
\end{tikzpicture}
\begin{tikzpicture}
- \duck[bunny,easter=brown,egga=cyan,eggb=orange,eggc=teal]
+ \duck[bunny,easter=brown,
+ egga=cyan,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={Ducktor}}
+\begin{tikzpicture}
+ \duck[stethoscope=gray!80!black]
+\end{tikzpicture}
+\end{tcblisting}
+
+\begin{tcblisting}{title={Neckerchief duck}}
+\begin{tikzpicture}
+ \duck[neckerchief=red!70!black,
+ woggle=blue!60!black]
+\end{tikzpicture}
+\end{tcblisting}
+
+\addtocounter{footnote}{1}
+\begin{tcblisting}{title={Snow Duck$^{\thefootnote}$}}
+\begin{tikzpicture}
+ \duck[snowduck=white]
+\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}
+
\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 ...)
@@ -760,8 +841,8 @@ To ease the placement of further accessories, some particular spots of the duck
\fill[black] (tail) circle (0.04);
\node[xshift=15] at (wing) {Wing};
\node[xshift=15] at (head) {Head};
- \node[xshift=18] at (bill) {Bill};
- \node[xshift=15] at (tail) {Tail};
+ \node[xshift=18] at (bill) {Bill};
+ \node[xshift=15] at (tail) {Tail};
\end{tikzpicture}
\end{tcblisting}
}
@@ -1082,7 +1163,7 @@ In the following a few examples of possible duck customisations, some of which w
\end{tikzpicture}
\begin{tikzpicture}
- \duck[body=sgskin,bill=sgbill,tshirt=sgshirt,jacket=sggreen,shorthair=brown!70!black,glasses=brown!30!gray, book={\AA}, bookcolour=brown!50!black]
+ \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}
@@ -1132,7 +1213,7 @@ In the following a few examples of possible duck customisations, some of which w
\begin{tcblisting}{title={Bee duck}}
\begin{tikzpicture}
- \duck[|stripes|={\stripes[distance=0.4,width=0.2,rotate=0,initialx=0.15]},alien=black]
+ \duck[|stripes|={\stripes[distance=0.4,width=0.2,rotate=0,initialx=0.15]},alien=black,laughing]
\end{tikzpicture}
\end{tcblisting}
@@ -1212,12 +1293,15 @@ In the following a few examples of possible duck customisations, some of which w
\end{tikzpicture}
\end{tcblisting}
-\begin{tcblisting}{title={Frosty Duck}}
+\addtocounter{footnote}{1}
+\begin{tcblisting}{title={Arara duck$^{\thefootnote}$}}
\begin{tikzpicture}
-\duck[body=white,eye=white,tophat=black,buttons=black]
-\draw[very thick] (0.9,0.3) -- (1.2,1) (1.2,1) -- (1,1.3) (1.2,1) -- (1.3,1.3) (1.2,1) -- (1.5,1.4) (1.32,1.15) -- (1.6,1.3);
-\end{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}%
@@ -1236,6 +1320,27 @@ In the following a few examples of possible duck customisations, some of which w
\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''.}
+
\clearpage
\printindex