[OS X Emacs] Preview-latex errors

Dave Burnham david.j.burnham at gmail.com
Fri Nov 28 18:57:33 EST 2008


I'm hoping that someone here can help me troubleshoot the errors I'm
seeing with preview-latex. My Emacs is

GNU Emacs 23.0.60.1 (i386-apple-darwin9.5.0, NS apple-appkit-949.35)
of 2008-11-28

compiled with options --with-ns and --disable-ns-self-contained. My
TeX distribution is TeXLive 2007, installed via the MacTeX
installer. My AUCTex is version 11.85. When I compiled it I had to
specify the location of the Emacs binary. I also had to specify the
site-lisp directory (in /usr/local/share/emacs) and I chose to use
--without-texmf-dir.

My first problem was that Emacs couldn't find latex. I fixed this my
adding the following to my .emacs:

(setenv "PATH" (concat "/usr/texbin:/usr/local/bin:" (getenv "PATH")))

as described in other posts to this list. Now when I run C-c C-p C-d
on a simple TeX file with two equations, I get:

============
Running `Preview-LaTeX' on `test' with ``latex -interaction=nonstopmode 
"&prv_test" test.tex''
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
 %&-line parsing enabled.
entering extended mode
(./test.tex
LaTeX2e <2005/12/01>
Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, arabic, basque, bulgarian, coptic, welsh, czech, slovak, german, ng
erman, danish, esperanto, spanish, catalan, galician, estonian, farsi, finnish,
 french, greek, monogreek, ancientgreek, croatian, hungarian, interlingua, ibyc
us, indonesian, icelandic, italian, latin, mongolian, dutch, norsk, polish, por
tuguese, pinyin, romanian, russian, slovenian, uppersorbian, serbian, swedish, 
turkish, ukenglish, ukrainian, loaded.
CUSTOMISED FORMAT. Preloaded files:
        .
   paper.cls    1996/07/25 1.0i LaTeX document class (wm).
  size10.clo    2005/09/16 v1.4f Standard LaTeX file (size option)
        .
(./test.aux) (/usr/local/share/emacs/site-lisp/auctex/latex/preview.sty
(/usr/local/share/emacs/site-lisp/auctex/latex/prtightpage.def)
(/usr/local/share/emacs/site-lisp/auctex/latex/prauctex.def
No auxiliary output files.


(/usr/local/share/emacs/site-lisp/auctex/latex/prauctex.cfg))
(/usr/local/share/emacs/site-lisp/auctex/latex/prfootnotes.def)
Preview: Fontsize 10pt
)
! Preview: Snippet 1 started.
<-><->
      
l.10 \begin{equation}
                     
Preview: Tightpage -32891 -32891 32891 32891
! Preview: Snippet 1 ended.(655360+0x22609920).
<-><->
      
l.13 \end{equation}
                   
[1]
! Preview: Snippet 2 started.
<-><->
      
l.14 \begin{equation}
                     
! Preview: Snippet 2 ended.(655360+0x22609920).
<-><->
      
l.17 \end{equation}
                   
[2] )
(see the transcript file for additional information)
Output written on test.dvi (2 pages, 2000 bytes).
Transcript written on test.log.

Preview-LaTeX exited as expected with code 1 at Fri Nov 28 17:45:01
LaTeX: LaTeX found no preview images
================

As you can see from the last line, I don't get any preview
images. I've also tried the file 'circ.tex' that comes with
preview-latex, and get the following error at the end of the log:

========

Preview-LaTeX exited as expected with code 1 at Fri Nov 28 17:47:41
Running `Preview-DviPS' with ``dvips -Pwww circ.dvi -o
circ.prv/tmp29462dMI/preview.ps'' 
This is dvips(k) 5.96 Copyright 2005
Radical Eye Software (www.radicaleye.com) ' TeX output
2008.11.28:1747' -> circ.prv/tmp29462dMI/preview.ps
<tex.pro><cm-super-t1.enc><texps.pro><special.pro>. <cmsy7.pfb><lcircle1.pfb>
<sftt0900.pfb><sftt0800.pfb><sfrm1000.pfb><cmr7.pfb><cmsy10.pfb><cmmi7.pfb>
<cmex10.pfb><cmr10.pfb><cmmi10.pfb><sfbx1440.pfb>[1] [2] [3] [4] [5]
[6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20]
[21] [22] [23] [24] [25] [26] [27] [28] [29] [30] [31] [32] [33] [34]
[35] [36] [37] [38] [39] [40] [41] [42] [43] [44] [45] [46] [47] [48]
[49] [50] [51] [52] [53] [54] [55] [56] [57] [58] [59] [60] [61] [62]
[63] [64] [65] [66] [67] [68] [69] [70] [71] [72] [73] [74] [75] [76]
[77] [78] [79] [80] [81] [82] [83] [84] [85] [86] [87] [88] [89] [90]
[91] [92] [93] [94] [95] [96] [97] [98] [99] [100] [101] [102] [103]

Preview-DviPS finished at Fri Nov 28 17:47:42
DviPS sentinel: Searching for program: No such file or directory, gs
==========

As circ.tex is considerably longer than my test.tex, the log file is
quite long and I didn't want to dump too much on the list.

I've tried opening a shell in Emacs (M-x shell) and it can find gs at
/usr/local/bin. My GhostScript is 8.57.

I've run out of ideas at this point... Does anyone have any
suggestions? The irony is that I have Emacs+AUCTex+doc-view working
properly on my Windows XP desktop, and all I really want is a similar
environment on my Mac when I'm writing my thesis. I'm posting to this
list instead of one of the AUCTex lists because I can't shake the
feeling that it's related to the PATH issue discussed previously.

Thanks in advance for any help,
Dave







More information about the MacOSX-Emacs mailing list