bug-auctex
[Top][All Lists]
Advanced

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

[Bug-AUCTeX] 11.86; No previews on Windows, Emacs32.2


From: Frank Küster
Subject: [Bug-AUCTeX] 11.86; No previews on Windows, Emacs32.2
Date: Mon, 20 Dec 2010 17:49:04 +0100

Remember to cover the basics.  Including a minimal LaTeX example
file exhibiting the problem might help.

Dear AUCTeX team, 

(it's me, address@hidden or address@hidden,)
I just started to use LaTeX again at work, but now I'm
on Windows.  I installed Emacs 23.2 and configured it a bit for AUCTeX,
but didn't change any preview-related options AFAIR. 

When generating previews for a fairly large document, all of them end up
as error signs.  The errors are different, e.g. this one is from a
subsection:

"GSWIN32C.EXE" "-dOutputFile=(_region_.prv/tmp5232QqS/pr1-7.png)" "-q" 
"-dSAFER" "-dNOPAUSE" "-DNOPLATFONTS" "-dPrinted" "-dTextAlphaBits=4" 
"-dGraphicsAlphaBits=4" "-sDEVICE=png16m" "-r90.9297x90.9297"
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/tmp5232QqS/preview.ps)(r)file]aload exch dup 0 
setfileposition 283269()/SubFileDecode filter cvx .runandhide aload pop dup dup 
283269 setfileposition 134()/SubFileDecode filter cvx<<>>preview-do
Error: /typecheck in --setfileposition--
Operand stack:
   --nostringval--   (_region_.prv/tmp5232QqS/preview.ps)   (r)   (r)   (r)   
283978   283978   283978   283817   283817   283817   283681   283681   283681  
 283537   283537   283537   283403   283403   283403   283269
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:1163/1684(ro)(G)--   --dict:0/20(G)--   --dict:79/200(L)--
Current allocation mode is local
Current file position is 31
GS<21>

and this one is from an equation:

"GSWIN32C.EXE" "-dOutputFile=(_region_.prv/tmp5232d0Y/pr1-1.png)" "-q" 
"-dSAFER" "-dNOPAUSE" "-DNOPLATFONTS" "-dPrinted" "-dTextAlphaBits=4" 
"-dGraphicsAlphaBits=4" "-sDEVICE=png16m" "-r90.9297x90.9297"
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/tmp5232d0Y/preview.ps)(r)file]aload exch dup 0 
setfileposition 101060()/SubFileDecode filter cvx .runandhide aload pop dup dup 
101060 setfileposition 282()/SubFileDecode filter cvx<<>>preview-do
Error: /invalidfileaccess in --file--
Operand stack:
   --nostringval--   (_region_.prv/tmp5232d0Y/preview.ps)   (r)
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:1163/1684(ro)(G)--   --dict:0/20(G)--   --dict:79/200(L)--
Current allocation mode is local
Last OS error: No such file or directory
Current file position is 441
GS<3>

I'm willing to create a minimal example if you think that is needed. But
since nothing doesn't work, I rather suspect an error in the Preview
setup.  There's one particular thing about the file, though: Part of the
preamble is read from definitions.text via

\input{definitions}

After inserting the code directly, the error at least for the equation
changed to

"GSWIN32C.EXE" "-dOutputFile=(ErrorBudget.prv/tmp5232q-e/pr1-65.png)" "-q" 
"-dSAFER" "-dNOPAUSE" "-DNOPLATFONTS" "-dPrinted" "-dTextAlphaBits=4" 
"-dGraphicsAlphaBits=4" "-sDEVICE=png16m" "-r90.9297x90.9297"
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 [(ErrorBudget.prv/tmp5232q-e/preview.ps)(r)file]aload exch dup 
0 setfileposition 244340()/SubFileDecode filter cvx .runandhide aload pop dup 
dup 245794 setfileposition 286()/SubFileDecode filter cvx<<>>preview-do
Error: /typecheck in --setfileposition--
Operand stack:
   --nostringval--   (ErrorBudget.prv/tmp5232q-e/preview.ps)   (r)   (r)   (r)  
 258738   258738   258738   258531   258531   258531   258328   258328   258328 
  258132   258132   258132   257974   257974   257974   257002   257002   
257002   256826   256826   256826   256634   256634   256634   256475   256475  
 256475   256320   256320   256320   256181   256181   256181   255970   255970 
  255970   255766   255766   255766   255593   255593   255593   255396   
255396   255396   255225   255225   255225   255034   255034   255034   254827  
 254827   254827   254617   254617   254617   254446   254446   254446   254284 
  254284   254284   254095   254095   254095   253935   253935   253935   
253752   253752   253752   253506   253506   253506   253309   253309   253309  
 253186   253186   253186   252972   252972   252972   252833   252833   252833 
  252640   252640   252640   252459   252459   252459   252271   252271   
252271   252111   252111   252111   251920   251920   251920   251766   251766  
 251766   251646   251646   251646   251526   251526   251526   251221   251221 
  251221   251080   251080   251080   250789   250789   250789   250643   
250643   250643   250369   250369   250369   250219   250219   250219   249899  
 249899   249899   249761   249761   249761   249527   249527   249527   249389 
  249389   249389   249216   249216   249216   249031   249031   249031   
248456   248456   248456   248308   248308   248308   248185   248185   248185  
 247896   247896   247896   247763   247763   247763   247600   247600   247600 
  247306   247306   247306   247171   247171   247171   246916   246916   
246916   246782   246782   246782   246601   246601   246601   246426   246426  
 246426   246236   246236   246236   246080   246080   246080   245794
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:1163/1684(ro)(G)--   --dict:0/20(G)--   --dict:79/200(L)--
Current allocation mode is local
Current file position is 31
GS<195>



Regards, Frank


Emacs  : GNU Emacs 23.2.1 (i386-mingw-nt5.1.2600)
 of 2010-05-08 on G41R2F1
Package: 11.86

Run buffer contents:

Running `Preview-LaTeX' on `_region_' with ``latex  
"\nonstopmode\nofiles\PassOptionsToPackage{active,tightpage,auctex}{preview}\AtBeginDocument{\ifx\ifPreview\undefined\RequirePackage[displaymath,floats,graphics,textmath,sections,footnotes]{preview}[2004/11/05]\fi}"
 "\input" "_region_.tex"''
This is pdfTeX, Version 3.1415926-1.40.11 (Web2C 2010)
 restricted \write18 enabled.
entering extended mode
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman-x-2009-06-19, ngerman-x-2009-06-19, ukenglish, usenglishmax, german, ngerm
an, swissgerman, loaded.

No auxiliary output files.

(./_region_.tex  !name(ErrorBudget.tex)
(c:/texlive/2010/texmf-dist/tex/latex/koma-script/scrartcl.cls
Document Class: scrartcl 2010/06/17 v3.06 KOMA-Script document class (article)
(c:/texlive/2010/texmf-dist/tex/latex/koma-script/scrkbase.sty
(c:/texlive/2010/texmf-dist/tex/latex/koma-script/scrbase.sty
(c:/texlive/2010/texmf-dist/tex/latex/graphics/keyval.sty)
(c:/texlive/2010/texmf-dist/tex/latex/koma-script/scrlfile.sty
Package scrlfile, 2009/03/25 v3.03 KOMA-Script package (loading files)
                  Copyright (C) Markus Kohm

))) (c:/texlive/2010/texmf-dist/tex/latex/koma-script/tocbasic.sty)
(c:/texlive/2010/texmf-dist/tex/latex/koma-script/scrsize11pt.clo)
(c:/texlive/2010/texmf-dist/tex/latex/koma-script/typearea.sty
Package typearea, 2010/06/17 v3.06 KOMA-Script package (type area)
                  Copyright (C) Frank Neukam, 1992-1994
                  Copyright (C) Markus Kohm, 1994-

)) (c:/texlive/2010/texmf-dist/tex/latex/base/inputenc.sty
(c:/texlive/2010/texmf-dist/tex/latex/base/utf8.def
(c:/texlive/2010/texmf-dist/tex/latex/base/t1enc.dfu)
(c:/texlive/2010/texmf-dist/tex/latex/base/ot1enc.dfu)
(c:/texlive/2010/texmf-dist/tex/latex/base/omsenc.dfu)))

(c:/texlive/2010/texmf-dist/tex/latex/base/fontenc.sty
(c:/texlive/2010/texmf-dist/tex/latex/base/t1enc.def))
(c:/texlive/2010/texmf-dist/tex/generic/babel/babel.sty
(c:/texlive/2010/texmf-dist/tex/generic/babel/ngermanb.ldf
(c:/texlive/2010/texmf-dist/tex/generic/babel/babel.def)))
(c:/texlive/2010/texmf-dist/tex/latex/lm/lmodern.sty)
(c:/texlive/2010/texmf-dist/tex/latex/base/textcomp.sty
(c:/texlive/2010/texmf-dist/tex/latex/base/ts1enc.def
(c:/texlive/2010/texmf-dist/tex/latex/base/ts1enc.dfu)))
(c:/texlive/2010/texmf-dist/tex/latex/natbib/natbib.sty

! LaTeX Error: \makeindex undefined.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <r...

[...]

        ...xlive/2010/texmf-dist/tex/latex/graphics/dvips.def)
(c:/texlive/2010/texmf-dist/tex/latex/graphics/dvipsnam.def))
(c:/texlive/2010/texmf-dist/tex/latex/hyperref/nameref.sty
(c:/texlive/2010/texmf-dist/tex/latex/oberdiek/refcount.sty)
(c:/texlive/2010/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))
 !name(ErrorBudget.tex) !offset(116) 
! Missing $ inserted.
<inserted text> 
                $
l.87 "GSWIN32C.EXE" "-dOutputFile=(_
                                    region_.prv/tmp5232QqS/pr1-7.png)" "-q" ...

(c:/texlive/2010/texmf-dist/tex/latex/lm/ot1lmr.fd)
(c:/texlive/2010/texmf-dist/tex/latex/lm/omllmm.fd)
(c:/texlive/2010/texmf-dist/tex/latex/lm/omslmsy.fd)
(c:/texlive/2010/texmf-dist/tex/latex/lm/omxlmex.fd)
! Preview: Snippet 1 started.
<-><->
      
l.98 GS<21>\begin{equation}
                           
Preview: Tightpage -32891 -32891 32891 32891
! Preview: Snippet 1 ended.(933914+0x27410796).
<-><->
      
l.101 \end{equation}
                    
[1]  !name(ErrorBudget.tex) !offset(612) 
! Missing $ inserted.
<inserted text> 
                $
l.103 
      
 )
(see the transcript file for additional information)
Output written on _region_.dvi (1 page, 1952 bytes).
Transcript written on _region_.log.

Preview-LaTeX exited as expected with code 1 at Mon Dec 20 17:36:33
Running `Preview-DviPS' with ``dvips -Pwww "_region_.dvi" -o 
"_region_.prv/tmp5232d0Y"/preview.ps''
This is dvips(k) 5.99 Copyright 2010 Radical Eye Software (www.radicaleye.com)
' TeX output 2010.12.20:1736' -> _region_.prv/tmp5232d0Y/preview.ps
<c:/texlive/2010/texmf/dvips/base/tex.pro>
<c:/texlive/2010/texmf-dist/fonts/enc/dvips/lm/lm-mathit.enc>
<c:/texlive/2010/texmf-dist/fonts/enc/dvips/lm/lm-rm.enc>
<c:/texlive/2010/texmf-dist/fonts/enc/dvips/lm/lm-ec.enc>
<c:/texlive/2010/texmf/dvips/base/texps.pro>
<c:/texlive/2010/texmf/dvips/base/special.pro>
<c:/texlive/2010/texmf/dvips/base/color.pro>. 
<c:/texlive/2010/texmf-dist/fonts/type1/public/lm/lmr10.pfb>
<c:/texlive/2010/texmf-dist/fonts/type1/public/lm/lmmi8.pfb>
<c:/texlive/2010/texmf-dist/fonts/type1/public/lm/lmr8.pfb>
<c:/texlive/2010/texmf-dist/fonts/type1/public/lm/lmmi10.pfb>[1] 

Preview-DviPS finished at Mon Dec 20 17:36:34
Running `Preview-Ghostscript' with ``"GSWIN32C.EXE" 
"-dOutputFile=(_region_.prv/tmp5232d0Y/pr1-%d.png)" "-q" "-dSAFER" "-dNOPAUSE" 
"-DNOPLATFONTS" "-dPrinted" "-dTextAlphaBits=4" "-dGraphicsAlphaBits=4" 
"-sDEVICE=png16m" "-r90.9297x90.9297"''

Preview-Ghostscript finished at Mon Dec 20 17:36:35

current state:
==============
(setq
 AUCTeX-version "11.86"
 LaTeX-command-style '(("" "%(PDF)%(latex) %S%(PDFout)"))
 image-types '(png gif tiff jpeg xpm xbm pbm)
 preview-image-type 'png
 preview-image-creators '((dvipng (open preview-gs-open 
preview-dvipng-process-setup) (place preview-gs-place)
                           (close preview-dvipng-close))
                          (png (open preview-gs-open) (place preview-gs-place) 
(close preview-gs-close))
                          (jpeg (open preview-gs-open) (place preview-gs-place) 
(close preview-gs-close))
                          (pnm (open preview-gs-open) (place preview-gs-place) 
(close preview-gs-close))
                          (tiff (open preview-gs-open) (place preview-gs-place) 
(close preview-gs-close)))
 preview-dvipng-image-type 'png
 preview-dvipng-command "dvipng -picky -noghostscript %d -o 
\"%m/prev%%03d.png\""
 preview-pdf2dsc-command "pdf2dsc %s.pdf %m/preview.dsc"
 preview-gs-command "GSWIN32C.EXE"
 preview-gs-options '("-q" "-dSAFER" "-dNOPAUSE" "-DNOPLATFONTS" "-dPrinted" 
"-dTextAlphaBits=4"
                      "-dGraphicsAlphaBits=4")
 preview-gs-image-type-alist '((png png "-sDEVICE=png16m") (dvipng png 
"-sDEVICE=png16m") (jpeg jpeg "-sDEVICE=jpeg")
                               (pnm pbm "-sDEVICE=pnmraw") (tiff tiff 
"-sDEVICE=tiff12nc"))
 preview-fast-conversion t
 preview-prefer-TeX-bb nil
 preview-dvips-command "dvips -Pwww -i -E %d -o %m/preview.000"
 preview-fast-dvips-command "dvips -Pwww %d -o %m/preview.ps"
 preview-scale-function 'preview-scale-from-face
 preview-LaTeX-command '("%`%l \"\\nonstopmode\\nofiles\\PassOptionsToPackage{" 
("," . preview-required-option-list)
                         
"}{preview}\\AtBeginDocument{\\ifx\\ifPreview\\undefined" 
preview-default-preamble
                         "\\fi}\"%' %t")
 preview-required-option-list '("active" "tightpage" "auctex" 
(preview-preserve-counters "counters"))
 preview-preserve-counters nil
 preview-default-option-list '("displaymath" "floats" "graphics" "textmath" 
"sections" "footnotes")
 preview-default-preamble '("\\RequirePackage[" ("," . 
preview-default-option-list) "]{preview}[2004/11/05]")
 preview-LaTeX-command-replacements nil
 preview-dump-replacements '(preview-LaTeX-command-replacements
                             ("\\`\\([^ ]+\\)\\(\\( +-\\([^ 
\\\\\"]\\|\\\\\\.\\|\"[^\"]*\"\\)*\\)*\\)\\(.*\\)\\'"
                              "\\1 -ini -interaction=nonstopmode \"&\\1\" " 
preview-format-name ".ini \\5")
                             )
 preview-undump-replacements '(("\\`\\([^ ]+\\) .*? \"\\\\input\" \\(.*\\)\\'" 
"\\1 -interaction=nonstopmode \"&"
                                preview-format-name "\" \\2")
                               )
 preview-auto-cache-preamble 'ask
 preview-TeX-style-dir "c:/gnu/emacs-23.2/site-lisp/auctex/latex"
 )

Output from running `GSWIN32C.EXE -h':
GPL Ghostscript  9.00 (2010-09-14)
Copyright (C) 2010 Artifex Software, Inc.  All rights reserved.
Usage: gs [switches] [file1.ps file2.ps ...]
Most frequently used switches: (you can use # in place of =)
 -dNOPAUSE           no pause after page   | -q       `quiet', fewer messages
 -g<width>x<height>  page size in pixels   | -r<res>  pixels/inch resolution
 -sDEVICE=<devname>  select device         | -dBATCH  exit after last file
 -sOutputFile=<file> select output file: - for stdout, |command for pipe,
                                         embed %d or %ld for page #
Input formats: PostScript PostScriptLevel1 PostScriptLevel2 PostScriptLevel3 PDF
Default output device: display
Available devices:
   bbox bit bitcmyk bitrgb bj10e bj200 bjc600 bjc800 bmp16 bmp16m bmp256
   bmp32b bmpgray bmpmono bmpsep1 bmpsep8 cdeskjet cdj550 cdjcolor cdjmono
   declj250 deskjet devicen display djet500 djet500c eps9high eps9mid epson
   epsonc epswrite ibmpro ijs jetp3852 jpeg jpegcmyk jpeggray laserjet lbp8
   lj250 ljet2p ljet3 ljet3d ljet4 ljet4d ljetplus m8510 mswindll mswinpr2
   necp6 nullpage pamcmyk32 pbm pbmraw pcx16 pcx24b pcx256 pcxcmyk pcxgray
   pcxmono pdfwrite pgm pgmraw pgnm pgnmraw pj pjxl pjxl300 pkmraw png16
   png16m png256 pngalpha pnggray pngmono pnm pnmraw ppm ppmraw ps2write
   psdcmyk psdrgb psmono pswrite pxlcolor pxlmono r4081 spotcmyk st800
   stcolor svg t4693d2 t4693d4 t4693d8 tek4696 tiff12nc tiff24nc tiff32nc
   tiff48nc tiff64nc tiffcrle tiffg3 tiffg32d tiffg4 tiffgray tifflzw
   tiffpack tiffsep tiffsep1 txtwrite uniprint
Search path:
   C:\Programme\gs\gs9.00\lib ; C:\Programme\gs\fonts ;
   %rom%Resource/Init/ ; %rom%lib/ ; c:/gs/gs9.00/Resource/Init ;
   c:/gs/gs9.00/lib ; c:/gs/gs9.00/Resource/Font ; c:/gs/fonts
Initialization files are compiled into the executable.
For more information, see c:/gs/gs9.00/doc/Use.htm.
Please report bugs to bugs.ghostscript.com.


-- 
Dr. Frank Küster
EyeSense GmbH
Leiter Messtechnik
Stockstädter Str. 17
63762 Großostheim

Tel.:+49 6026 942 127
Fax.:+49 6026 942 126

Geschäftsleitung: Dr. Achim Müller 
Sitz der Gesellschaft: Stockstädter Straße 17, 63762 Großostheim. 
Registergericht Aschaffenburg HRB 9576

The Information contained in this message is confidential, intended only for 
use by the adressee listed above. If you have received this message in error, 
you are hereby notified that any disseminating, distributing or copying of this 
information is strictly prohibited. 




reply via email to

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