From d79a721c345c9a2ced6c0640e88c10cc3378c1f0 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Wed, 1 Jul 2020 03:03:30 +0000 Subject: CTAN sync 202007010303 --- graphics/pgf/contrib/tikzducks/tikzducks-doc.tex | 30 +++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) (limited to 'graphics/pgf/contrib/tikzducks/tikzducks-doc.tex') diff --git a/graphics/pgf/contrib/tikzducks/tikzducks-doc.tex b/graphics/pgf/contrib/tikzducks/tikzducks-doc.tex index fbe6f48fae..283e60e7ab 100644 --- a/graphics/pgf/contrib/tikzducks/tikzducks-doc.tex +++ b/graphics/pgf/contrib/tikzducks/tikzducks-doc.tex @@ -37,6 +37,7 @@ \newcommand{\tikzducks}{Ti\emph{k}Zducks\xspace} \newcommand{\miktex}{MiK\TeX\xspace} \newcommand{\texlive}{\TeX{}Live\xspace} +\newcommand{\ConTeXt}{C\kern-.0333emon\-\kern-.0667em\TeX\kern-.0333emt} % customisation %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \definecolor{duckblue}{RGB}{0,70,140} @@ -116,7 +117,7 @@ \url{https://github.com/samcarter/tikzducks}\\ \url{https://www.ctan.org/pkg/tikzducks} }{samcarter}} -\date{Version v1.4 \textendash{} 2020/04/22} +\date{Version v1.5 \textendash{} 2020/06/30} \begin{document} \maketitle @@ -155,7 +156,9 @@ Mihikma created the duck's beard, % Yudai Nakata helped with problems of \lstinline|\pdfrandomseed|, % -@marmot for his seemingly infinite knowledge of \TikZ which he shared with the world +@marmot for his seemingly infinite knowledge of \TikZ which he shared with the world, +% +@JairoAdelRio for contributing the \ConTeXt{} User Module % and last but not least my thanks go to Martin Schr\"oder for his feedback to the code review. @@ -164,7 +167,7 @@ The ducks mostly consist of basic geometric shapes drawn in \TikZ. Some of the m \subsection{Dependencies} -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. +The \tikzducks package loads \lstinline|expl3| and \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}[morekeywords={xcolor,svgnames}] \PassOptionsToPackage{svgnames}{xcolor} @@ -266,6 +269,27 @@ For the \TeX{} purists, there is also a picture mode variant: \end{tcblisting} } +And thanks to @JairoAdelRio there is even a \ConTeXt{} User Module available (caveat: some colours might look different): + +\begin{tcolorbox}[title={\ConTeXt{} User Module}] +\begin{lstlisting}[morekeywords={usemodule,usecolors,starttext,stoptext,starttikzpicture,stoptikzpicture}] +\usemodule[tikzducks] +\usecolors[xwi] +\starttext + +\starttikzpicture +\duck[tophat,bowtie] +\stoptikzpicture + +\stoptext +\end{lstlisting} + +\tcblower +\begin{tikzpicture} +\duck[tophat,bowtie] +\end{tikzpicture} +\end{tcolorbox} + \subsection{Body parts} The various parts of the duck can also be coloured independently, i.e.\ \lstinline|body|, \lstinline|head| or \lstinline|bill|: -- cgit v1.2.3