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.tex89
1 files changed, 77 insertions, 12 deletions
diff --git a/Master/texmf-dist/doc/latex/tikzducks/tikzducks-doc.tex b/Master/texmf-dist/doc/latex/tikzducks/tikzducks-doc.tex
index 6407df30665..afc66143077 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 1.0
-% Nov 8, 2018
+% Version 1.1
+% April 7, 2019
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\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,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},
+ 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},
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,duckpathwing,shade},
+ morekeywords={tikzpicture,picture,scope,patterns,calc,pgfinterruptboundingbox},
+ moretexcs={duck,picduck,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]
@@ -119,7 +119,7 @@
\url{https://github.com/samcarter/tikzducks}\\
\url{https://www.ctan.org/pkg/tikzducks}
}{samcarter}}
-\date{Version 1.0 -- \today}
+\date{Version 1.1 -- \today}
\begin{document}
\maketitle
@@ -210,8 +210,6 @@ In addition to the keys defined in this package, all usual \TikZ and \lstinline|
\end{tikzpicture}
\end{tcblisting}
-Please note that a negative \lstinline|yscale| will result in awkward rounded corners and text placements for some of the accessories. If an upside-down duck is necessary, e.g. to illustrate the German nursery rhyme \href{https://de.wikipedia.org/wiki/Alle_meine_Entchen}{``Alle meine Entchen''}, please rotate the duck instead.
-
To make the usage easier for the \TikZ-savvy users, Andrew Stacey contributed a \TikZ library. It can be loaded with \lstinline|\usetikzlibrary{ducks}|. In addition to the normal functionality of the \tikzducks package, the ducks are now also available as \lstinline|pic|. A short example:
\begin{tcolorbox}[title={\TikZ library ``ducks''}]
@@ -248,6 +246,17 @@ To make the usage easier for the \TikZ-savvy users, Andrew Stacey contributed a
\end{tikzpicture}
\end{tcolorbox}
+For the \TeX{} purists, there is also a picture mode variant:
+
+{
+\setlength{\unitlength}{0.6mm}
+\begin{tcblisting}{title={\texttt{picture} mode duck}}
+\begin{picture}(42,44)
+ \picduck
+\end{picture}
+\end{tcblisting}
+}
+
\clearpage
\subsection{Body parts}
@@ -369,7 +378,7 @@ 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| and a \lstinline|tie|. 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 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.
\begin{tcblisting}{title={Dressed duck}}
\begin{tikzpicture}
@@ -383,10 +392,13 @@ A respectable duck needs a suitable wardrobe. It can choose from a \lstinline|ts
\duck[tie]
\end{tikzpicture}
\begin{tikzpicture}
- \duck[cape]
+ \duck[bowtie]
\end{tikzpicture}
\begin{tikzpicture}
+ \duck[cape]
+\end{tikzpicture}
+\begin{tikzpicture}
\duck[tshirt=lightgray,
jacket=blue!50!black,
tie=blue!80!black,
@@ -432,7 +444,6 @@ There is a multitude of things a duck might need. The following examples all als
\end{tikzpicture}
\end{tcblisting}
-
\begin{tcblisting}{title={Basecap duck}}
\begin{tikzpicture}
\duck[cap=red!80!black]
@@ -491,6 +502,18 @@ There is a multitude of things a duck might need. The following examples all als
\end{tikzpicture}
\end{tcblisting}
+\begin{tcblisting}{title={Viking duck}}
+\begin{tikzpicture}
+ \duck[viking=gray]
+\end{tikzpicture}
+\end{tcblisting}
+
+\begin{tcblisting}{title={Devil duck}}
+\begin{tikzpicture}
+ \duck[devil=red]
+\end{tikzpicture}
+\end{tcblisting}
+
\begin{tcblisting}{title={Unicorn duck}}
\begin{tikzpicture}
\duck[body=pink,
@@ -605,6 +628,12 @@ There is a multitude of things a duck might need. The following examples all als
\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{tcblisting}
+
\begin{tcblisting}{title={Book duck}}
\begin{tikzpicture}
\duck[book=\scalebox{0.5}{\TeX}]
@@ -725,6 +754,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={Cocktail duck}}
+\begin{tikzpicture}
+ \duck[cocktail]
+\end{tikzpicture}
+\end{tcblisting}
+
\begin{tcblisting}{title={Wing duck}}
\begin{tikzpicture}
\duck[wing=yellow!90!brown]
@@ -796,6 +831,21 @@ There is a multitude of things a duck might need. The following examples all als
\end{tikzpicture}
\end{tcblisting}
+\begin{tcblisting}{title={Umbrella Duck}}
+\begin{tikzpicture}
+ \duck[umbrella=cyan]
+\end{tikzpicture}
+\begin{tikzpicture}
+ \duck[umbrellaclosed=cyan]
+\end{tikzpicture}
+\end{tcblisting}
+
+\begin{tcblisting}{title={Handbag Duck}}
+\begin{tikzpicture}
+ \duck[handbag=red!70!black]
+\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 ...)
@@ -1331,7 +1381,7 @@ In the following a few examples of possible duck customisations, some of which w
\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]
+\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;
@@ -1359,6 +1409,21 @@ In the following a few examples of possible duck customisations, some of which w
\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''.}
+\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}
+
+\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}
+
\clearpage
\printindex