bug-auctex
[Top][All Lists]
Advanced

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

[Bug-AUCTeX] 11.86; pngs not being generated by preview-latex


From: Clark Taylor
Subject: [Bug-AUCTeX] 11.86; pngs not being generated by preview-latex
Date: Sat, 9 Oct 2010 23:22:14 -0700

I cannot get preview-latex working on my system with Windows Vista.  I
have all of the other programs properly installed (I have done this
numerous times on other systems), but when I run preview with the simple
latex file below, I get a big red stop sign instead of my beautiful
\mu.  To debug, I have done the following things:

I can open up a "png" file directly in emacs and it displays, so I know
I am connecting with libpng properly.

I run gswin32c from the command line (using all the same switches as auctex generates) and it properly converts a pdf
into a png.  In addition, it runs from anywhere in the command line so I
know the path is set up properly.

Finally, I can look at the output of the preview command (using C-c C-l)
and look in the directory where it is putting temporary files.  While
the .dsc is generated, there are not .png files showing up in this
directory.  I am at a lose as to why.

Any help you can give me is greatly appreciated.

Clark Taylor

Example Latex file...

\documentclass[11pt,onecolumn]{IEEEtran}

\usepackage{graphicx}
\usepackage{amsmath}

\setlength{\textheight}{9in}
\setlength{\textwidth}{6.5in}
\setlength{\oddsidemargin}{-0.0in}
\setlength{\evensidemargin}{-0.0in}

\begin{document}
$\mu$
\end{document}

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

Run buffer contents:

Running `Preview-LaTeX' on `IntroMotiv' with ``latex -ini -interaction=nonstopmode "&latex" "prv_IntroMotiv".ini   "\nonstopmode\nofiles\PassOptionsToPackage{active,tightpage,auctex}{preview}\AtBeginDocument{\ifx\ifPreview\undefined\RequirePackage[displaymath,floats,graphics,textmath,sections,footnotes]{preview}[2004/11/05]\fi}" "\input" "IntroMotiv.tex"''
This is pdfTeX, Version 3.1415926-1.40.10 (MiKTeX 2.8) (INITEX)
Running miktex-pdftex.exe...
This is pdfTeX, Version 3.1415926-1.40.10 (MiKTeX 2.8) (INITEX)

entering extended mode

("C:\Program Files\MiKTeX 2.8\tex\latex\config\latex.ini"

(C:\Users\cntaylor\AppData\Roaming\MiKTeX\2.8\tex\generic\config\pdftexconfig.t

ex)

("C:\Program Files\MiKTeX 2.8\tex\latex\base\latex.ltx"

("C:\Program Files\MiKTeX 2.8\tex\latex\00miktex\texsys.cfg")

./texsys.aux found





address@hidden set to: ./.





Assuming \openin and \input 

have the same search path.





Defining UNIX/DOS style filename parser.



catcodes, registers, compatibility for TeX 2,  parameters,

LaTeX2e <2009/09/24>

hacks, control, par, spacing, files, font encodings, lengths,

====================================



Local config file fonttext.cfg used



====================================

("C:\Program Files\MiKTeX 2.8\tex\latex\00miktex\fonttext.cfg"

("C:\Program Files\MiKTeX 2.8\tex\latex\base\fonttext.ltx"

=== Don't modify this file, use a .cfg file instead ===



("C:\Program Files\MiKTeX 2.8\tex\latex\base\omlenc.def")

("C:\Program Files\MiKTeX 2.8\tex\latex\base\t1enc.def")

("C:\Program Files\MiKTeX 2.8\tex\latex\base\ot1enc.def")

("C:\Program Files\MiKTeX 2.8\tex\latex\base\omsenc.def")

("C:\Program Files\MiKTeX 2.8\tex\latex\base\t1cmr.fd")

("C:\Program Files\MiKTeX 2.8\tex\latex\base\ot1cmr.fd")

("C:\Program Files\MiKTeX 2.8\tex\latex\base\ot1cmss.fd")

("C:\Program Files\MiKTeX 2.8\tex\latex\base\ot1cmtt.fd")))

====================================



Local config file fontmath.cfg used



====================================

("C:\Program Files\MiKTeX 2.8\tex\latex\00miktex\fontmath.cfg"

("C:\Program Files\MiKTeX 2.8\tex\latex\base\fontmath.ltx"

=== Don't modify this file, use a .cfg file instead ===



("C:\Program Files\MiKTeX 2.8\tex\latex\base\omlcmm.fd")

("C:\Program Files\MiKTeX 2.8\tex\latex\base\omscmsy.fd")

("C:\Program Files\MiKTeX 2.8\tex\latex\base\omxcmex.fd")

("C:\Program Files\MiKTeX 2.8\tex\latex\base\ucmr.fd")))

====================================



Local config file preload.cfg used



=========...

[...]

...PQR)
    trig.sty    1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg    2007/01/18 v1.5 graphics configuration of teTeX/TeXLive
   dvips.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
 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
  ot1pcr.fd    2001/06/04 font definitions for OT1/pcr.
  ot1phv.fd    2001/06/04 scalable font definitions for OT1/phv.
        .
No file _region_.aux.
("C:\Program Files\MiKTeX 2.8\tex\latex\preview\preview.sty"
("C:\Program Files\MiKTeX 2.8\tex\latex\preview\prtightpage.def")
("C:\Program Files\MiKTeX 2.8\tex\latex\preview\prauctex.def"
No auxiliary output files.


("c:/Program Files/emacs-23.2/site-lisp/auctex/latex\prauctex.cfg"))
("C:\Program Files\MiKTeX 2.8\tex\latex\preview\prfootnotes.def")
Preview: Fontsize 11pt
)  !name(IntroMotiv.tex) !offset(-3) 
! Preview: Snippet 1 started.
<-><->
      
l.18 \section
             {Introduction/Motivation}
Preview: Tightpage -32891 -32891 32891 32891
! Preview: Snippet 1 ended.(489486+9006x30785863).
<-><->
      
l.18 \section{Introduction/Motivation}
                                      
[1]
! Preview: Snippet 2 started.
<-><->
      
l.55 $
      \mu$
! Preview: Snippet 2 ended.(308974+139537x432401).
<-><->
      
l.55 $\mu$
          
[2] )
(see the transcript file for additional information)
Output written on _region_.dvi (2 pages, 1808 bytes).
Transcript written on _region_.log.

Preview-LaTeX exited as expected with code 1 at Sun Oct 10 02:10:42
Running `Preview-DviPS' with ``dvips -Pwww "_region_.dvi" -o "_region_.prv/tmp3856SMY"/preview.ps''
This is dvips(k) 5.98 Copyright 2009 Radical Eye Software (www.radicaleye.com)
' TeX output 2010.10.10:0210' -> _region_.prv/tmp3856SMY/preview.ps
<C:/Program Files/MiKTeX 2.8/dvips/base/tex.pro>
<C:/Program Files/MiKTeX 2.8/fonts/enc/dvips/fontname/8r.enc>
<C:/Program Files/MiKTeX 2.8/dvips/base/texps.pro>
<C:/Program Files/MiKTeX 2.8/dvips/base/special.pro>. 
<C:/Program Files/MiKTeX 2.8/fonts/type1/public/amsfonts/cm/cmmi10.pfb>[1] 
[2] 

Preview-DviPS finished at Sun Oct 10 02:10:42
Running `Preview-Ghostscript' with ``"GSWIN32C.EXE" "-dOutputFile=(_region_.prv/tmp3856SMY/pr1-%d.png)" "-q" "-dSAFER" "-dNOPAUSE" "-DNOPLATFONTS" "-dPrinted" "-dTextAlphaBits=4" "-dGraphicsAlphaBits=4" "-sDEVICE=png16m" "-r64.0824x64.196"''

Preview-Ghostscript finished at Sun Oct 10 02:10:43

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:/Program Files/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:\Program Files\gs\gs9.00\lib ; C:\Program Files\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.


reply via email to

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