auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] Preview images do not appear


From: Adam M. Goldstein
Subject: Re: [AUCTeX] Preview images do not appear
Date: Sun, 15 Apr 2007 15:11:00 -0400

Sorry Ralph, apparently the "reply all" button is too advanced for me!

On Apr 15, 2007, at 1:28 PM, Ralf Angeli wrote:

* Adam M. Goldstein (2007-04-15) writes:

On Apr 15, 2007, at 11:21 AM, Ralf Angeli wrote:

Are you able to use mouse-3, usually a right-click, on the image and
selecting "View error" from the context menu it is supposed to open?

Right click does indeed produce mouse-3 but the contextual menu that
shows up is clearly broken. This appears to be a known issue with
Emacs.app, the GNUStep port of Emacs that I am using.

I hope you are not out of ideas now . . .

Not yet.  Put point right in front of the no-entry sign image and type
`M-:'. Then insert the following string into the minibuffer and type <RET>.

(let ((out (overlay-get (car (overlays-at (1+ (point)))) 'before- string))) (pop-to-buffer "*foo*") (insert (prin1-to-string out)))


Here it is:

#("x" 0 1 (keymap (keymap (mouse-3 lambda nil (interactive) (popup- menu (quote ("PostScript error" ["View error" (lambda nil (interactive "@") (preview-mouse-open-error "gs -dOutputFile\\=\\ (PreviewTest.prv/tmp376Kvk/pr1-1.png\\) -q -dSAFER -dNOPAUSE - DNOPLATFONTS -dPrinted -dTextAlphaBits\\=4 -dGraphicsAlphaBits\\=4 - sDEVICE\\=png16m -r110.557x110.613 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 0.996109 0.996109 0.996109 0.996109 setrgbcolor clippath fill 0 0 0 0.996109 setrgbcolor}{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 /GS_PDF_ProcSet GS_PDF_ProcSet dup maxlength dict copy dup begin/graphicsbeginpage{//graphicsbeginpage exec 0 0 0 0.996109 3 copy rg RG}bind store end readonly store (PreviewTest.prv/ tmp376Kvk/preview.dsc)(r)file dup dup 0 setfileposition 433()/ SubFileDecode filter cvx exec dup dup 433 setfileposition 49()/ SubFileDecode filter cvx<<>>preview-do
Error: /typecheck in --aload--
Operand stack:
   --dict:5/5(L)--   --nostringval--   0   0
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- -- nostringval-- 2 %stopped_push --nostringval-- -- nostringval-- %loop_continue 2 3 %oparray_pop -- nostringval-- --nostringval-- false 1 % stopped_push .runexec2 --nostringval-- --nostringval-- -- nostringval-- 2 %stopped_push --nostringval-- -- nostringval-- false 1 %stopped_push 1148 --nostringval-- % end_runandhide --nostringval-- --nostringval-- 3 8 % oparray_pop --nostringval--
Dictionary stack:
--dict:1125/1686(ro)(G)-- --dict:2/20(G)-- --dict:77/200 (L)-- --dict:105/127(ro)(L)-- --dict:253/347(ro)(G)-- --dict: 20/24(L)-- --dict:4/6(L)-- --dict:19/20(L)--
Current allocation mode is local
Last OS error: 2

Preview-Ghostscript finished
"))] ["View source" (lambda nil (interactive "@") (preview-mouse-open- eps "/Users/drifter/Documents/PreviewTest/PreviewTest.prv/tmp376Kvk/ preview.dsc" 434))])))) (mouse-2 lambda nil (interactive "@") (preview-mouse-open-error "gs -dOutputFile\\=\\(PreviewTest.prv/ tmp376Kvk/pr1-1.png\\) -q -dSAFER -dNOPAUSE -DNOPLATFONTS -dPrinted - dTextAlphaBits\\=4 -dGraphicsAlphaBits\\=4 -sDEVICE\\=png16m - r110.557x110.613 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 0.996109 0.996109 0.996109 0.996109 setrgbcolor clippath fill 0 0 0 0.996109 setrgbcolor}{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 /GS_PDF_ProcSet GS_PDF_ProcSet dup maxlength dict copy dup begin/graphicsbeginpage{//graphicsbeginpage exec 0 0 0 0.996109 3 copy rg RG}bind store end readonly store (PreviewTest.prv/ tmp376Kvk/preview.dsc)(r)file dup dup 0 setfileposition 433()/ SubFileDecode filter cvx exec dup dup 433 setfileposition 49()/ SubFileDecode filter cvx<<>>preview-do
Error: /typecheck in --aload--
Operand stack:
   --dict:5/5(L)--   --nostringval--   0   0
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- -- nostringval-- 2 %stopped_push --nostringval-- -- nostringval-- %loop_continue 2 3 %oparray_pop -- nostringval-- --nostringval-- false 1 % stopped_push .runexec2 --nostringval-- --nostringval-- -- nostringval-- 2 %stopped_push --nostringval-- -- nostringval-- false 1 %stopped_push 1148 --nostringval-- % end_runandhide --nostringval-- --nostringval-- 3 8 % oparray_pop --nostringval--
Dictionary stack:
--dict:1125/1686(ro)(G)-- --dict:2/20(G)-- --dict:77/200 (L)-- --dict:105/127(ro)(L)-- --dict:253/347(ro)(G)-- --dict: 20/24(L)-- --dict:4/6(L)-- --dict:19/20(L)--
Current allocation mode is local
Last OS error: 2

Preview-Ghostscript finished
"))) help-echo "[mouse-2] views error message
[mouse-3] more options" mouse-face highlight display (image :type xpm :file "/usr/share/emacs/site-lisp/auctex/images/ prverr16.xpm" :ascent 90)))


BTW, could you please also include the output you get when executing
`M-x preview-report-bug RET' after running `C-c C-p C-c'?


Here it is:

From: Adam Goldstein <address@hidden>
To: address@hidden
Subject: 11.83; PreviewLateXBug
--text follows this line--

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

Here is the file I used to generate this error:

\documentclass{article}
\begin{document}
This is a symbol: $\alpha$.
\end{document}

All that happens is that a red circle appears with a line through it; no previews appear.

Emacs  : GNU Emacs 23.0.0.1 (i386-apple-darwin8.8.2, *Step 9.0-rc1)
of 2007-01-04 on adam-goldsteins-computer.local
Package: 11.83

Run buffer contents:

Running `LaTeX' on `PreviewTest' with ``pdflatex "\nonstopmode\input {PreviewTest.tex}"''
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
%&-line parsing enabled.
entering extended mode
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.

(./PreviewTest.tex
(/usr/local/texlive/2007/texmf-dist/tex/latex/base/article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(/usr/local/texlive/2007/texmf-dist/tex/latex/base/size10.clo))
(./PreviewTest.aux) [1{/usr/local/texlive/2007/texmf-var/fonts/map/ pdftex/updma p/pdftex.map}] (./PreviewTest.aux) )</usr/local/texlive/2007/texmf- dist/fonts/t ype1/bluesky/cm/cmmi10.pfb></usr/local/texlive/2007/texmf-dist/fonts/ type1/blue
sky/cm/cmr10.pfb>
Output written on PreviewTest.pdf (1 page, 8581 bytes).
Transcript written on PreviewTest.log.

LaTeX finished at Sun Apr 15 14:50:56


current state:
==============
(setq
AUC-TeX-version "11.83"
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 "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 'preview-scale-from-face
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':
GPL Ghostscript 8.54 (2006-05-17)
Copyright (C) 2006 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: x11
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 png48 pngalpha pnggray pngmono pnm pnmraw ppm ppmraw
   ps2write psdcmyk psdrgb psgray psmono psrgb pswrite pxlcolor pxlmono
   spotcmyk tiff12nc tiff24nc tiff32nc tiffcrle tiffg3 tiffg32d tiffg4
tiffgray tifflzw tiffpack tiffsep uniprint x11 x11alpha x11cmyk x11gray2
   x11gray4 x11mono xcf
Search path:
   . : /usr/local/share/ghostscript/8.54/lib :
   /usr/local/share/ghostscript/8.54/Resource :
   /usr/local/share/ghostscript/fonts
For more information, see /usr/local/share/ghostscript/8.54/doc/Use.htm.
Report bugs to address@hidden, using the form in Bug-form.htm.

[End of bug report]

--
Dr. Adam M. Goldstein
amgoldstein <at> mac <dot> com
http://homepage.mac.com/amgoldstein







reply via email to

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