bug-auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#44578: incompability between preview and hyperref in latex 2020-10-0


From: Ulrike Fischer
Subject: bug#44578: 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@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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]