GNU bug report logs - #20115
11.88; Preview images get mis-aligned

Previous Next

Package: auctex;

Reported by: Dylan Thurston <dpthurst <at> indiana.edu>

Date: Mon, 16 Mar 2015 05:16:01 UTC

Severity: normal

Tags: unreproducible

Found in version 11.88

Done: Arash Esbati <arash <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 20115 in the body.
You can then email your comments to 20115 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-auctex <at> gnu.org:
bug#20115; Package auctex. (Mon, 16 Mar 2015 05:16:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Dylan Thurston <dpthurst <at> indiana.edu>:
New bug report received and forwarded. Copy sent to bug-auctex <at> gnu.org. (Mon, 16 Mar 2015 05:16:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Dylan Thurston <dpthurst <at> indiana.edu>
To: bug-auctex <at> gnu.org
Subject: 11.88; Preview images get mis-aligned
Date: Mon, 16 Mar 2015 01:11:22 -0400
[Message part 1 (text/plain, inline)]
On certain documents, the preview images become misaligned with the
text. The exact circumstances are a bit of a mystery to me. I've
attached an example that's as minimal as I could make it. Some
features that are necessary for bad behaviour on my system:

* Removing the TiKz library makes the bug disappear (even though TiKz
  is not used in this snippet).

* Removing the duplicates of the text makes the bug disappear.

* Removing the "proof" environments makes the bug disappear.

* Removing some of the text that does not involve any math mode or
  preview images makes the bug disappear.

On my system, starting with the 13th copy of the text, the images are
mis-aligned. I've attached a screenshot showing versions just before
and just after the bug triggers.

Please let me know if I can provide any more information.

Emacs  : GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.14.5)
 of 2014-12-09 on gaia, modified by Debian
Package: 11.88

Run buffer contents:

Running `Preview-LaTeX' on `_region_' with ``pdflatex  -file-line-error   "\nonstopmode\nofiles\PassOptionsToPackage{active,tightpage,auctex}{preview}\AtBeginDocument{\ifx\ifPreview\undefined\RequirePackage[displaymath,floats,graphics,textmath,sections]{preview}[2004/11/05]\fi}" "\input" _region_.tex''
This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2015/dev/Debian) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
LaTeX2e <2014/05/01>
Babel <3.9l> and hyphenation patterns for 4 languages loaded.

No auxiliary output files.

(./_region_.tex  !name(t.tex)
(/usr/share/texlive/texmf-dist/tex/latex/amscls/amsart.cls
Document Class: amsart 2009/07/02 v2.20.1

Class amsart Warning: When the draft option is used, the \includegraphics
(amsart)              command will print blank placeholder boxes
(amsart)              for the graphics.

(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsa.fd)
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(/usr/share/texlive/texmf-dist/tex/latex/pgf/frontendlayer/tikz.sty
(/usr/share/texlive/texmf-dist/tex/latex/pgf/basiclayer/pgf.sty
(/usr/share/texlive/texmf-dist/tex/latex/pgf/utilities/pgfrcs.sty
(/usr/share/texlive/texmf-dist/tex/generic/pgf/utilities/pgfutil-common.tex
(/usr/share/texlive/texmf-dist/tex/generic/pgf/utilities/pgfutil-common-lists.t
ex)) (/usr/share/texlive/texmf-dist/tex/generic/pgf/utilities/pgfutil-latex.def
(/usr/share/texlive/texmf-dist/tex/latex/ms/everyshi.sty))
(/usr/share/texlive/texmf-dist/tex/generic/pgf/utilities/pgfrcs.code.tex))
(/usr/share/texlive/texmf-dist/tex/latex/pgf/basiclayer/pgfcore.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/graphics.cfg)
(/usr/share/texlive/texmf-dist/tex/latex/pdftex-def/pdftex.def
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/usr/share/texlive/texmf-dist/tex/generic/ob...

[...]

	...i$ is a cover of $\phi$, then $S[\phi] \le S[...

./_region_.tex:150: Preview: Snippet 88 ended.(775509+152916x455742).
<-><->
      
l.150   that if $\widetilde \phi$
                                  is a cover of $\phi$, then $S[\phi] \le S[...

[88]
./_region_.tex:150: Preview: Snippet 89 started.
<-><->
      
l.150   that if $\widetilde \phi$ is a cover of $
                                                 \phi$, then $S[\phi] \le S[...

./_region_.tex:150: Preview: Snippet 89 ended.(546132+152916x455742).
<-><->
      
l.150 ...if $\widetilde \phi$ is a cover of $\phi$
                                                  , then $S[\phi] \le S[\wid...

[89]
./_region_.tex:150: Preview: Snippet 90 started.
<-><->
      
l.150 ...etilde \phi$ is a cover of $\phi$, then $
                                                  S[\phi] \le S[\widetilde  ...

./_region_.tex:150: Preview: Snippet 90 ended.(775509+196608x9067912).
<-><->
      
l.150 ... S[\widetilde  \phi] \le \max(1,S[\phi])$
                                                  
[90]
\newlabel{tocindent-1}{0pt}
\newlabel{tocindent0}{0pt}
\newlabel{tocindent1}{0pt}
\newlabel{tocindent2}{0pt}
\newlabel{tocindent3}{0pt}
[2] )
(see the transcript file for additional information)</usr/share/texlive/texmf-d
ist/fonts/type1/public/amsfonts/cm/cmex10.pfb></usr/share/texlive/texmf-dist/fo
nts/type1/public/amsfonts/cm/cmmi12.pfb></usr/share/texlive/texmf-dist/fonts/ty
pe1/public/amsfonts/cm/cmmi8.pfb></usr/share/texlive/texmf-dist/fonts/type1/pub
lic/amsfonts/cm/cmr12.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/ams
fonts/cm/cmr8.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm
/cmr9.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmsy10.
pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmti12.pfb></
usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/symbols/msam10.pfb>
Output written on _region_.pdf (92 pages, 94391 bytes).
Transcript written on _region_.log.

TeX Output exited as expected with code 1 at Mon Mar 16 00:57:18
Running `Preview-PDF2DSC' with ``pdf2dsc _region_.pdf _region_.prv/tmp24890l_Y/preview.dsc''

Preview-PDF2DSC finished at Mon Mar 16 00:57:18
Running `Preview-Ghostscript' with ``/usr/bin/gs -dOutputFile\=\(_region_.prv/tmp24890l_Y/pr1-\%d.png\) -q -dDELAYSAFER -dNOPAUSE -DNOPLATFONTS -dPrinted -dTextAlphaBits\=4 -dGraphicsAlphaBits\=4 -sDEVICE\=png16m -r102.048x102.132''

Preview-Ghostscript finished at Mon Mar 16 00:57:19

current state:
==============
(setq
 AUCTeX-version "2014-11-01"
 LaTeX-command-style '((""
			"%(PDF)%(latex) %(file-line-error) %(extraopts) %S%(PDFout)")
		       )
 image-types '(svg imagemagick png gif tiff jpeg xpm xbm pbm postscript)
 preview-image-type 'dvipng
 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 "/usr/bin/gs"
 preview-gs-options '("-q" "-dDELAYSAFER" "-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 1.0
 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")
 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 nil
 )

Output from running `/usr/bin/gs -h':
GPL Ghostscript 9.06 (2012-08-08)
Copyright (C) 2012 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: x11alpha
Available devices:
   alc1900 alc2000 alc4000 alc4100 alc8500 alc8600 alc9100 ap3250 appledmp
   atx23 atx24 atx38 bbox bit bitcmyk bitrgb bitrgbtags bj10e bj10v bj10vh
   bj200 bjc600 bjc800 bjc880j bjccmyk bjccolor bjcgray bjcmono bmp16 bmp16m
   bmp256 bmp32b bmpgray bmpmono bmpsep1 bmpsep8 ccr cdeskjet cdj1600 cdj500
   cdj550 cdj670 cdj850 cdj880 cdj890 cdj970 cdjcolor cdjmono cdnj500 cfax
   chp2200 cif cljet5 cljet5c cljet5pr coslw2p coslwxl cp50 cups declj250
   deskjet devicen dfaxhigh dfaxlow display dj505j djet500 djet500c dl2100
   dnj650c epl2050 epl2050p epl2120 epl2500 epl2750 epl5800 epl5900 epl6100
   epl6200 eplcolor eplmono eps9high eps9mid epson epsonc epswrite escp
   escpage faxg3 faxg32d faxg4 fmlbp fmpr fs600 gdi hl1240 hl1250 hl7x0
   hpdj1120c hpdj310 hpdj320 hpdj340 hpdj400 hpdj500 hpdj500c hpdj510
   hpdj520 hpdj540 hpdj550c hpdj560c hpdj600 hpdj660c hpdj670c hpdj680c
   hpdj690c hpdj850c hpdj855c hpdj870c hpdj890c hpdjplus hpdjportable ibmpro
   ijs imagen inferno inkcov iwhi iwlo iwlq jetp3852 jj100 jpeg jpegcmyk
   jpeggray la50 la70 la75 la75plus laserjet lbp310 lbp320 lbp8 lex2050
   lex3200 lex5700 lex7000 lips2p lips3 lips4 lips4v lj250 lj3100sw lj4dith
   lj4dithp lj5gray lj5mono ljet2p ljet3 ljet3d ljet4 ljet4d ljet4pjl
   ljetplus ln03 lp1800 lp1900 lp2000 lp2200 lp2400 lp2500 lp2563 lp3000c
   lp7500 lp7700 lp7900 lp8000 lp8000c lp8100 lp8200c lp8300c lp8300f
   lp8400f lp8500c lp8600 lp8600f lp8700 lp8800c lp8900 lp9000b lp9000c
   lp9100 lp9200b lp9200c lp9300 lp9400 lp9500c lp9600 lp9600s lp9800c
   lps4500 lps6500 lq850 lxm3200 lxm5700m m8510 mag16 mag256 md1xMono md2k
   md50Eco md50Mono md5k mgr4 mgr8 mgrgray2 mgrgray4 mgrgray8 mgrmono miff24
   mj500c mj6000c mj700v2c mj8000c ml600 necp6 npdl nullpage oce9050 oki182
   oki4w okiibm oprp opvp paintjet pam pamcmyk32 pamcmyk4 pbm pbmraw pcl3
   pcx16 pcx24b pcx256 pcx256 pcx2up pcxcmyk pcxgray pcxmono pdfwrite
   pdfwrite pgm pgmraw pgnm pgnmraw photoex picty180 pj pjetxl pjxl pjxl300
   pkm pkmraw pksm pksmraw plan plan9bm planc plang plank planm png16 png16m
   png256 png48 pngalpha pnggray pngmono pnm pnmraw ppm ppmraw pr1000
   pr1000_4 pr150 pr201 ps2write psdcmyk psdrgb psgray psmono psrgb pswrite
   pxlcolor pxlmono r4081 rinkj rpdl samsunggdi sgirgb sj48 spotcmyk st800
   stcolor sunhmono t4693d2 t4693d4 t4693d8 tek4696 tiff12nc tiff24nc
   tiff32nc tiff48nc tiff64nc tiffcrle tiffg3 tiffg32d tiffg4 tiffgray
   tifflzw tiffpack tiffscaled tiffsep txtwrite uniprint x11 x11alpha
   x11cmyk x11cmyk2 x11cmyk4 x11cmyk8 x11gray2 x11gray4 x11mono xcf xes
Search path:
   /usr/share/ghostscript/9.06/Resource/Init :
   /usr/share/ghostscript/9.06/lib :
   /usr/share/ghostscript/9.06/Resource/Font :
   /usr/share/ghostscript/fonts : /var/lib/ghostscript/fonts :
   /usr/share/cups/fonts : /usr/share/ghostscript/fonts :
   /usr/local/lib/ghostscript/fonts : /usr/share/fonts
For more information, see /usr/share/doc/ghostscript/Use.htm.
On debian system you may need to install ghostscript-doc package.
Please report bugs to bugs.ghostscript.com.

[t.tex (text/x-tex, attachment)]
[bug-image.png (image/png, attachment)]

Information forwarded to bug-auctex <at> gnu.org:
bug#20115; Package auctex. (Mon, 16 Mar 2015 09:20:02 GMT) Full text and rfc822 format available.

Message #8 received at 20115 <at> debbugs.gnu.org (full text, mbox):

From: David Kastrup <dak <at> gnu.org>
To: Dylan Thurston <dpthurst <at> indiana.edu>
Cc: 20115 <at> debbugs.gnu.org
Subject: Re: bug#20115: 11.88; Preview images get mis-aligned
Date: Mon, 16 Mar 2015 09:47:49 +0100
Dylan Thurston <dpthurst <at> indiana.edu> writes:

> On certain documents, the preview images become misaligned with the
> text. The exact circumstances are a bit of a mystery to me. I've
> attached an example that's as minimal as I could make it. Some
> features that are necessary for bad behaviour on my system:
>
> * Removing the TiKz library makes the bug disappear (even though TiKz
>   is not used in this snippet).
>
> * Removing the duplicates of the text makes the bug disappear.
>
> * Removing the "proof" environments makes the bug disappear.
>
> * Removing some of the text that does not involve any math mode or
>   preview images makes the bug disappear.
>
> On my system, starting with the 13th copy of the text, the images are
> mis-aligned. I've attached a screenshot showing versions just before
> and just after the bug triggers.

You should have given more of a description than "mis-aligned".  One of
the most important features of preview-latex is that it aligns the
baselines of graphics with the baselines of text, and I was looking for
that at least 10 minutes.

The actual problem is that images and previews get out of synch.  In
this case, it would be interesting to see whether there is any
disruption in the _region_.pdf file that preview-latex generates as its
image container.  I suspect that there is some page inserted or deleted
that should not be in the file.

-- 
David Kastrup




Information forwarded to bug-auctex <at> gnu.org:
bug#20115; Package auctex. (Mon, 16 Mar 2015 14:43:01 GMT) Full text and rfc822 format available.

Message #11 received at 20115 <at> debbugs.gnu.org (full text, mbox):

From: Dylan Thurston <dpthurst <at> indiana.edu>
To: David Kastrup <dak <at> gnu.org>
Cc: 20115 <at> debbugs.gnu.org
Subject: Re: bug#20115: 11.88; Preview images get mis-aligned
Date: Mon, 16 Mar 2015 10:41:01 -0400
[Message part 1 (text/plain, inline)]
On Mon, Mar 16, 2015 at 09:47:49AM +0100, David Kastrup wrote:
> You should have given more of a description than "mis-aligned".  One of
> the most important features of preview-latex is that it aligns the
> baselines of graphics with the baselines of text, and I was looking for
> that at least 10 minutes.

Sorry about that!

> The actual problem is that images and previews get out of synch.  In
> this case, it would be interesting to see whether there is any
> disruption in the _region_.pdf file that preview-latex generates as its
> image container.  I suspect that there is some page inserted or deleted
> that should not be in the file.

preview-latex doesn't leave around a _region_.pdf by default. I've
attached the _region_.tex and _region_.log that preview-latex leaves,
and the _region_.pdf created by manually running pdflatex on _region_.tex.
[_region_.tex (text/x-tex, attachment)]
[_region_.log (text/plain, attachment)]
[_region_.pdf (application/pdf, attachment)]

Information forwarded to bug-auctex <at> gnu.org:
bug#20115; Package auctex. (Sun, 03 Mar 2024 16:01:02 GMT) Full text and rfc822 format available.

Message #14 received at 20115 <at> debbugs.gnu.org (full text, mbox):

From: Arash Esbati <arash <at> gnu.org>
To: Dylan Thurston <dpthurst <at> indiana.edu>
Cc: 20115 <at> debbugs.gnu.org
Subject: Re: bug#20115: 11.88; Preview images get mis-aligned
Date: Sun, 03 Mar 2024 16:59:39 +0100
[Message part 1 (text/plain, inline)]
Dylan Thurston <dpthurst <at> indiana.edu> writes:

> On certain documents, the preview images become misaligned with the
> text. The exact circumstances are a bit of a mystery to me. I've
> attached an example that's as minimal as I could make it. Some
> features that are necessary for bad behaviour on my system:
>
> * Removing the TiKz library makes the bug disappear (even though TiKz
>   is not used in this snippet).
>
> * Removing the duplicates of the text makes the bug disappear.
>
> * Removing the "proof" environments makes the bug disappear.
>
> * Removing some of the text that does not involve any math mode or
>   preview images makes the bug disappear.
>
> On my system, starting with the 13th copy of the text, the images are
> mis-aligned. I've attached a screenshot showing versions just before
> and just after the bug triggers.

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

This is what I get with a recent AUCTeX and Emacs:
[preview.png (image/png, inline)]
[Message part 3 (text/plain, inline)]
These are the repetitions 12-18, and the result looks Ok for me.

I'm closing this report for now, we can reopen if new input arrives.

Best, Arash

bug closed, send any further explanations to 20115 <at> debbugs.gnu.org and Dylan Thurston <dpthurst <at> indiana.edu> Request was from Arash Esbati <arash <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 03 Mar 2024 16:01:02 GMT) Full text and rfc822 format available.

Added tag(s) unreproducible. Request was from Arash Esbati <arash <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 07 Mar 2024 09:52:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 04 Apr 2024 11:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 36 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.