GNU bug report logs - #44578
incompability between preview and hyperref in latex 2020-10-01

Previous Next

Package: auctex;

Reported by: Ulrike Fischer <news3 <at> nililand.de>

Date: Wed, 11 Nov 2020 15:31:03 UTC

Severity: normal

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ulrike Fischer <news3 <at> nililand.de>
To: bug-auctex <at> gnu.org
Subject: incompability between preview and hyperref in latex 2020-10-01
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 <at> FirstPageHook\relax
% \let\Hy <at> 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





This bug report was last modified 93 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.