[Top][All Lists]

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

[Bug-AUCTeX] Re: Letterspacing breaks preview?

From: Andreas Matthias
Subject: [Bug-AUCTeX] Re: Letterspacing breaks preview?
Date: Tue, 03 Apr 2007 11:00:52 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (gnu/linux)

Andreas Matthias wrote:

> After doing `M-x preview-buffer' in the following example, y_1 is
> being previewed but /not/ y_2.
> \documentclass{article}
> \usepackage{microtype}
> \begin{document}
> $y_1$
> \textls{XXX}
> $y_2$
> \end{document}
> %%% Local Variables:
> %%% mode: TeX-PDF
> %%% End:

I have updated Emacs, AUCTeX, microtype, pdftex; cleaned up my texmf-tree.
But still the same. The second preview is missing. Can someone
confirm this?

See output of preview-report-bug at the end of this mail for detailed
informations on used versions.

_region_.pdf holds 2 pages and preview.dsc (attached to this mail)
has descriptions for two pages. But there is just one png (pr1-1.png)
in _region_.prv/tmp17884rkg/. The second png is missing.

Now, if I call gs manually

   gs -dOutputFile\=\(_region_.prv/tmp17884rkg/pr1-\%d.png\) -q -dSAFER 
-dNOPAUSE -DNOPLATFONTS -dPrinted -dTextAlphaBits\=4 -dGraphicsAlphaBits\=4 
-sDEVICE\=png16m -r86.1867x86.9857 _region_.prv/tmp17884rkg/preview.dsc

then actually /two/ pngs are created (pr1-1.png and pr1-2.png) with
the correct previews.

I am totally lost. I cannot imagine, why preview-latex doesn't create
the second png. Can someone help me to debug this?


ps: I started emacs with
    emacs -Q -l auctex.el -l preview.el t1.tex

%%CreationDate: (D:20070403104634+02'00')
%%DocumentMedia: y7.227x10.354 10.354 7.227 70 white ()
%%Pages: 2
/Page null def
/Page# 0 def
/PDFSave null def
/DSCPageCount 0 def
/DoPDFPage {dup /Page# exch store pdfgetpage pdfshowpage } def
GS_PDF_ProcSet begin
pdfdict begin
(_region_.pdf) (r) file { DELAYSAFER { .setsafe } if } stopped pop
 pdfopen begin
%%Page: 1 1
%%PageMedia: y7.227x10.354
1 DoPDFPage
%%Page: 2 2
%%PageMedia: y7.227x10.354
2 DoPDFPage
currentdict pdfclose

Emacs  : GNU Emacs (i686-pc-linux-gnu, GTK+ Version 2.8.19)
 of 2007-01-24 on ittea4
Package: preview-1.280

current state:
 AUCTeX-version "2007-04-01"
 LaTeX-command-style '(("" "%(PDF)%(latex) %S%(PDFout)"))
 image-types '(png tiff jpeg xpm postscript 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 "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-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-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 nil

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
   cfax cljet5 cljet5c cups deskjet devicen djet500 epswrite faxg3 faxg32d
   faxg4 hl1240 hl1250 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 rinkj spotcmyk tiff12nc tiff24nc
   tiff32nc tiffcrle tiffg3 tiffg32d tiffg4 tiffgray tifflzw tiffpack
   tiffsep uniprint x11 x11alpha x11cmyk x11gray2 x11gray4 x11mono xcf
Search path:
   . : /usr/share/ghostscript/8.54/lib :
   /usr/share/ghostscript/8.54/Resource :
For more information, see /usr/share/doc/ghostscript-gpl-8.54/html/Use.htm.
Report bugs to address@hidden, using the form in Bug-form.htm.

reply via email to

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