GNU bug report logs - #28576
11.86; Numbered items not previewed

Previous Next

Package: auctex;

Reported by: Alexey Abrikosov <a.abriko <at> gmail.com>

Date: Sun, 24 Sep 2017 14:28:01 UTC

Severity: normal

Found in version 11.86

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 28576 in the body.
You can then email your comments to 28576 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#28576; Package auctex. (Sun, 24 Sep 2017 14:28:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Alexey Abrikosov <a.abriko <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-auctex <at> gnu.org. (Sun, 24 Sep 2017 14:28:02 GMT) Full text and rfc822 format available.

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

From: Alexey Abrikosov <a.abriko <at> gmail.com>
To: bug-auctex <at> gnu.org
Subject: 11.86; Numbered items not previewed
Date: Sun, 24 Sep 2017 17:26:44 +0300
[Message part 1 (text/plain, inline)]
To: bug-auctex <at> gnu.org
Subject: 11.86; Numbered items not previewed

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

When I try to preview the buffer images are generated only for
nonnumbered items. Section headings and equations stay with "no way"
sign.
However I can preview each of them separately with help of "preview at
point", "preview environment" or "regenerate" functions.

Presence of preview-latex was the reason to choose auctex. Now it became
a problem.

Yours sincerely, A.
===================================

Emacs  : GNU Emacs 23.1.50.1 (i386-mingw-nt6.1.7601)
 of 2009-11-04 on LENNART-69DE564 (patched)
Package: 11.86

Run buffer contents:

Running `Preview-LaTeX' on `_region_' with ``pdflatex 
-interaction=nonstopmode "&"prv_Formulas_binder"" "_region_.tex"''
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (MiKTeX 2.9.6400 64-bit)
entering extended mode
(_region_.tex
LaTeX2e <2017-04-15>
Babel <3.12> and hyphenation patterns for 15 language(s) loaded.
CUSTOMISED FORMAT. Preloaded files:
        .
 article.cls    2014/09/29 v1.4h Standard LaTeX document class
  size12.clo    2014/09/29 v1.4h Standard LaTeX file (size option)
 fontenc.sty
   t1enc.def    2017/04/05 v2.0i Standard LaTeX file
  t2aenc.def    2005/09/27 v1.0i Cyrillic encoding definition file
  t2acmr.fd    2001/08/11 v1.0a Computer Modern Cyrillic font definitions
inputenc.sty    2015/03/17 v1.2c Input encoding file
   cp866.def    2014/10/28 v1.0d Input encoding file
   babel.sty    2017/06/29 3.12 The Babel package
 bblopts.cfg    2005/09/08 v0.1 add Arabic and Farsi to "declared" 
options of b
abel
russianb.ldf
mathtools.sty    2017/05/24 v1.19 mathematical typesetting tools
  keyval.sty    2014/10/28 v1.15 key=value parser (DPC)
    calc.sty    2014/10/28 v4.3 Infix arithmetic (KKT,FJ)
 mhsetup.sty    2017/03/31 v1.3 programming setup (MH)
 amsmath.sty    2017/09/02 v2.17a AMS math features
 amstext.sty    2000/06/29 v2.01 AMS text
  amsgen.sty    1999/11/30 v2.0 generic functions
  amsbsy.sty    1999/11/29 v1.2d Bold Symbols
  amsopn.sty    2016/03/08 v2.02 operator names
 amssymb.sty    2013/01/14 v3.01 AMS font symbols
amsfonts.sty    2013/01/14 v3.01 Basic AMSFonts support
todonotes.sty    2012/07/25
  ifthen.sty    2014/09/29 v1.1c Standard LaTeX ifthen package (DPC)
 xkeyval.sty    2014/12/03 v2.7a package option processing (HA)
 xkeyval.tex    2014/12/03 v2.7a key=value parser (HA)
  xcolor.sty    2016/05/11 v2.12 LaTeX color extensions (UK)
   color.cfg    2016/01/02 v1.6 sample color configuration
  pdftex.def    2017/06/24 v1.0g Graphics/color driver for pdftex
    tikz.sty    2015/08/07 v3.0.1a (rcs-revision 1.151)
     pgf.sty    2015/08/07 v3.0.1a (rcs-revision 1.15)
  pgfrcs.sty    2015/08/07 v3.0.1a (rcs-revision 1.31)
everyshi.sty    2001/05/15 v3.00 EveryShipout Package (MS)
  pgfrcs.code.tex
 pgfcore.sty    2010/04/11 v3.0.1a (rcs-revision 1.7)
graphicx.sty    2017/06/01 v1.1a Enhanced LaTeX Graphics (DPC,SPQR)
graphics.sty    2017/06/25 v1.2c Standard LaTeX Graphics (DPC,SPQR)
    trig.sty    2016/01/03 v1.10 sin cos tan (DPC)
graphics.cfg    2016/06/04 v1.11 sample graphics configuration
  pgfsys.sty    201...

[...]

    ..."-sDEVICE=png16m" "-r129.473x129.688"''

Preview-Ghostscript finished at Sun Sep 24 17:07:35
Running `Preview-Ghostscript' with ``"C:/Program 
Files/Ghosts/Ghostscript/gs8.71/bin/gswin32c.exe" 
"-dOutputFile=(_region_.prv/tmp3784gqh/pr44-%d.png)" "-q" "-dSAFER" 
"-dNOPAUSE" "-DNOPLATFONTS" "-dPrinted" "-dTextAlphaBits=4" 
"-dGraphicsAlphaBits=4" "-sDEVICE=png16m" "-r129.473x129.688"''

Preview-Ghostscript finished at Sun Sep 24 17:07:36
Running `Preview-Ghostscript' with ``"C:/Program 
Files/Ghosts/Ghostscript/gs8.71/bin/gswin32c.exe" 
"-dOutputFile=(_region_.prv/tmp3784gqh/pr45-%d.png)" "-q" "-dSAFER" 
"-dNOPAUSE" "-DNOPLATFONTS" "-dPrinted" "-dTextAlphaBits=4" 
"-dGraphicsAlphaBits=4" "-sDEVICE=png16m" "-r129.473x129.688"''

Preview-Ghostscript finished at Sun Sep 24 17:07:36
Running `Preview-Ghostscript' with ``"C:/Program 
Files/Ghosts/Ghostscript/gs8.71/bin/gswin32c.exe" 
"-dOutputFile=(_region_.prv/tmp3784gqh/pr46-%d.png)" "-q" "-dSAFER" 
"-dNOPAUSE" "-DNOPLATFONTS" "-dPrinted" "-dTextAlphaBits=4" 
"-dGraphicsAlphaBits=4" "-sDEVICE=png16m" "-r129.473x129.688"''

Preview-Ghostscript finished at Sun Sep 24 17:07:37
Running `Preview-Ghostscript' with ``"C:/Program 
Files/Ghosts/Ghostscript/gs8.71/bin/gswin32c.exe" 
"-dOutputFile=(_region_.prv/tmp3784gqh/pr47-%d.png)" "-q" "-dSAFER" 
"-dNOPAUSE" "-DNOPLATFONTS" "-dPrinted" "-dTextAlphaBits=4" 
"-dGraphicsAlphaBits=4" "-sDEVICE=png16m" "-r129.473x129.688"''

Preview-Ghostscript finished at Sun Sep 24 17:07:37
Running `Preview-Ghostscript' with ``"C:/Program 
Files/Ghosts/Ghostscript/gs8.71/bin/gswin32c.exe" 
"-dOutputFile=(_region_.prv/tmp3784gqh/pr48-%d.png)" "-q" "-dSAFER" 
"-dNOPAUSE" "-DNOPLATFONTS" "-dPrinted" "-dTextAlphaBits=4" 
"-dGraphicsAlphaBits=4" "-sDEVICE=png16m" "-r129.473x129.688"''

Preview-Ghostscript finished at Sun Sep 24 17:07:37
Running `Preview-Ghostscript' with ``"C:/Program 
Files/Ghosts/Ghostscript/gs8.71/bin/gswin32c.exe" 
"-dOutputFile=(_region_.prv/tmp3784gqh/pr49-%d.png)" "-q" "-dSAFER" 
"-dNOPAUSE" "-DNOPLATFONTS" "-dPrinted" "-dTextAlphaBits=4" 
"-dGraphicsAlphaBits=4" "-sDEVICE=png16m" "-r129.473x129.688"''

Preview-Ghostscript finished at Sun Sep 24 17:07:38
Running `Preview-Ghostscript' with ``"C:/Program 
Files/Ghosts/Ghostscript/gs8.71/bin/gswin32c.exe" 
"-dOutputFile=(_region_.prv/tmp3784gqh/pr50-%d.png)" "-q" "-dSAFER" 
"-dNOPAUSE" "-DNOPLATFONTS" "-dPrinted" "-dTextAlphaBits=4" 
"-dGraphicsAlphaBits=4" "-sDEVICE=png16m" "-r129.473x129.688"''

Preview-Ghostscript finished at Sun Sep 24 17:07:38

current state:
==============
(setq
 AUCTeX-version "11.86"
 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 "C:/Program 
Files/Ghosts/Ghostscript/gs8.71/bin/gswin32c.exe"
 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 1.8
 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"
                   "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 
-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 `C:/Program 
Files/Ghosts/Ghostscript/gs8.71/bin/gswin32c.exe -h':
GPL Ghostscript 8.71 (2010-02-10)
Copyright (C) 2010 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: 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 jpegcmyk jpeggray laserjet lbp8
   lj250 ljet2p ljet3 ljet3d ljet4 ljet4d ljetplus m8510 mswindll mswinpr2
   necp6 nullpage pamcmyk32 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 ps2write
   psdcmyk psdrgb psmono pswrite pxlcolor pxlmono r4081 spotcmyk st800
   stcolor svg t4693d2 t4693d4 t4693d8 tek4696 tiff12nc tiff24nc tiff32nc
   tiff48nc tiff64nc tiffcrle tiffg3 tiffg32d tiffg4 tiffgray tifflzw
   tiffpack tiffsep tiffsep1 txtwrite uniprint
Search path:
   . ; c:\program files\ghosts\ghostscript\\gs8.71\lib ;
   c:\program files\ghosts\ghostscript\\fonts ; C:/Windows/fonts ;
   %rom%Resource/Init/ ; %rom%lib/ ; c:/gs/gs8.71/Resource/Init ;
   c:/gs/gs8.71/lib ; c:/gs/gs8.71/Resource/Font ; c:/gs/fonts
Initialization files are compiled into the executable.
For more information, see c:/gs/gs8.71/doc/Use.htm.
Please report bugs to bugs.ghostscript.com.


[Message part 2 (text/html, inline)]

Information forwarded to bug-auctex <at> gnu.org:
bug#28576; Package auctex. (Mon, 25 Sep 2017 12:58:02 GMT) Full text and rfc822 format available.

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

From: Alexey Abrikosov <a.abriko <at> gmail.com>
To: 28576 <at> debbugs.gnu.org
Subject: Solution: preview-latex vs todonotes package
Date: Mon, 25 Sep 2017 15:57:34 +0300
[Message part 1 (text/plain, inline)]
In my report of September 24 I have reported the following issue.

When trying to preview the emacs buffer, the preview images were
generated only for in-line items. Section headings and display equations
stayed with "no-way" sign.

However it was possible to preview each of them separately with the
help of either "preview at point" or of "preview environment" and
"regenerate" functions.

It turned out that in my case the reason was the conflict with the
\texttt{todonotes} package. The attached LaTeX and PDF files I present 
an example of the conflict.

I would be really glad, if my success in finding the truth was not in vain.

Yours Alex
[todo_preview_conflict.pdf (application/pdf, attachment)]
[todo_preview_conflict.tex (text/plain, attachment)]

Information forwarded to bug-auctex <at> gnu.org:
bug#28576; Package auctex. (Mon, 25 Sep 2017 15:27:01 GMT) Full text and rfc822 format available.

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

From: Ikumi Keita <ikumi <at> ikumi.que.jp>
To: Alexey Abrikosov <a.abriko <at> gmail.com>
Cc: 28576 <at> debbugs.gnu.org
Subject: Re: bug#28576: Solution: preview-latex vs todonotes package
Date: Tue, 26 Sep 2017 00:26:45 +0900
Hi Alexey,

>>>>> Alexey Abrikosov <a.abriko <at> gmail.com> writes:
> It turned out that in my case the reason was the conflict with the
> \texttt{todonotes} package. The attached LaTeX and PDF files I present
> an example of the conflict.

Thank you for providing an example file.  I examined it and found that
the bug is the same as the one that I managed to figure out its origin
last week:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27088
https://lists.gnu.org/archive/html/bug-auctex/2017-09/msg00011.html

I confirmed the patch contained there solves the problem.  If you know
how to apply the patch the and re-build AUCTeX, the problem would go
away.  If not, let us know and think together what to do.

Regards,
Ikumi Keita




Information forwarded to bug-auctex <at> gnu.org:
bug#28576; Package auctex. (Tue, 26 Sep 2017 15:03:02 GMT) Full text and rfc822 format available.

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

From: Ikumi Keita <ikumi <at> ikumi.que.jp>
To: Alexey Abrikosov <a.abriko <at> gmail.com>
Cc: 28576 <at> debbugs.gnu.org
Subject: Re: bug#28576: Solution: preview-latex vs todonotes package
Date: Wed, 27 Sep 2017 00:02:10 +0900
Oops, I forgot to include 28576 <at> debbugs.gnu.org in cc: field, so I'm
resending.  I'm sorry for duplication, Alexey.

-------------------------------------------------------------------

Hi Alexey,

>>>>> Alexey Abrikosov <a.abriko <at> gmail.com> writes:
> Dear Friend (I don't risk to call you by the first name)

I don't mind by which name I am called :-).

> Thank you for your advice. It worked!

Congratulations!

> At first I was a bit confused since my `preview.el' is older than yours. 
> Therefore I could not apply the patch literally.

Sorry, my patch is for the latest git version.  I should have included a
note about that.

> As far as I understand, the recipe is to insert the opening
...

That's right.  Precisely speaking, my patch takes care so that the
additional piece of environment "max_print_line=1000" does not stay in
emacs after latex process runs, but I suppose that doesn't matter for
most cases.

However, it is reported[1] that metapost in older TeX distribution does
not run correctly under "max_print_line=1000", so if you encounter this
trouble, you have to edit your file a bit further.

Regards,
Ikumi Keita

[1] https://oku.edu.mie-u.ac.jp/tex/mod/forum/discuss.php?d=2260#p13284
(sorry, discussed in Japanese)




Reply sent to Arash Esbati <arash <at> gnu.org>:
You have taken responsibility. (Mon, 30 May 2022 10:09:02 GMT) Full text and rfc822 format available.

Notification sent to Alexey Abrikosov <a.abriko <at> gmail.com>:
bug acknowledged by developer. (Mon, 30 May 2022 10:09:02 GMT) Full text and rfc822 format available.

Message #19 received at 28576-done <at> debbugs.gnu.org (full text, mbox):

From: Arash Esbati <arash <at> gnu.org>
To: Ikumi Keita <ikumi <at> ikumi.que.jp>
Cc: 28576-done <at> debbugs.gnu.org, Alexey Abrikosov <a.abriko <at> gmail.com>
Subject: Re: bug#28576: Solution: preview-latex vs todonotes package
Date: Mon, 30 May 2022 12:08:21 +0200
Hi Keita,

Ikumi Keita <ikumi <at> ikumi.que.jp> writes:

> Thank you for providing an example file.  I examined it and found that
> the bug is the same as the one that I managed to figure out its origin
> last week:
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27088
> https://lists.gnu.org/archive/html/bug-auctex/2017-09/msg00011.html
>
> I confirmed the patch contained there solves the problem.  If you know
> how to apply the patch the and re-build AUCTeX, the problem would go
> away.  If not, let us know and think together what to do.

I think this issue was resolved with your commit 9e1aa85d6d.  So I'm
closing this report.  Please let me know if I'm missing something and we
can re-open this.

Best, Arash




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

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

Previous Next


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