[Top][All Lists]

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

[AUCTeX] Re: preserving images, and image contrast

From: Rajneesh Hegde
Subject: [AUCTeX] Re: preserving images, and image contrast
Date: Wed, 8 Jun 2005 02:56:35 +0000 (UTC)
User-agent: Loom/3.14 (

> > images at the end of the session? If the previews are up-to-date (or
> > even reasonably so) at the end of the session, I'd like a way to
> > reuse them at the next start-up, instead of going through the whole
> > thing again.
> desktop.el

ok, when I use desktop (by adding desktop-load-default and desktop-read to the
end of my .emacs file), the png files are not deleted when I kill the emacs
session (though the .efmt file gets deleted). However:
1. The preview images are not restored automatically when I restart emacs in
that directory. (The buffer, point etc. are being restored, so desktop seems
to be otherwise working.)
2. I can't even regenerate the previews now - if I try C-c C-p C-d, I get
"error in process sentinel: preview-reraise-error: LaTeX found no preview 

I'm attaching the output log, and the state info at the end for reference.
How is desktop supposed to know how to save and restore the images anyway?
(Presumably, desktop.el is oblivious to preview-latex?) Is there a variable
that I add to desktop's list of saved variables?

preview-latex's output log:

Running `Preview-LaTeX' on `rtest' with ``latex -ini "&latex" prv_rtest.ini 
This is e-TeX, Version 3.141592-2.2 (MiKTeX 2.4) (INITEX)
entering extended mode
LaTeX2e <2003/12/01>
Babel <v3.8a> and hyphenation patterns for english, french, german, ngerman,
mylang, nohyphenation, loaded.
(D:\Programs\texmf\tex\latex\tools\.tex File ignored))
No auxiliary output files.

(rtest.tex (D:\Programs\texmf\tex\latex\base\article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(D:\Programs\texmf\tex\latex\base\size10.clo)) )
Beginning to dump on file prv_rtest.efmt
 (preloaded format=prv_rtest 2005.6.7)
4608 strings of total length 57502
45308 memory locations dumped; current usage is 207&43849
3353 multiletter control sequences
5716 words of font info for 21 preloaded fonts
14 hyphenation exceptions
Hyphenation trie of length 23938 has 761 ops out of 2048
  2 for language 4
  235 for language 3
  207 for language 2
  88 for language 1
  229 for language 0
No pages of output.
Transcript written on prv_rtest.log.

Preview-LaTeX finished at Tue Jun 07 22:36:02
Running `Preview-LaTeX' on `rtest' with ``latex "&prv_rtest" rtest.tex''
This is e-TeX, Version 3.141592-2.2 (MiKTeX 2.4)
entering extended mode
LaTeX2e <2003/12/01>
Babel <v3.8a> and hyphenation patterns for english, french, german, ngerman,
mylang, nohyphenation, loaded.
CUSTOMISED FORMAT. Preloaded files:
 article.cls    2004/02/16 v1.4f Standard LaTeX document class
  size10.clo    2004/02/16 v1.4f Standard LaTeX file (size option)
No file rtest.aux.
No auxiliary output files.

Preview: Fontsize 10pt
! Preview: Snippet 1 started.
l.3 \section
Preview: Tightpage -32891 -32891 32891 32891
! Preview: Snippet 1 ended.(655359+0x22609920).
l.3 \section{Rhabarber}
[1] )
(see the transcript file for additional information)
Output written on rtest.dvi (1 page, 944 bytes).
Transcript written on rtest.log.

Preview-LaTeX exited as expected with code 1 at Tue Jun 07 22:36:03
LaTeX: LaTeX found no preview images
state info:

Emacs  : GNU Emacs (i386-mingw-nt5.1.2600)
 of 2005-04-16 on LAPTOP
Package: rel-0-9-1

current state:

Output from running `gswin32c -h':
AFPL Ghostscript 8.51 (2005-04-18)
Copyright (C) 2005 artofcode LLC, Benicia, CA.  All rights reserved.
Usage: gs [switches] [ ...]
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
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 jpeggray laserjet lbp8 lj250
   ljet2p ljet3 ljet3d ljet4 ljet4d ljetplus m8510 mswindll mswinpr2 necp6
   nullpage 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 psdcmyk psdrgb psmono
   pswrite pxlcolor pxlmono r4081 spotcmyk st800 stcolor t4693d2 t4693d4
   t4693d8 tek4696 tiff12nc tiff24nc tiff32nc tiffcrle tiffg3 tiffg32d
   tiffg4 tiffgray tifflzw tiffpack tiffsep uniprint
Search path:
   . ; D:\Programs\ghostgum\gs\gs8.51\lib ; D:\Programs\ghostgum\gs\fonts ;
   D:\Programs\ghostgum\gs\gs8.51\Resource ; c:/gs/gs8.51/lib ;
   c:/gs/gs8.51/Resource ; c:/gs/fonts
For more information, see c:/gs/gs8.51/doc/Use.htm.
Report bugs to address@hidden, using the form in Bug-form.htm.

 AUC-TeX-version "11.55"
 LaTeX-command-style '(("" "%(PDF)%(latex) %S%(PDFout)"))
 image-types '(png 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
 preview-pdf2dsc-command "pdf2dsc %s.pdf %m/preview.dsc"
 preview-gs-command "gswin32c"
 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-scale-function 1.25
 preview-LaTeX-command '("%l \"\\nonstopmode\\nofiles\\PassOptionsToPackage{"
                         ("," . preview-required-option-list)
 preview-default-preamble "\\fi}\\input{%t}\"") 
 preview-required-option-list '("active" "tightpage" "auctex")
 preview-default-option-list '("displaymath" "floats" "graphics" "textmath"
                               "sections" "footnotes")
 preview-default-preamble '("\\RequirePackage["
                            ("," . preview-default-option-list)
 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 t

reply via email to

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