Subject: incompability between preview and hyperref in latex 2020-10-01

From: Ulrike Fischer <[email-masked]>
Date: Wed, 11 Nov 2020 16:16:56 +0100

Hello,

the following document works fine with older latex but fails with 
latex 2020-10-01 when compile with latex-dvips-ps2pdf:

\documentclass{article}

\usepackage [active,tightpage]{preview}
\usepackage{hyperref}

\makeatletter
%\ifPreview
% \let\Hy@FirstPageHook\relax
% \let\Hy@EveryPageAnchor\relax
%\fi
\makeatother

\begin {document}
\showoutput
\begin {preview}
abc
\end {preview}
\end {document}

latex + dvips compiles fine, but ps2pdf errors:
Error: /typecheck in --div--
Operand stack:
   1   0   0.0016874   -0.000881703   a   65781.8

The problem is the postscript code inserted by hyperref with the two
commands in the commented part of the example: due to the changes in
the latex shipout code, the code is inserted even if preview is
active and ghostscript doesn't like it. 

For now it if probably easiest to disable the hooks as shown,
but the code in hyperref will at some time switch to the new latex 
hooks and then perhaps some other solution is needed. 

-- 
Mit freundlichen Grüßen
Ulrike Fischer