From d71a23f77ba5aa8ad94858efe8080b2cc100bb25 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 7 Apr 2019 21:21:35 +0000 Subject: tikzlings (7apr19) git-svn-id: svn://tug.org/texlive/trunk@50841 c570f23f-e606-0410-a88d-b1316a301751 --- .../doc/latex/tikzlings/tikzlings-doc.tex | 317 +++++++++++++++++++-- 1 file changed, 301 insertions(+), 16 deletions(-) (limited to 'Master/texmf-dist/doc/latex/tikzlings/tikzlings-doc.tex') diff --git a/Master/texmf-dist/doc/latex/tikzlings/tikzlings-doc.tex b/Master/texmf-dist/doc/latex/tikzlings/tikzlings-doc.tex index 162e211d4e8..11b06c3f7d5 100644 --- a/Master/texmf-dist/doc/latex/tikzlings/tikzlings-doc.tex +++ b/Master/texmf-dist/doc/latex/tikzlings/tikzlings-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.1 -% Nov 9, 2018 +% Version 0.2 +% April 7, 2019 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \documentclass[parskip=half]{scrartcl} @@ -95,16 +95,16 @@ emphstyle=\color{red!60!black}, emph=[1]{ tikzlings, - tikzlings-marmots, tikzlings-bears, tikzlings-coatis, tikzlings-koalas, tikzlings-marmots, tikzlings-owls, tikzlings-penguins, tikzlings-snowmans, tikzlings-mice, tikzlings-moles, tikzlings-sloths, - body, 3D, rotatehead, sideward, blush, sleeping, whiskers, teeth, shadow, askphil, leftstep, rightstep, eye, nose, pupil, bill, feet, belly, ask, phil, mouth, buttons, rotatearms, - scale, yshift, xshift, rotate, hands, muzzle, - hat, tophat, beret, strawhat, ribbon, harlequin, niuqelrah, witch, magichat, magicstars, crown, queencrown, kingcrown, santa, chef, graduate, tassel, alien, book, bookcolour, signpost, signcolour, signback, speech, think, bubblecolour, pizza, cheese, baguette, cake, icecream, flavoura, flavourb, flavourc, milkshake, wine, cricket, hockey, football, crystalball, magicwand, rollingpin, lightsaber, torch, basket, easter, egga, eggb, eggc, crozier, shovel, pickaxe, + tikzlings-marmots, tikzlings-bears, tikzlings-coatis, tikzlings-koalas, tikzlings-marmots, tikzlings-owls, tikzlings-penguins, tikzlings-snowmans, tikzlings-mice, tikzlings-moles, tikzlings-sloths, tikzlings-pigs, tikzlings-cats, tikzlings-hippos, tikzlings-rhinos, tikzlings-pandas, + body, 3D, rotatehead, sideward, blush, sleeping, whiskers, teeth, shadow, askphil, leftstep, rightstep, eye, nose, pupil, bill, feet, belly, ask, phil, mouth, buttons, rotatearms, eyes, paws, + scale, yshift, xshift, rotate, hands, muzzle, schroedinger, toes, + hat, tophat, beret, strawhat, ribbon, harlequin, niuqelrah, witch, magichat, magicstars, crown, queencrown, kingcrown, santa, chef, graduate, tassel, alien, book, bookcolour, signpost, signcolour, signback, speech, think, bubblecolour, pizza, cheese, baguette, cake, icecream, flavoura, flavourb, flavourc, milkshake, wine, cricket, hockey, football, crystalball, magicwand, rollingpin, lightsaber, torch, basket, easter, egga, eggb, eggc, crozier, shovel, pickaxe, umbrella, umbrellaclosed, handbag, cocktail, pupilwidth, }, texcsstyle=*\color{SteelBlue!50!black}\bfseries, keywordstyle=\color{red!60!black}\bfseries, morekeywords={tikzpicture}, moretexcs={ - usepackage, usetikzlibrary, marmot, coati, bear, koala, owl, penguin, thing, tikzling, snowman, mouse, moles, sloth, + usepackage, usetikzlibrary, marmot, coati, bear, koala, owl, penguin, thing, tikzling, snowman, mouse, moles, sloth, pig, cat, hippo, rhino, panda, }, delim ={[s][\ttfamily\color{green!50!black}]{$}{$}}, moredelim=[is][\footnotesize\ttfamily\color{orange!70!black}]{|}{|}, @@ -152,6 +152,26 @@ \end{scope}% \thing[#1]% } + +\renewcommand*{\cat}[1][]{% + \begin{scope}% + \tikzset{/cat/.cd,#1}% + \ifcat@schroedinger + \pgfmathparse{int(random(0,1))} + \let\cat@random=\pgfmathresult + \ifnum\cat@random=1 + \cat@tombstone% + \else% + \path (-1.6,0.1) rectangle (0.905, 2.17); + \cat@draw% + \fi% + \else% + \path (-1.6,0.1) rectangle (0.905, 2.17); + \cat@draw% + \fi + \end{scope}% + \thing[#1]% +} \makeatother \cfoot{% @@ -165,10 +185,10 @@ \subtitle{drawing animals and beings in \TikZ} \author{% \texorpdfstring{\texttt{samcarter}\\[0.8em] - \url{https://github.com/samcarter/tikzlings} -% \url{https://www.ctan.org/pkg/tikzlings} + \url{https://github.com/samcarter/tikzlings}\\ + \url{https://www.ctan.org/pkg/tikzlings} }{samcarter}} -\date{Version 0.1 -- \today} +\date{Version 0.2 -- \today} \begin{document} \maketitle @@ -181,7 +201,7 @@ The \tikzlings are a collection of little animals (and beings) drawn in \TikZ. I This package is work in progress, 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{github.com/samcarter/tikzlings}, including a bug tracker -- please make constructive use of it! -%A more stable package version can be found on \CTAN (\url{www.ctan.org/pkg/tikzlings}) and is included in both \miktex and \texlive as \tikzlings. +A more stable package version can be found on \CTAN (\url{https://www.ctan.org/pkg/tikzlings}) and is included in both \miktex and \texlive as \tikzlings. \subsection*{Acknowledgements} @@ -254,6 +274,92 @@ The key \lstinline|3D| will make the teddy bear 3-dimensional: \bear[3D] \end{tcblisting} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% Cat +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\clearpage +\section[Cat]{MisTi$k$zelees, the cat} + +\emph{Named after the worlds best singing cat} + +\subsection{Package name} + +\begin{tcolorbox}[lower separated=false, lefthand width=.8\linewidth] +\vspace*{0.5cm} +\lstinline|\usepackage{tikzlings-cats}| +\vspace*{0.5cm} +\end{tcolorbox} + +\subsection{Basic Usage} + +\begin{tcblisting}{} +\cat +\end{tcblisting} + +\subsection{Options} + +The basic cat can be modified by changing its colour: +\begin{tcblisting}{} +\cat[body=blue] +\end{tcblisting} + +In addition to the colour of the body, the colour of various body parts can be adjusted: +\begin{tcblisting}{} +\cat[eyes=green] +\end{tcblisting} +\begin{tcblisting}{} +\cat[pupil=red] +\end{tcblisting} +\begin{tcblisting}{} +\cat[nose=red] +\end{tcblisting} +\begin{tcblisting}{} +\cat[whiskers=red] +\end{tcblisting} +\begin{tcblisting}{} +\cat[paws=red] +\end{tcblisting} + +The shape of the \lstinline|pupil| can be changed with the \lstinline|pupilwidth| option: +\begin{tcblisting}{} +\cat[pupilwidth=0.015] +\end{tcblisting} + +Additionally several predefined widths exist: +\begin{tcolorbox} +\begin{lstlisting}[morekeywords={narrow,medium,wide,very,pupils}] +\cat[narrow pupils] + +\cat[medium pupils] + +\cat[wide pupils] + +\cat[very wide pupils] +\end{lstlisting} + +\tcblower +\begin{tikzpicture}[yshift=2.4cm,xshift=1.8cm] +\cat[narrow pupils] +\cat[medium pupils,xshift=2.5cm] +\cat[wide pupils,yshift=-2.5cm] +\cat[very wide pupils,xshift=2.5cm,yshift=-2.5cm] +\end{tikzpicture} +\end{tcolorbox} + + +There is also the special option \lstinline|schroedinger|. This cat is both alive and death as long as you did not compile your document. +Be prepared for a possibly disturbing scene when you open the pdf, this option is not suited for sensitive \tikzlings. +\begin{tcblisting}{} +\cat[schroedinger] +\end{tcblisting} + +Finally the key \lstinline|3D| will make the cat 3-dimensional: +\begin{tcblisting}{} +\cat[3D] +\end{tcblisting} + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Coati @@ -300,6 +406,47 @@ Finally the key \lstinline|3D| will make the coati 3-dimensional: \coati[3D] \end{tcblisting} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% Hippo +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\clearpage +\section[Hippo]{Sieglinde, the hippo} + +\emph{For the winner of the 2019 Groundhog Challenge} + +\subsection{Package name} + +\begin{tcolorbox}[lower separated=false, lefthand width=.8\linewidth] +\vspace*{0.5cm} +\lstinline|\usepackage{tikzlings-hippos}| +\vspace*{0.5cm} +\end{tcolorbox} + +\subsection{Basic Usage} + +\begin{tcblisting}{} +\hippo +\end{tcblisting} + +\subsection{Options} + +The basic hippo can be modified by changing its colour: +\begin{tcblisting}{} +\hippo[body=blue] +\end{tcblisting} + +The hippo can also do its nails: +\begin{tcblisting}{} +\hippo[toes=red] +\end{tcblisting} + +The key \lstinline|3D| will make the hippo 3-dimensional: +\begin{tcblisting}{} +\hippo[3D] +\end{tcblisting} + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Koala @@ -506,7 +653,7 @@ The key \lstinline|3D| will make the mouse 3-dimensional: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % -% Jake +% Owl % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \clearpage @@ -554,6 +701,42 @@ Finally the key \lstinline|3D| will make the owl 3-dimensional: \owl[3D] \end{tcblisting} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% Panda +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\clearpage +\section[Panda]{..., the panda} + +\emph{....} + +\subsection{Package name} + +\begin{tcolorbox}[lower separated=false, lefthand width=.8\linewidth] +\vspace*{0.5cm} +\lstinline|\usepackage{tikzlings-pandas}| +\vspace*{0.5cm} +\end{tcolorbox} + +\subsection{Basic Usage} + +\begin{tcblisting}{} +\panda +\end{tcblisting} + +\subsection{Options} + +The basic panda can be modified by changing its colour: +\begin{tcblisting}{} +\panda[body=blue] +\end{tcblisting} + +The key \lstinline|3D| will make the panda 3-dimensional: +\begin{tcblisting}{} +\panda[3D] +\end{tcblisting} + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Penguin @@ -608,6 +791,84 @@ Finally the key \lstinline|3D| will make the penguin 3-dimensional: \penguin[3D] \end{tcblisting} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% Pig +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\clearpage +\section[Pig]{Ms Piggy, the pig} + +\emph{Added on February 5th, 2019 to commemorate the Chinese year of the pig} + +\subsection{Package name} + +\begin{tcolorbox}[lower separated=false, lefthand width=.8\linewidth] +\vspace*{0.5cm} +\lstinline|\usepackage{tikzlings-pigs}| +\vspace*{0.5cm} +\end{tcolorbox} + +\subsection{Basic Usage} + +\begin{tcblisting}{} +\pig +\end{tcblisting} + +\subsection{Options} + +The basic pig can be modified by changing its colour: +\begin{tcblisting}{} +\pig[body=blue] +\end{tcblisting} + +The key \lstinline|3D| will make the pig 3-dimensional: +\begin{tcblisting}{} +\pig[3D] +\end{tcblisting} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% Rhino +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\clearpage +\section[Rhino]{D\"urer, the rhino} + +\emph{Named after Albert D\"urer who painted an amazing rhino merely based on stories} + +\subsection{Package name} + +\begin{tcolorbox}[lower separated=false, lefthand width=.8\linewidth] +\vspace*{0.5cm} +\lstinline|\usepackage{tikzlings-rhinos}| +\vspace*{0.5cm} +\end{tcolorbox} + +\subsection{Basic Usage} + +\begin{tcblisting}{} +\rhino +\end{tcblisting} + +\subsection{Options} + +The basic rhino can be modified by changing its colour: +\begin{tcblisting}{} +\rhino[body=blue] +\end{tcblisting} + +The hippo can also do its nails: +\begin{tcblisting}{} +\rhino[toes=red] +\end{tcblisting} + +The key \lstinline|3D| will make the rhino 3-dimensional: +\begin{tcblisting}{} +\rhino[3D] +\end{tcblisting} + + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Sloth @@ -805,8 +1066,8 @@ A list of all available accessories is given below. For completeness the default \end{tcblisting} \begin{tcblisting}{} -\owl[ - witch=black +\cat[ + witch=gray ] \end{tcblisting} @@ -870,7 +1131,7 @@ A list of all available accessories is given below. For completeness the default \end{tcblisting} \begin{tcblisting}{} -\mouse[ +\pig[ signpost={\TeX}, signcolour= brown!50!black, signback=green!40!black @@ -947,7 +1208,7 @@ A list of all available accessories is given below. For completeness the default \end{tcblisting} \begin{tcblisting}{} -\mouse[ +\hippo[ hockey=brown ] \end{tcblisting} @@ -1023,4 +1284,28 @@ A list of all available accessories is given below. For completeness the default ] \end{tcblisting} +\begin{tcblisting}{} +\rhino[ + umbrella=cyan +] +\end{tcblisting} + +\begin{tcblisting}{} +\marmot[ + umbrellaclosed=cyan +] +\end{tcblisting} + +\begin{tcblisting}{} +\mouse[ + handbag=red!70!black +] +\end{tcblisting} + +\begin{tcblisting}{} +\bear[ + cocktail +] +\end{tcblisting} + \end{document} -- cgit v1.2.3