Please see the attached file.
Code: Select all
\documentclass
[]
{scrartcl}
\usepackage{tikz} %% TikZ/pgf zum Schreiben von Grafiken
\usetikzlibrary{positioning} %% Positionierung in nodes
\usepackage{tikzlings}
\begin{document}
\tikzset{mygrid/.pic = {
\draw[thin, dotted] (-3,-3) grid (3,3);
\draw[->] (-3,0) -- (3,0);
\draw[->] (0,-3) -- (0,3);}}
\begin{tikzpicture}
\draw pic {mygrid}; %% ok
\sloth[ %% ok
speech={I see \dots},
crystalball=cyan,
]
\penguin[rotate=30,scale=0.5]
\draw pic {mygrid} %% From here to the next ';' the code delivers errors
(-1,0) pic {chicken}
(1,0) pic {pig}
(-2,-2) pic {bear}
(0,-2) pic {penguin}
(2,-2) pic {owl};
\pic {owl}; %% Owl not displayed, error
\chicken; %% ok
\end{tikzpicture}
\end{document}