The following document produces a PDF with two pages, while only one is called for:
\documentclass{article}
\usepackage{pgfcore}
\usepackage[active]{preview}
\begin{document}
Text
\begin{preview}HELLO\end{preview}
\end{document}
While this is a known bug (where I also borrowed the MWE, thanks Ulrike), I'd be curious to know if a workaround at the user level exists, especially one that does not involve changing system files (as in this related question).
(A DVI user also wondered: Does tikz 2.1 no longer work with the preview package? The question here is about pdflatex
.)
preview
?preview
is fine as long aspgf
is not loaded. On the other hand,pgf
does not seem to be affected bypreview
. (Loadingpgf
seems to involve\AtBeginDocument
at some point, so the order of package loading is irrelevant.)preview
andeveryshi
, but after substitutingpgfcore
witheveryshi
the error disappears. I guesspgf
itself needs to meddle with\shipout
.