# tikzducks page numbering

How can I have duck-based page numbers, as in the tikzducks manual itself? They are adorable, and I would like to have random ducks holding my page numbers.

The manual tells us how to make a signpost duck and obtain a random duck, but how does one create (1) random signpost/pagenumber-holding ducks (2) in the footer?

• We love you, even if you didn't add an MWE :):):) Apr 25, 2018 at 19:19
• I figured I could get away with it this one time.
– AML
Apr 25, 2018 at 19:20

At the end of chapter 3, the "duckumentation" describes how to create a random head decoration or a random accessories without using the \randuck:

(please notice that \shuffleducks has to be called each time a new duck shall be created. This is not necessary for the \randuck, because there this is done automatically)

The same concept can be used for the page numbers:

\documentclass{scrartcl}
\usepackage{scrlayer-scrpage}

\usepackage{tikzducks}
\usepackage{duckuments}% To create a dummy duckument

\setlength{\footheight}{45pt}
\cfoot{%
\shuffleducks
\begin{tikzpicture}[scale=0.5]
\end{tikzpicture}
}

\begin{document}

\duckument

\end{document}


Tip: the source code of the "duckumentation" is available from http://mirrors.ctan.org/graphics/pgf/contrib/tikzducks/tikzducks-doc.tex or https://github.com/samcarter/tikzducks/blob/master/tikzducks-doc.tex in case you'd like to know how do any of the other content.

• You made my day :D
– AML
Apr 25, 2018 at 19:15
• @AML Glad to be of service! Apr 25, 2018 at 19:17
• Here a duck, there a duck, everywhere a duck-duck. Ol' Sam Carter had a farm, EIEIO. Oct 4, 2018 at 11:56
• @StevenB.Segletes :) but you forgot to mention the marmots Oct 4, 2018 at 11:56
• ...and on this farm, she had some marmots, EIEIO Oct 4, 2018 at 12:00