samcarter / tikzducks

A latex package to draw cute rubber ducks with TikZ
https://ctan.org/pkg/tikzducks
LaTeX Project Public License v1.3c
170 stars 13 forks source link

Broom duck doesn't work - PGF Keys error #35

Closed hakmad closed 1 year ago

hakmad commented 1 year ago

I have the following LaTeX code:

\documentclass{standalone}

\usepackage{tikz}
\usetikzlibrary{ducks}

\begin{document}

\begin{tikzpicture}
    \duck[broom]
\end{tikzpicture}

\end{document}

When compiling with latexmk, I recieve the following error:

! Package pgfkeys Error: I do not know the key '/pgf/broom' and I am going to ignore it. Perhaps you misspelled it.

The broom related accessories (e.g. broomstick, etc.) produce similar errors, but other accessories (e.g. handbag) work just fine. I'm not very good at LaTeX so this could just be me being stupid but I'm really not sure what's going on or how to diagnose this further.

By the way, this is really awesome!

Edit: fixed documentclass.

samcarter commented 1 year ago

Which version of the tikzducks package do you have? The broom was added in v1.6.

If you would show your .log file, I can look up the version number there.

(... and \begin{standalone} should be \documentclass{standalone})

hakmad commented 1 year ago

I see, my bad. It looks like I'm still on version 1.5, so I'll look into how to upgrade my version of tikzducks. Sorry about that!

Also I corrected my example. Apologies again and thanks for your help!

samcarter commented 1 year ago

@hakmad You're welcome! Have fun with the ducks!