bug-auctex
[Top][All Lists]
Advanced

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

Re: [Bug-AUCTeX] rel-0-9-1; See http://tinyurl.com/qla6w


From: Christopher Menzel
Subject: Re: [Bug-AUCTeX] rel-0-9-1; See http://tinyurl.com/qla6w
Date: Wed, 11 Oct 2006 15:59:32 -0500

I'm not seeing any error icons.  The first piece of latex code in the
buffer is rendered correctly ("\section*{Introduction}") but nothing
else thereafter.  Everything *seems* to be running properly, I just
only ever see the first graphic in the portion of the document being
previewed (i.e., I get the same result if I try to preview a region
instead of the whole buffer).

One possible reason for that is that preview-latex can't recognize the
GhostScript prompt and so is waiting in vain for the proper moment to
feed it further input.

What output do you get when just calling

gs

on a command line? Is the prompt just
GS>
and nothing else?

Ah, here's a problem -- emacs was calling a version of AFPL ghostscript that DarwinPorts had installed in /opt/local/bin, which was looking for X:

  515: gs
  AFPL Ghostscript 8.54 (2006-05-17)
  Copyright (C) 2005 artofcode LLC, Benicia, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
  AFPL Ghostscript 8.54: Cannot open X display `(null)'.
  **** Unable to open the initial device, quitting.

I therefore deactivated this port (which was apparently installed as a dependency for another DarwinPorts port) so that a call to gs would run the version that comes with OS X in /usr/local/bin; calling gs from the command line now brings up a prompt, although one that is preceded by essentially the msg above:

  517: gs
  AFPL Ghostscript 8.51 (2005-04-18)
  Copyright (C) 2005 artofcode LLC, Benicia, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
  GS>

Unfortunately, switching to this flavor of gs did not solve the problem with preview; however, instead of rendering exactly one graphic, I now get an error icon at the corresponding point in the source file:

gs -dOutputFile\=\(_region_.prv/tmp6377-bf/pr1-1.png\) -q -dSAFER - dNOPAUSE -DNOPLATFONTS -dPrinted -dTextAlphaBits\=4 - dGraphicsAlphaBits\=4 -sDEVICE\=png16m -r115.257x115.291 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} stopped{handleerror quit}if}ifelse systemdict /.runandhide known {{.runandhide}}if stopped{handleerror quit}if count 1 gt{pop/exec errordict/stackoverflow get exec}if aload pop restore}bind def (_region_.prv/tmp6377-bf/preview.dsc)(r)file dup dup 0 setfileposition 5084()/SubFileDecode filter cvx exec dup dup 5084 setfileposition 53()/SubFileDecode filter cvx<<>>preview-do
   **** Embedded font uses undefined procedure RD
   **** Embedded font uses undefined procedure RD
   <Repeated many many times, then...>
   **** Embedded font uses undefined procedure ND
   **** Embedded font uses undefined procedure RD
   **** Embedded font uses undefined procedure ND
   **** Embedded font uses undefined procedure RD
   <Repeated many times>
GS<1>

I get essentially the same error using palatino or the default Roman.

Here is the actual bug report output:

Emacs  : GNU Emacs 22.0.50.1 (i686-apple-darwin8.5.1)
of 2006-02-21 on offworld.local
Package: 11.83

Run buffer contents:

Running `Preview-LaTeX' on `_region_' with ``/usr/local/teTeX/bin/ powerpc-apple-darwin-current/pdflatex "&prv_globalmod-JPL" _region_.tex''
This is pdfeTeX, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5)
entering extended mode
(./_region_.tex
LaTeX2e <2005/12/01>
Babel <v3.8d> and hyphenation patterns for american, french, german, ngerman, d
utch, italian, norsk, portuges, spanish, swedish, nohyphenation, loaded.
CUSTOMISED FORMAT. Preloaded files:
        .
globalmod-JPL.tex
  amsart.cls    2004/08/06 v2.20
amsmath.sty    2000/07/18 v2.13 AMS math features
amstext.sty    2000/06/29 v2.01
  amsgen.sty    1999/11/30 v2.0
  amsbsy.sty    1999/11/29 v1.2d
  amsopn.sty    1999/12/14 v2.01 operator names
    umsa.fd    2002/01/19 v2.2g AMS font definitions
amsfonts.sty    2001/10/25 v2.2f
mathdesign.sty    2006/01/29 v1.55 Math Design Project
  keyval.sty    1999/03/16 v1.13 key=value parser (DPC)
  ifthen.sty    2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)
   mdbch.cfg
mdbch.sty 2006/01/29 v1.55 bitstream charter + mdbch (Math Design Project
)
  mdfont.def    2006/01/29 v1.55 (Math Design Project)
mdsffont.def    2006/01/29 v1.55 (Math Design Project)
mdttfont.def    2006/01/29 v1.55 (Math Design Project)
ot1mdbch.fd 2006/01/28 Fontinst v1.928 font definitions for OT1/ mdbch.
fontenc.sty
   t1enc.def    2005/09/27 v1.99g Standard LaTeX file
t1mdbch.fd    2006/01/28 Fontinst v1.928 font definitions for T1/mdbch.
latexsym.sty    1998/08/17 v2.2e Standard LaTeX package (lasy symbols)
verbatim.sty 2003/08/22 v1.5q LaTeX2e package for verbatim enhancements
pdfsync.sty    2004/01/31 v0.6
omlmdbch.fd 2006/01/28 Fontinst v1.928 font definitions for OML/ mdbch. omsmdbch.fd 2006/01/28 Fontinst v1.928 font definitions for OMS/ mdbch. omxmdbch.fd 2006/01/28 Fontinst v1.928 font definitions for OMX/ mdbch.
    umsa.fd    2002/01/19 v2.2g AMS font definitions
    umsb.fd    2002/01/19 v2.2g AMS font definitions
mdamdbch.fd 2006/01/28 Fontinst v1.928 font definitions for MDA/ mdbch. mdbmdbch.fd 2006/01/28 Fontinst v1.928 font definitions for MDB/ mdbch.
   ulasy.fd    1998/08/17 v2.2e LaTeX symbol font definitions
        .
(./_region_.aux)
(/usr/local/teTeX/share/texmf.local/tex/latex/mathdesign/mdacmr.fd)
(/usr/local/teTeX/share/texmf.local/tex/latex/mathdesign/mdbcmr.fd)
(/usr/local/teTeX/share/texmf.local/tex/latex/preview/preview.sty
(/usr/local/teTeX/share/texmf.local/tex/latex/preview/prtightpage.def)
(/usr/local/teTeX/share/texmf.local/t...

[...]

        ...of $\mathcal{L}$ is
! Preview: Snippet 939 ended.(572713+0x23592960).
<-><->

l.2809 }
        $^{,}$%
[939]
! Preview: Snippet 940 started.
<-><->

l.2809 }$
         ^{,}$%
! Preview: Snippet 940 ended.(297712+0x23592960).
<-><->

l.2809 }$^{,}$
              %
[940]
! Preview: Snippet 941 started.
<-><->

l.2810 \footnote
                {Acknowledgments.}
! Preview: Snippet 941 ended.(572713+0x23592960).
<-><->

l.2810 \footnote{Acknowledgments.}

[941] (./_region_.bbl
! Preview: Snippet 942 started.
<-><->

l.1 \begin{thebibliography}{10}

! Preview: Snippet 942 ended.(824811+0x23592960).
<-><->

l.1 \begin{thebibliography}{10}

[942])
\newlabel{tocindent-1}{0pt}
\newlabel{tocindent0}{12.26888pt}
\newlabel{tocindent1}{17.6065pt}
\newlabel{tocindent2}{26.30417pt}
\newlabel{tocindent3}{0pt}
)
(see the transcript file for additional information){/usr/local/teTeX/ share/tex mf.tetex/fonts/enc/dvips/psnfssx/texnansi.enc}</usr/local/teTeX/share/ texmf.tet ex/fonts/type1/bitstrea/charter/bchbi8a.pfb></usr/local/teTeX/share/ texmf.local /fonts/type1/mathdesign/mdbch/md-chr7v.pfb></usr/local/teTeX/share/ texmf.tetex/ fonts/type1/bitstrea/charter/bchb8a.pfb></usr/local/teTeX/share/ texmf.tetex/fon ts/type1/bluesky/latex/lasy10.pfb></usr/local/teTeX/share/texmf.tetex/ fonts/typ e1/bluesky/latex/lasy7.pfb></usr/local/teTeX/share/texmf.local/fonts/ type1/math design/mdbch/md-chrma.pfb></usr/local/teTeX/share/texmf.local/fonts/ type1/mathd esign/mdbch/md-chr7t.pfb></usr/local/teTeX/share/texmf.local/fonts/ type1/mathde sign/mdbch/md-chri7m.pfb></usr/local/teTeX/share/texmf.local/fonts/ type1/mathde sign/mdbch/md-chr7y.pfb></usr/local/teTeX/share/texmf.tetex/fonts/ type1/bitstre a/charter/bchri8a.pfb></usr/local/teTeX/share/texmf.tetex/fonts/type1/ bitstrea/
charter/bchr8a.pfb>
Output written on _region_.pdf (942 pages, 493314 bytes).
Transcript written on _region_.log.

Preview-LaTeX exited as expected with code 1 at Wed Oct 11 15:44:19
Running `Preview-PDF2DSC' with ``pdf2dsc _region_.pdf _region_.prv/ tmp6377-bf/preview.dsc''

Preview-PDF2DSC finished at Wed Oct 11 15:44:20
Running `Preview-Ghostscript' with ``gs -dOutputFile\=\(_region_.prv/ tmp6377-bf/pr1-\%d.png\) -q -dSAFER -dNOPAUSE -DNOPLATFONTS -dPrinted -dTextAlphaBits\=4 -dGraphicsAlphaBits\=4 -sDEVICE\=png16m - r115.257x115.291''

Preview-Ghostscript finished at Wed Oct 11 15:44:20

current state:
==============
(setq
AUC-TeX-version "11.83"
LaTeX-command-style '(("." "/usr/local/teTeX/bin/powerpc-apple-darwin- current/pdflatex"))
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 "gs"
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 1.6
preview-LaTeX-command '("%l \"\\nonstopmode\\nofiles\ \PassOptionsToPackage{"
                         ("," . preview-required-option-list)
                         
"}{preview}\\AtBeginDocument{\\ifx\\ifPreview\\undefined"
                         preview-default-preamble "\\fi}\\input{%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 \"&\\1\" " preview-format-name ".ini \\5")
                             )
preview-undump-replacements '(("\\`\\([^ ]+\\)\\(\\( -\\([^ \"]\\|\"[^ \"]*\"\\)*\\)*\\).*\\input{\\([^}]*\\)}.*\\'" "\\1 \"&" preview- format-name "\" \\5")
                               )
preview-auto-cache-preamble 'ask
)

Output from running `gs -h':
AFPL Ghostscript 8.51 (2005-04-18)
Copyright (C) 2005 artofcode LLC, Benicia, CA.  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: bmpmono
Available devices:
bbox bit bitcmyk bitrgb bj10e bj200 bjc600 bjc800 bmp16 bmp16m bmp256 bmp32b bmpgray bmpmono bmpsep1 bmpsep8 cdeskjet cdj550 cdjcolor cdjmono cljet5 cljet5c deskjet devicen djet500 epswrite faxg3 faxg32d faxg4 ijs jpeg jpeggray laserjet lj5gray lj5mono ljet2p ljet3 ljet3d ljet4 ljet4d ljetplus nullpage pbm pbmraw pcx16 pcx24b pcx256 pcxcmyk pcxgray pcxmono pdfwrite pgm pgmraw pgnm pgnmraw pj pjxl pjxl300 pkm pkmraw pksm pksmraw
   png16 png16m png256 pngalpha pnggray pngmono pnm pnmraw ppm ppmraw
   psdcmyk psdrgb psgray psmono psrgb pswrite pxlcolor pxlmono spotcmyk
   tiff12nc tiff24nc tiff32nc tiffcrle tiffg3 tiffg32d tiffg4 tiffgray
   tifflzw tiffpack tiffsep uniprint xcf
Search path:
   . : /usr/local/share/ghostscript/8.51/lib :
   /usr/local/share/ghostscript/8.51/Resource :
   /usr/local/share/ghostscript/fonts
For more information, see /usr/local/share/ghostscript/8.51/doc/Use.htm.
Report bugs to address@hidden, using the form in Bug-form.htm.


Thanks again.

-chris






reply via email to

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