add tag
samcarter
I would like to add content to a hook throughout my document. Just on one occasion, I would like to ignore the content of the hook. Is there any possibility to skip the hook once?

For example, I would like to add a background to all bears except the second bear:

```
\documentclass{standalone}

\usepackage{tikzlings}
\AddToHook{tikzlings/background}{
  \fill[red] (-1,0) rectangle (1,2);
}

\begin{document}

\tikz{\bear}

\begingroup
  \RemoveFromHook{tikzlings/background}
  \tikz{\bear}
\endgroup

\tikz{\bear}

\end{document}
```

![document2-1.png](/image?hash=0b2e096bc51f907ff31096d5dda7fa0ff6425db2482243aa0b9f32e55a01b504)

Enter question or answer id or url (and optionally further answer ids/urls from the same question) from

Separate each id/url with a space. No need to list your own answers; they will be imported automatically.