preview latex fails with pdflatex
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GS-GPL |
Fix Released
|
Medium
|
|||
auctex (Debian) |
Fix Released
|
Unknown
|
|||
auctex (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
ghostscript (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
Binary package hint: auctex
Preview latex does not work on the attached minimum example when using pdf latex mode in the latest version of lucid it works correctly in karmic and in ordinary latex mode on lucid. It also fails using the latest version of auctex from the main auctex page (11.86)
The preview pdf files are generated and converted to dsc however the ghost script conversion to png does not work.
Please see the following error logs. The error seems to be Error: /typecheck in --setfileposition-- from gs.
When using preview section this is replaced by Error: /undefined in copy_trailer_attrs and it still doesn't work.
This might be related to the following debian bug fixed by 8.71~dfsg-2 in debian:
http://
The output of c-c c-l is as follows and displays no error:
Running `Preview-LaTeX' on `test' with ``pdflatex -interaction=
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)
restricted \write18 enabled.
entering extended mode
(./test.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, loaded.
CUSTOMISED FORMAT. Preloaded files:
.
article.cls 2007/10/19 v1.4h Standard LaTeX document class
size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
.
(./test.aux) (/usr/local/
(/usr/local/
(/usr/local/
No auxiliary output files.
(/usr/local/
(/usr/local/
Preview: Fontsize 10pt
Preview: PDFoutput 1
)
! Preview: Snippet 1 started.
<-><->
l.7 \section
{test1}
Preview: Tightpage -32891 -32891 32891 32891
! Preview: Snippet 1 ended.(
<-><->
l.7 \section{test1}
[1{/var/
! Preview: Snippet 2 started.
<-><->
l.9 \section
{test2}
! Preview: Snippet 2 ended.(
<-><->
l.9 \section{test2}
[2] )
(see the transcript file for additional information)
onts/type1/
Output written on test.pdf (2 pages, 9854 bytes).
Transcript written on test.log.
Preview-LaTeX exited as expected with code 1 at Sun Mar 21 10:04:52
Running `Preview-PDF2DSC' with ``pdf2dsc test.pdf test.prv/
Preview-PDF2DSC finished at Sun Mar 21 10:04:52
Running `Preview-
Preview-Ghostscript finished at Sun Mar 21 10:04:52
The gs process generates the following error:
As shown by right clicking on the missing preview in emacs.
gs -dOutputFile\
GS>{DELAYSAFER{
Error: /typecheck in --setfileposition--
Operand stack:
--nostringval-- --nostringval-- --nostringval-- 454
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--
Dictionary stack:
--dict:
Current allocation mode is local
Current file position is 28
GS<4>
Related branches
- James Westby (community): Approve
-
Diff: 48 lines (+28/-0)3 files modifieddebian/changelog (+8/-0)
debian/patches/00list (+1/-0)
debian/patches/pdf2dsc-fix-for-pdflatex-preview.dpatch (+19/-0)
Changed in auctex (Ubuntu): | |
milestone: | none → ubuntu-10.04 |
Changed in auctex (Ubuntu): | |
importance: | Undecided → High |
affects: | auctex (Ubuntu) → ghostscript (Ubuntu) |
Changed in ghostscript (Ubuntu): | |
milestone: | ubuntu-10.04 → none |
status: | Incomplete → New |
tags: | added: patch |
Changed in gs-gpl: | |
status: | Unknown → Fix Released |
Changed in gs-gpl: | |
importance: | Unknown → Medium |
Changed in ghostscript (Ubuntu): | |
assignee: | Josh Holland (jshholland) → nobody |
Changed in auctex (Debian): | |
status: | Unknown → Fix Released |
summary: |
- preview latex fails on with pdflatex + preview latex fails with pdflatex |
The bug seems to be in pdf2dsc by applying the following 1 line patch from debian to pdf2dsc in ghostscript the problem is gone.