Subject: bug#49422: The preview package does not work with TikZ (TeXLive 2021)

From: Eugene Shalygin <[email-masked]>
Date: Mon, 5 Jul 2021 21:22:11 +0200

Hello,

activating the preview package with TikZ results in
! Undefined control sequence.
\@outputpage ...istfalse \@parboxrestore \shipout
                                                 \vbox {\set@typeset
@protec...

The MWE (this and the log files are attached):
\documentclass{article}
\usepackage{tikz}
\usepackage[active]{preview}
% \PreviewEnvironment[]{tikzpicture}
\listfiles
\begin{document}

\begin{tikzpicture}

\end{tikzpicture}
\end{document}

Uncommenting the \PreviewEnvironment command changes the undefined command
to \pr@shipout. Commenting out \usepackage[active]{preview} makes the
\shipout command available.

Best regards,
Eugene