Using hyperref package breaks emacs preview

Bug #524961 reported by John Paul Adrian Glaubitz
This bug report is a duplicate of:  Bug #543266: preview latex fails with pdflatex. Edit Remove
30
This bug affects 5 people
Affects Status Importance Assigned to Milestone
auctex (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: auctex

Hi,

when using the package hyperref, AUCTeX is no longer able to
generate proper preview images within the emacs buffer. Instead,
just a "no access" icon is shown. Right-clicking the icon and
clicking "Show error" gives the following error output from
Ghostscript:

------------------------------------------------------------------

gs -dOutputFile\=\(_region_.prv/tmp2575bLI/pr1-1.png\) -q -dSAFER -dNOPAUSE -DNOPLATFONTS -dPrinted -dTextAlphaBits\=4 -dGraphicsAlphaBits\=4 -sDEVICE\=png16m -r105.324x105.514
GS>{DELAYSAFER{.setsafe}if}stopped pop/.preview-BP currentpagedevice/BeginPage get dup null eq{pop{pop}bind}if def<</BeginPage{currentpagedevice/PageSize get dup 0 get 1 ne exch 1 get 1 ne or{.preview-BP }{pop}ifelse}bind/PageSize[1 1]>>setpagedevice/preview-do{[count 3 roll save]3 1 roll dup length 0 eq{pop}{setpagedevice}{ifelse .runandhide}stopped{handleerror quit}if aload pop restore}bind def [(_region_.prv/tmp2575bLI/preview.ps)(r)file]aload exch dup 0 setfileposition 476950()/SubFileDecode filter cvx .runandhide aload pop dup dup 477403 setfileposition 1400490()/SubFileDecode filter cvx<<>>preview-do
Error: /undefined in H.S
Operand stack:

Execution stack:
   %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- %loop_continue --nostringval-- --nostringval-- false 1 %stopped_push .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- false 1 %stopped_push 1148 --nostringval-- %end_runandhide --nostringval--
Dictionary stack:
   --dict:1160/1684(ro)(G)-- --dict:0/20(G)-- --dict:76/200(L)-- --dict:130/300(L)-- --dict:19/200(L)--
Current allocation mode is local
Last OS error: 2

Preview-Ghostscript finished

------------------------------------------------------------------

When disabling the hyperref package, that is commenting the
following line out,

\usepackage{hyperref}

the preview images are generated properly again.

Adrian

ProblemType: Bug
Architecture: i386
Date: Sat Feb 20 17:58:31 2010
DistroRelease: Ubuntu 10.04
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Alpha i386 (20100113)
Package: auctex 11.85-1ubuntu1
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_US.UTF-8
 LC_CTYPE=en_US.UTF-8
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-13.18-generic
SourcePackage: auctex
Uname: Linux 2.6.32-13-generic i686

Revision history for this message
John Paul Adrian Glaubitz (glaubitz) wrote :
Revision history for this message
Amit Aronovitch (aronovitch) wrote :

1. Probably upstream problem.
Confirmed in Debian sid (auctex 11.85-1, emacs 23.1+1-6, tex-common 2.07).
(should search/report on the auctex list http://lists.gnu.org/mailman/listinfo/bug-auctex )

2. Workaround:
  check "pdf mode" (Gnu Emacs: under Command/TeXing options, or use C-c C-t C-p )
  this allows you to keep the hyperref package (commenting it out as suggested by Adrian interferes with revision-control etc.).

Revision history for this message
Renato Candido (renatocan) wrote :

This error is caused by the hyperref package. When disabling this package, that is commenting the line

\usepackage{hyperref}

the preview images are generated properly again.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in auctex (Ubuntu):
status: New → Confirmed
Revision history for this message
Mathias Tausen (mathias-tausen) wrote :

Why is this marked a duplicate of #543266?

I can't use pdf mode (because I'm using pstricks in my document), and hyperref breaks my preview on auctex 11.87.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.