GNU bug report logs -
#20773
11.88.6; Preview fails on nested \include{} using \documentclass{sigplanconf}
Previous Next
Reported by: Alex Rozenshteyn <rpglover64 <at> gmail.com>
Date: Mon, 8 Jun 2015 20:46:02 UTC
Severity: normal
Tags: notabug
Found in version 11.88.6
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 20773 in the body.
You can then email your comments to 20773 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-auctex <at> gnu.org
:
bug#20773
; Package
auctex
.
(Mon, 08 Jun 2015 20:46:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Alex Rozenshteyn <rpglover64 <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-auctex <at> gnu.org
.
(Mon, 08 Jun 2015 20:46:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Attempting to run `preview-document` on a file using
\documentclass{sigplanconf} (found here:
http://www.sigplan.org/sites/default/files/sigplanconf.cls)
led me to discover the following unpleasant behavior:
Imagine the document structure is as follows:
--- main.tex ---
\documentclass{sigplanconf}
\begin{document}
\input{formalism}
\end{document}
--- end main.tex ---
--- formalism.tex ---
\input{formalism_atranslation}
--- end formalism.tex ---
--- formalism_atranslation.tex ---
\section{A-Normal Form}
--- end formalism_atranslation.tex ---
When I run `preview-document` in "main.tex" (or in others if `TeX-master`
is set correctly.) I get one of two errors. On occasion, Preview-PDF2DSC
fails:
-----------------
TeX Output exited as expected with code 1 at Mon Jun 8 16:09:46
Running `Preview-PDF2DSC' with ``pdf2dsc main.pdf
main.prv/tmp3331NDl/preview.dsc''
Error: /undefinedfilename in --file--
Operand stack:
PDFfile (main.pdf) (r)
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval--
--nostringval-- 2 %stopped_push --nostringval--
--nostringval-- --nostringval-- false 1 %stopped_push 1910
1 3 %oparray_pop 1909 1 3 %oparray_pop 1893 1 3
%oparray_pop 1787 1 3 %oparray_pop --nostringval--
%errorexec_pop .runexec2 --nostringval-- --nostringval--
--nostringval-- 2 %stopped_push --nostringval--
Dictionary stack:
--dict:1170/1684(ro)(G)-- --dict:0/20(G)-- --dict:77/200(L)--
Current allocation mode is local
Last OS error: No such file or directory
Current file position is 1822
GPL Ghostscript 9.06: Unrecoverable error, exit code 1
Preview-PDF2DSC exited abnormally with code 1 at Mon Jun 8 16:09:46
PDF2DSC sentinel: Opening input file: no such file or directory,
/tmp/baz/main.prv/tmp3331NDl/preview.dsc
---------------------
but more often, ghostscript fails with
--------------------
Preview-PDF2DSC finished at Mon Jun 8 16:10:16
Running `Preview-Ghostscript' with ``/usr/bin/gs
-dOutputFile\=\(main.prv/tmp3331aNr/pr1-\%d.png\) -q -dDELAYSAFER
-dNOPAUSE -DNOPLATFONTS -dPrinted -dTextAlphaBits\=4
-dGraphicsAlphaBits\=4 -sDEVICE\=png16m -r104.616x104.588''
Ghostscript filter: No bounding box
--------------------
I tried to replicate this with other filenames, but have not had success
using "foo.tex" and "bar.tex", so I decided to send the actual
filenames.
------------------------------------------------------------------------
Emacs : GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.14.5)
of 2015-03-07 on trouble, modified by Debian
Package: 11.88.6
current state:
==============
(setq
AUCTeX-date "2015-05-08"
window-system 'x
LaTeX-version "2e"
TeX-style-path '("~/.emacs.d/auctex"
"/home/alex/.emacs.d/elpa/auctex-11.88.6/style"
"/home/alex/.emacs.d/auctex/auto"
"/home/alex/.emacs.d/auctex/style" "auto"
"style")
TeX-auto-save t
TeX-parse-self t
TeX-master "main"
TeX-command-list '(("Rubber" "rubber -d %t" TeX-run-TeX nil (latex-mode))
("TeX"
"%(PDF)%(tex) %(file-line-error) %(extraopts)
%`%S%(PDFout)%(mode)%' %t"
TeX-run-TeX nil (plain-tex-mode texinfo-mode
ams-tex-mode) :help
"Run plain TeX")
("LaTeX" "%`%l%(mode)%' %t" TeX-run-TeX nil
(latex-mode doctex-mode) :help
"Run LaTeX")
("Makeinfo" "makeinfo %(extraopts) %t"
TeX-run-compile nil (texinfo-mode)
:help "Run Makeinfo with Info output")
("Makeinfo HTML" "makeinfo %(extraopts) --html %t"
TeX-run-compile nil
(texinfo-mode) :help "Run Makeinfo with HTML output")
("AmSTeX" "%(PDF)amstex %(extraopts)
%`%S%(PDFout)%(mode)%' %t" TeX-run-TeX
nil (ams-tex-mode) :help "Run AMSTeX")
("ConTeXt" "texexec --once --texutil %(extraopts)
%(execopts)%t" TeX-run-TeX
nil (context-mode) :help "Run ConTeXt once")
("ConTeXt Full" "texexec %(extraopts)
%(execopts)%t" TeX-run-TeX nil
(context-mode) :help "Run ConTeXt until completion")
("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help
"Run BibTeX")
("Biber" "biber %s" TeX-run-Biber nil t :help "Run Biber")
("View" "%V" TeX-run-discard-or-function t t :help
"Run Viewer")
("Print" "%p" TeX-run-command t t :help "Print the file")
("Queue" "%q" TeX-run-background nil t :help "View
the printer queue"
:visible TeX-queue-command)
("File" "%(o?)dvips %d -o %f " TeX-run-command t t :help
"Generate PostScript file")
("Index" "makeindex %s" TeX-run-command nil t
:help "Create index file")
("Xindy" "texindy %s" TeX-run-command nil t :help
"Run xindy to create index file")
("Check" "lacheck %s" TeX-run-compile nil (latex-mode) :help
"Check LaTeX file for correctness")
("ChkTeX" "chktex -v6 %s" TeX-run-compile nil
(latex-mode) :help
"Check LaTeX file for common mistakes")
("Spell" "(TeX-ispell-document \"\")"
TeX-run-function nil t :help
"Spell-check the document")
("Clean" "TeX-clean" TeX-run-function nil t :help
"Delete generated intermediate files")
("Clean All" "(TeX-clean t)" TeX-run-function nil t :help
"Delete generated intermediate and output files")
("Other" "" TeX-run-command t t :help "Run an
arbitrary command"))
)
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#20773
; Package
auctex
.
(Tue, 09 Jun 2015 12:00:06 GMT)
Full text and
rfc822 format available.
Message #8 received at 20773 <at> debbugs.gnu.org (full text, mbox):
Alex Rozenshteyn <rpglover64 <at> gmail.com> writes:
Hi Alex,
> Attempting to run `preview-document` on a file using
> \documentclass{sigplanconf} (found here:
> http://www.sigplan.org/sites/default/files/sigplanconf.cls)
> led me to discover the following unpleasant behavior:
>
> -----------------
> TeX Output exited as expected with code 1 at Mon Jun 8 16:09:46
> Running `Preview-PDF2DSC' with ``pdf2dsc main.pdf
> main.prv/tmp3331NDl/preview.dsc''
> Error: /undefinedfilename in --file--
> Operand stack:
> PDFfile (main.pdf) (r)
> Execution stack:
> %interp_exit .runexec2 --nostringval-- --nostringval--
> --nostringval-- 2 %stopped_push --nostringval--
> --nostringval-- --nostringval-- false 1 %stopped_push 1910
> 1 3 %oparray_pop 1909 1 3 %oparray_pop 1893 1 3
> %oparray_pop 1787 1 3 %oparray_pop --nostringval--
> %errorexec_pop .runexec2 --nostringval-- --nostringval--
> --nostringval-- 2 %stopped_push --nostringval--
> Dictionary stack:
> --dict:1170/1684(ro)(G)-- --dict:0/20(G)-- --dict:77/200(L)--
> Current allocation mode is local
> Last OS error: No such file or directory
> Current file position is 1822
> GPL Ghostscript 9.06: Unrecoverable error, exit code 1
>
> Preview-PDF2DSC exited abnormally with code 1 at Mon Jun 8 16:09:46
> PDF2DSC sentinel: Opening input file: no such file or directory,
> /tmp/baz/main.prv/tmp3331NDl/preview.dsc
> ---------------------
>
> but more often, ghostscript fails with
>
> --------------------
> Preview-PDF2DSC finished at Mon Jun 8 16:10:16
> Running `Preview-Ghostscript' with ``/usr/bin/gs
> -dOutputFile\=\(main.prv/tmp3331aNr/pr1-\%d.png\) -q -dDELAYSAFER
> -dNOPAUSE -DNOPLATFONTS -dPrinted -dTextAlphaBits\=4
> -dGraphicsAlphaBits\=4 -sDEVICE\=png16m -r104.616x104.588''
> Ghostscript filter: No bounding box
> --------------------
I get similar errors:
--8<---------------cut here---------------start------------->8---
Running `Preview-LaTeX' on `main' with ``pdflatex -file-line-error --synctex=1 "\nonstopmode\nofiles\PassOptionsToPackage{active,tightpage,auctex}{preview}\AtBeginDocument{\ifx\ifPreview\undefined\RequirePackage[displaymath,floats,graphics,textmath,sections,footnotes]{preview}[2004/11/05]\fi}" "\input" main.tex''
This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
LaTeX2e <2014/05/01>
Babel <3.9l> and hyphenation patterns for 9 languages loaded.
No auxiliary output files.
(./main.tex (./sigplanconf.cls
Document Class: sigplanconf 2013/07/02 v2.8 ACM SIGPLAN Proceedings
(/usr/local/texlive/2014/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/local/texlive/2014/texmf-dist/tex/latex/base/size10.clo))) (./main.aux)
(/usr/local/texlive/2014/texmf-dist/tex/latex/psnfss/ot1ptm.fd)
(/usr/local/texlive/2014/texmf-dist/tex/latex/preview/preview.sty
(/usr/local/texlive/2014/texmf-dist/tex/latex/preview/prtightpage.def)
(/usr/local/texlive/2014/texmf-dist/tex/latex/preview/prauctex.def
No auxiliary output files.
(/usr/local/texlive/2014/texmf-dist/tex/latex/preview/prauctex.cfg))
(/usr/local/texlive/2014/texmf-dist/tex/latex/preview/prfootnotes.def)
Preview: Fontsize 9pt
Preview: PDFoutput 1
) (./formalism.tex (./formalism_atranslation.tex
./formalism_atranslation.tex:1: Preview: Snippet 1 started.
<-><->
\pr <at> msg ...rrhelp {Not a real error.}\errmessage <
}
\@firstofone #1->
#1
\@startsection ... {!!!!!!*[[!}{##1\pr <at> endbox }}{}
\pr@\@startsection
\section ->\@startsection
{section}{1}{0pt}{-\@sectionaboveskip }{\@sectionb...
l.1 \section
{A-Normal Form}
Preview: Tightpage -32891 -32891 32891 32891
./formalism_atranslation.tex:1: Preview: Snippet 1 ended.(496694+13332x15728640
).
<-><->
\pr <at> msg ...rrhelp {Not a real error.}\errmessage <
}
\pr <at> endbox ...lineskip \box \pr <at> box }\pr <at> ship <at> end
{\let \protect \noexpand \...
l.1 \section{A-Normal Form}
[1{/usr/local/texlive/2014/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]))
./main.tex:5: Preview: Snippet 2 started.
<-><->
\pr <at> msg ...rrhelp {Not a real error.}\errmessage <
}
\@firstofone #1->
#1
\(->\pr <at> protect <at> ship {\pr <at> endaftergroup }{}
\pr@\(
l.5 \(
a + b = c\)
./main.tex:5: Preview: Snippet 2 ended.(409600+54612x2392548).
<-><->
\pr <at> msg ...rrhelp {Not a real error.}\errmessage <
}
\pr <at> endbox ...lineskip \box \pr <at> box }\pr <at> ship <at> end
{\let \protect \noexpand \...
\)->\relax \ifmmode \ifinner $
\else \@badmath \fi \else \@badmath \fi
l.5 \(a + b = c\)
[2] )
(see the transcript file for additional information){/usr/local/texlive/2014/te
xmf-dist/fonts/enc/dvips/base/8r.enc}</usr/local/texlive/2014/texmf-dist/fonts/
type1/public/amsfonts/cm/cmmi9.pfb></usr/local/texlive/2014/texmf-dist/fonts/ty
pe1/public/amsfonts/cm/cmr9.pfb></usr/local/texlive/2014/texmf-dist/fonts/type1
/urw/times/utmb8a.pfb>
Output written on main.pdf (2 pages, 23675 bytes).
SyncTeX written on main.synctex.gz.
Transcript written on main.log.
TeX Output exited as expected with code 1 at Tue Jun 9 13:30:57
Running `Preview-PDF2DSC' with ``pdf2dsc main.pdf main.prv/tmp4678jI2/preview.dsc''
Preview-PDF2DSC finished at Tue Jun 9 13:30:57
Running `Preview-Ghostscript' with ``/usr/local/texlive/2014/bin/x86_64-linux/rungs -dOutputFile\=\(main.prv/tmp4678jI2/pr1-\%d.png\) -q -dDELAYSAFER -dNOPAUSE -DNOPLATFONTS -dPrinted -dTextAlphaBits\=4 -dGraphicsAlphaBits\=4 -sDEVICE\=png16m -r96.0757x96.0504''
Ghostscript filter: No bounding box
Preview-Ghostscript finished at Tue Jun 9 13:30:57
--8<---------------cut here---------------end--------------->8---
And sometimes this one:
--8<---------------cut here---------------start------------->8---
Running `Preview-LaTeX' on `main' with ``pdflatex -file-line-error --synctex=1 "\nonstopmode\nofiles\PassOptionsToPackage{active,tightpage,auctex}{preview}\AtBeginDocument{\ifx\ifPreview\undefined\RequirePackage[displaymath,floats,graphics,textmath,sections,footnotes]{preview}[2004/11/05]\fi}" "\input" main.tex''
This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
LaTeX2e <2014/05/01>
Babel <3.9l> and hyphenation patterns for 9 languages loaded.
No auxiliary output files.
(./main.tex (./sigplanconf.cls
Document Class: sigplanconf 2013/07/02 v2.8 ACM SIGPLAN Proceedings
(/usr/local/texlive/2014/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/local/texlive/2014/texmf-dist/tex/latex/base/size10.clo))) (./main.aux)
(/usr/local/texlive/2014/texmf-dist/tex/latex/psnfss/ot1ptm.fd)
(/usr/local/texlive/2014/texmf-dist/tex/latex/preview/preview.sty
(/usr/local/texlive/2014/texmf-dist/tex/latex/preview/prtightpage.def)
(/usr/local/texlive/2014/texmf-dist/tex/latex/preview/prauctex.def
No auxiliary output files.
(/usr/local/texlive/2014/texmf-dist/tex/latex/preview/prauctex.cfg))
(/usr/local/texlive/2014/texmf-dist/tex/latex/preview/prfootnotes.def)
Preview: Fontsize 9pt
Preview: PDFoutput 1
) (./formalism.tex (./formalism_atranslation.tex
./formalism_atranslation.tex:1: Preview: Snippet 1 started.
<-><->
\pr <at> msg ...rrhelp {Not a real error.}\errmessage <
}
\@firstofone #1->
#1
\@startsection ... {!!!!!!*[[!}{##1\pr <at> endbox }}{}
\pr@\@startsection
\section ->\@startsection
{section}{1}{0pt}{-\@sectionaboveskip }{\@sectionb...
l.1 \section
{A-Normal Form}
Preview: Tightpage -32891 -32891 32891 32891
./formalism_atranslation.tex:1: Preview: Snippet 1 ended.(496694+13332x15728640
).
<-><->
\pr <at> msg ...rrhelp {Not a real error.}\errmessage <
}
\pr <at> endbox ...lineskip \box \pr <at> box }\pr <at> ship <at> end
{\let \protect \noexpand \...
l.1 \section{A-Normal Form}
[1{/usr/local/texlive/2014/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]))
./main.tex:5: Preview: Snippet 2 started.
<-><->
\pr <at> msg ...rrhelp {Not a real error.}\errmessage <
}
\@firstofone #1->
#1
\(->\pr <at> protect <at> ship {\pr <at> endaftergroup }{}
\pr@\(
l.5 \(
a + b = c\)
./main.tex:5: Preview: Snippet 2 ended.(409600+54612x2392548).
<-><->
\pr <at> msg ...rrhelp {Not a real error.}\errmessage <
}
\pr <at> endbox ...lineskip \box \pr <at> box }\pr <at> ship <at> end
{\let \protect \noexpand \...
\)->\relax \ifmmode \ifinner $
\else \@badmath \fi \else \@badmath \fi
l.5 \(a + b = c\)
[2] )
(see the transcript file for additional information){/usr/local/texlive/2014/te
xmf-dist/fonts/enc/dvips/base/8r.enc}</usr/local/texlive/2014/texmf-dist/fonts/
type1/public/amsfonts/cm/cmmi9.pfb></usr/local/texlive/2014/texmf-dist/fonts/ty
pe1/public/amsfonts/cm/cmr9.pfb></usr/local/texlive/2014/texmf-dist/fonts/type1
/urw/times/utmb8a.pfb>
Output written on main.pdf (2 pages, 23675 bytes).
SyncTeX written on main.synctex.gz.
Transcript written on main.log.
TeX Output exited as expected with code 1 at Tue Jun 9 13:49:15
Running `Preview-PDF2DSC' with ``pdf2dsc main.pdf main.prv/tmp4678JCS/preview.dsc''
Error: /undefinedfilename in --file--
Operand stack:
PDFfile (main.pdf) (r)
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1967 1 3 %oparray_pop 1966 1 3 %oparray_pop 1950 1 3 %oparray_pop 1836 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval--
Dictionary stack:
--dict:1192/1684(ro)(G)-- --dict:0/20(G)-- --dict:78/200(L)--
Current allocation mode is local
Last OS error: No such file or directory
Current file position is 1822
GPL Ghostscript 9.16: Unrecoverable error, exit code 1
Preview-PDF2DSC exited abnormally with code 1 at Tue Jun 9 13:49:15
PDF2DSC sentinel: Opening input file: No such file or directory, /home/horn/tmp/spc/main.prv/tmp4678JCS/preview.dsc
--8<---------------cut here---------------end--------------->8---
This latter error is actually only caused by the file main.pdf not being
there which is pretty strange given that the Preview-LaTeX command's
output ended in
Output written on main.pdf (2 pages, 23675 bytes).
SyncTeX written on main.synctex.gz.
Transcript written on main.log.
> I tried to replicate this with other filenames, but have not had
> success using "foo.tex" and "bar.tex", so I decided to send the actual
> filenames.
Indeed, the file names and includes are not relevant. At least it works
fine when switching the document class from sigplanconf to article.
Unfortunately, I don't understand tex well enough to figure out what's
the problem here...
Bye,
Tassilo
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#20773
; Package
auctex
.
(Tue, 09 Jun 2015 12:28:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 20773 <at> debbugs.gnu.org (full text, mbox):
Tassilo Horn <tsdh <at> gnu.org> writes:
> l.5 \(
> a + b = c\)
> ./main.tex:5: Preview: Snippet 2 ended.(409600+54612x2392548).
> <-><->
>
> \pr <at> msg ...rrhelp {Not a real error.}\errmessage <
> }
> \pr <at> endbox ...lineskip \box \pr <at> box }\pr <at> ship <at> end
> {\let \protect \noexpand \...
>
> \)->\relax \ifmmode \ifinner $
> \else \@badmath \fi \else \@badmath \fi
> l.5 \(a + b = c\)
>
> [2] )
> (see the transcript file for additional information){/usr/local/texlive/2014/te
> xmf-dist/fonts/enc/dvips/base/8r.enc}</usr/local/texlive/2014/texmf-dist/fonts/
> type1/public/amsfonts/cm/cmmi9.pfb></usr/local/texlive/2014/texmf-dist/fonts/ty
> pe1/public/amsfonts/cm/cmr9.pfb></usr/local/texlive/2014/texmf-dist/fonts/type1
> /urw/times/utmb8a.pfb>
> Output written on main.pdf (2 pages, 23675 bytes).
> SyncTeX written on main.synctex.gz.
> Transcript written on main.log.
>
> TeX Output exited as expected with code 1 at Tue Jun 9 13:30:57
> Running `Preview-PDF2DSC' with ``pdf2dsc main.pdf main.prv/tmp4678jI2/preview.dsc''
>
> Preview-PDF2DSC finished at Tue Jun 9 13:30:57
> Running `Preview-Ghostscript' with ``/usr/local/texlive/2014/bin/x86_64-linux/rungs -dOutputFile\=\(main.prv/tmp4678jI2/pr1-\%d.png\) -q -dDELAYSAFER -dNOPAUSE -DNOPLATFONTS -dPrinted -dTextAlphaBits\=4 -dGraphicsAlphaBits\=4 -sDEVICE\=png16m -r96.0757x96.0504''
> Ghostscript filter: No bounding box
"Ghostscript filter" is an error message from the Emacs component of
preview-latex, probably coming from not being able to recognize the
error messages. It would appear that the document classes here mess
with the error display from LaTeX, possibly by changing the
\errorcontextlines setting but maybe through other means.
It might be worth trying to put
\newcount\errorcontextlines
(making the original \errorcontextlines inaccessible) before
\documentclass in order to see whether this makes a difference.
--
David Kastrup
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#20773
; Package
auctex
.
(Tue, 09 Jun 2015 14:11:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 20773 <at> debbugs.gnu.org (full text, mbox):
David Kastrup <dak <at> gnu.org> writes:
> Tassilo Horn <tsdh <at> gnu.org> writes:
>
>> l.5 \(
>> a + b = c\)
>> ./main.tex:5: Preview: Snippet 2 ended.(409600+54612x2392548).
>> <-><->
>>
>> \pr <at> msg ...rrhelp {Not a real error.}\errmessage <
>> }
>> \pr <at> endbox ...lineskip \box \pr <at> box }\pr <at> ship <at> end
>> {\let \protect \noexpand \...
>>
>> \)->\relax \ifmmode \ifinner $
>> \else \@badmath \fi \else \@badmath \fi
>> l.5 \(a + b = c\)
>>
>> [2] )
>> (see the transcript file for additional information){/usr/local/texlive/2014/te
>> xmf-dist/fonts/enc/dvips/base/8r.enc}</usr/local/texlive/2014/texmf-dist/fonts/
>> type1/public/amsfonts/cm/cmmi9.pfb></usr/local/texlive/2014/texmf-dist/fonts/ty
>> pe1/public/amsfonts/cm/cmr9.pfb></usr/local/texlive/2014/texmf-dist/fonts/type1
>> /urw/times/utmb8a.pfb>
>> Output written on main.pdf (2 pages, 23675 bytes).
>> SyncTeX written on main.synctex.gz.
>> Transcript written on main.log.
>>
>> TeX Output exited as expected with code 1 at Tue Jun 9 13:30:57
>> Running `Preview-PDF2DSC' with ``pdf2dsc main.pdf main.prv/tmp4678jI2/preview.dsc''
>>
>> Preview-PDF2DSC finished at Tue Jun 9 13:30:57
>> Running `Preview-Ghostscript' with ``/usr/local/texlive/2014/bin/x86_64-linux/rungs -dOutputFile\=\(main.prv/tmp4678jI2/pr1-\%d.png\) -q -dDELAYSAFER -dNOPAUSE -DNOPLATFONTS -dPrinted -dTextAlphaBits\=4 -dGraphicsAlphaBits\=4 -sDEVICE\=png16m -r96.0757x96.0504''
>> Ghostscript filter: No bounding box
>
> "Ghostscript filter" is an error message from the Emacs component of
> preview-latex, probably coming from not being able to recognize the
> error messages. It would appear that the document classes here mess
> with the error display from LaTeX, possibly by changing the
> \errorcontextlines setting but maybe through other means.
Indeed, sigplanconf.cls contains
\errorcontextlines = 5
> It might be worth trying to put
>
> \newcount\errorcontextlines
>
> (making the original \errorcontextlines inaccessible) before
> \documentclass in order to see whether this makes a difference.
No, it doesn't make any difference although I didn't check the preview
output line by line but at least I still get the two errors from above
alternatingly.
Bye,
Tassilo
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#20773
; Package
auctex
.
(Tue, 09 Jun 2015 14:12:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 20773 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Made no difference to me either, though I'd have been rather surprised,
since \documentclass is the first thing in the document.
On Tue, Jun 9, 2015 at 10:10 AM, Tassilo Horn <tsdh <at> gnu.org> wrote:
> David Kastrup <dak <at> gnu.org> writes:
>
> > Tassilo Horn <tsdh <at> gnu.org> writes:
> >
> >> l.5 \(
> >> a + b = c\)
> >> ./main.tex:5: Preview: Snippet 2 ended.(409600+54612x2392548).
> >> <-><->
> >>
> >> \pr <at> msg ...rrhelp {Not a real error.}\errmessage <
> >> }
> >> \pr <at> endbox ...lineskip \box \pr <at> box }\pr <at> ship <at> end
> >> {\let \protect
> \noexpand \...
> >>
> >> \)->\relax \ifmmode \ifinner $
> >> \else \@badmath \fi \else \@badmath \fi
> >> l.5 \(a + b = c\)
> >>
> >> [2] )
> >> (see the transcript file for additional
> information){/usr/local/texlive/2014/te
> >>
> xmf-dist/fonts/enc/dvips/base/8r.enc}</usr/local/texlive/2014/texmf-dist/fonts/
> >>
> type1/public/amsfonts/cm/cmmi9.pfb></usr/local/texlive/2014/texmf-dist/fonts/ty
> >>
> pe1/public/amsfonts/cm/cmr9.pfb></usr/local/texlive/2014/texmf-dist/fonts/type1
> >> /urw/times/utmb8a.pfb>
> >> Output written on main.pdf (2 pages, 23675 bytes).
> >> SyncTeX written on main.synctex.gz.
> >> Transcript written on main.log.
> >>
> >> TeX Output exited as expected with code 1 at Tue Jun 9 13:30:57
> >> Running `Preview-PDF2DSC' with ``pdf2dsc main.pdf
> main.prv/tmp4678jI2/preview.dsc''
> >>
> >> Preview-PDF2DSC finished at Tue Jun 9 13:30:57
> >> Running `Preview-Ghostscript' with
> ``/usr/local/texlive/2014/bin/x86_64-linux/rungs
> -dOutputFile\=\(main.prv/tmp4678jI2/pr1-\%d.png\) -q -dDELAYSAFER -dNOPAUSE
> -DNOPLATFONTS -dPrinted -dTextAlphaBits\=4 -dGraphicsAlphaBits\=4
> -sDEVICE\=png16m -r96.0757x96.0504''
> >> Ghostscript filter: No bounding box
> >
> > "Ghostscript filter" is an error message from the Emacs component of
> > preview-latex, probably coming from not being able to recognize the
> > error messages. It would appear that the document classes here mess
> > with the error display from LaTeX, possibly by changing the
> > \errorcontextlines setting but maybe through other means.
>
> Indeed, sigplanconf.cls contains
>
> \errorcontextlines = 5
>
> > It might be worth trying to put
> >
> > \newcount\errorcontextlines
> >
> > (making the original \errorcontextlines inaccessible) before
> > \documentclass in order to see whether this makes a difference.
>
> No, it doesn't make any difference although I didn't check the preview
> output line by line but at least I still get the two errors from above
> alternatingly.
>
> Bye,
> Tassilo
>
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#20773
; Package
auctex
.
(Tue, 09 Jun 2015 14:14:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 20773 <at> debbugs.gnu.org (full text, mbox):
Tassilo Horn <tsdh <at> gnu.org> writes:
> David Kastrup <dak <at> gnu.org> writes:
>>> Ghostscript filter: No bounding box
>>
>> "Ghostscript filter" is an error message from the Emacs component of
>> preview-latex, probably coming from not being able to recognize the
>> error messages. It would appear that the document classes here mess
>> with the error display from LaTeX, possibly by changing the
>> \errorcontextlines setting but maybe through other means.
>
> Indeed, sigplanconf.cls contains
>
> \errorcontextlines = 5
>
>> It might be worth trying to put
>>
>> \newcount\errorcontextlines
>>
>> (making the original \errorcontextlines inaccessible) before
>> \documentclass in order to see whether this makes a difference.
>
> No, it doesn't make any difference although I didn't check the preview
> output line by line but at least I still get the two errors from above
> alternatingly.
Including the Ghostscript filter thing?
--
David Kastrup
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#20773
; Package
auctex
.
(Tue, 09 Jun 2015 14:18:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 20773 <at> debbugs.gnu.org (full text, mbox):
Alex Rozenshteyn <rpglover64 <at> gmail.com> writes:
>> On Tue, Jun 9, 2015 at 10:10 AM, Tassilo Horn <tsdh <at> gnu.org> wrote:
>>
>>> David Kastrup <dak <at> gnu.org> writes:
>>>
>>> > It might be worth trying to put
>>> >
>>> > \newcount\errorcontextlines
>>> >
>>> > (making the original \errorcontextlines inaccessible) before
>>> > \documentclass in order to see whether this makes a difference.
>>>
>>> No, it doesn't make any difference although I didn't check the preview
>>> output line by line but at least I still get the two errors from above
>>> alternatingly.
>
> Made no difference to me either, though I'd have been rather surprised,
> since \documentclass is the first thing in the document.
Huh? Both of you realize that I wrote
put "\newcount\errorcontextlines" *before* \documentclass ?
Why would it surprise you that this does not make a change "since
\documentclass is the first thing in the document"? \documentclass _is_
suspected of causing the problem, and so the \newcount\errorcontextlines
would remove the possibility of \documentclass to mess with the setting
of the original \errorcontextlines. For that, it has to come _before_
\documentclass.
--
David Kastrup
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#20773
; Package
auctex
.
(Tue, 09 Jun 2015 15:04:02 GMT)
Full text and
rfc822 format available.
Message #26 received at 20773 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
I meant that \documentclass is the first thing in the document _normally_,
so reinitializing something that, AFAICT should be initialized and not
changed seems to be a no-op.
To be clear, I did put \newcount\errorcontextlines before
\documentclass{sigplanconf} in my test, and it broke in the same way, with
"Ghostscript filter: No bounding box".
On Tue, Jun 9, 2015 at 10:17 AM, David Kastrup <dak <at> gnu.org> wrote:
> Alex Rozenshteyn <rpglover64 <at> gmail.com> writes:
>
> >> On Tue, Jun 9, 2015 at 10:10 AM, Tassilo Horn <tsdh <at> gnu.org> wrote:
> >>
> >>> David Kastrup <dak <at> gnu.org> writes:
> >>>
> >>> > It might be worth trying to put
> >>> >
> >>> > \newcount\errorcontextlines
> >>> >
> >>> > (making the original \errorcontextlines inaccessible) before
> >>> > \documentclass in order to see whether this makes a difference.
> >>>
> >>> No, it doesn't make any difference although I didn't check the preview
> >>> output line by line but at least I still get the two errors from above
> >>> alternatingly.
> >
> > Made no difference to me either, though I'd have been rather surprised,
> > since \documentclass is the first thing in the document.
>
> Huh? Both of you realize that I wrote
>
> put "\newcount\errorcontextlines" *before* \documentclass ?
>
> Why would it surprise you that this does not make a change "since
> \documentclass is the first thing in the document"? \documentclass _is_
> suspected of causing the problem, and so the \newcount\errorcontextlines
> would remove the possibility of \documentclass to mess with the setting
> of the original \errorcontextlines. For that, it has to come _before_
> \documentclass.
>
> --
> David Kastrup
>
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#20773
; Package
auctex
.
(Tue, 09 Jun 2015 15:09:02 GMT)
Full text and
rfc822 format available.
Message #29 received at 20773 <at> debbugs.gnu.org (full text, mbox):
David Kastrup <dak <at> gnu.org> writes:
>> Indeed, sigplanconf.cls contains
>>
>> \errorcontextlines = 5
>>
>>> It might be worth trying to put
>>>
>>> \newcount\errorcontextlines
>>>
>>> (making the original \errorcontextlines inaccessible) before
>>> \documentclass in order to see whether this makes a difference.
>>
>> No, it doesn't make any difference although I didn't check the preview
>> output line by line but at least I still get the two errors from above
>> alternatingly.
>
> Including the Ghostscript filter thing?
Yes:
--8<---------------cut here---------------start------------->8---
TeX Output exited as expected with code 1 at Tue Jun 9 17:07:04
Running `Preview-PDF2DSC' with ``pdf2dsc main.pdf main.prv/tmp46789xe/preview.dsc''
Preview-PDF2DSC finished at Tue Jun 9 17:07:04
Running `Preview-Ghostscript' with ``/usr/local/texlive/2014/bin/x86_64-linux/rungs -dOutputFile\=\(main.prv/tmp46789xe/pr1-\%d.png\) -q -dDELAYSAFER -dNOPAUSE -DNOPLATFONTS -dPrinted -dTextAlphaBits\=4 -dGraphicsAlphaBits\=4 -sDEVICE\=png16m -r96.0757x96.0504''
Ghostscript filter: No bounding box
Preview-Ghostscript finished at Tue Jun 9 17:07:04
--8<---------------cut here---------------end--------------->8---
And to be clear, I've also put the \newcount\errorcontextlines before
the \documentclass.
Bye,
Tassilo
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#20773
; Package
auctex
.
(Tue, 09 Jun 2015 15:37:02 GMT)
Full text and
rfc822 format available.
Message #32 received at 20773 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
I've got an example of the "Ghostscript filter: No bounding box" error
using \documentclass{article}.
[Message part 2 (text/html, inline)]
[formalism.tex (application/x-tex, attachment)]
[formalism_atranslation.tex (application/x-tex, attachment)]
[main.tex (application/x-tex, attachment)]
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#20773
; Package
auctex
.
(Tue, 09 Jun 2015 18:06:02 GMT)
Full text and
rfc822 format available.
Message #35 received at 20773 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Nevermind. This was probably the result of a dirty environment. I can't
seem to reproduce it.
On Tue, Jun 9, 2015 at 11:36 AM, Alex Rozenshteyn <rpglover64 <at> gmail.com>
wrote:
> I've got an example of the "Ghostscript filter: No bounding box" error
> using \documentclass{article}.
>
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#20773
; Package
auctex
.
(Wed, 10 Jun 2015 08:25:02 GMT)
Full text and
rfc822 format available.
Message #38 received at 20773 <at> debbugs.gnu.org (full text, mbox):
Alex Rozenshteyn <rpglover64 <at> gmail.com> writes:
> Nevermind. This was probably the result of a dirty environment. I
> can't seem to reproduce it.
Just to be sure, you can't reproduce it with the example files in your
last mail which use the article documentclass but you can still
reproduce it with the sigplanconf documentclass, right?
Bye,
Tassilo
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#20773
; Package
auctex
.
(Wed, 10 Jun 2015 14:13:01 GMT)
Full text and
rfc822 format available.
Message #41 received at 20773 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On Wed, Jun 10, 2015 at 4:24 AM, Tassilo Horn <tsdh <at> gnu.org> wrote:
> Alex Rozenshteyn <rpglover64 <at> gmail.com> writes:
>
> > Nevermind. This was probably the result of a dirty environment. I
> > can't seem to reproduce it.
>
> Just to be sure, you can't reproduce it with the example files in your
> last mail which use the article documentclass but you can still
> reproduce it with the sigplanconf documentclass, right?
>
That is what I meant.
>
> Bye,
> Tassilo
>
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#20773
; Package
auctex
.
(Fri, 22 Sep 2017 06:08:02 GMT)
Full text and
rfc822 format available.
Message #44 received at 20773 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi all,
At last I managed to figure out the roots of this wierd symptom. And it
also turned out that bug#20773 has the same origin, so I'm cc'ing to
20773 <at> debbugs.gnu.org, too.
>>>>> Ikumi Keita <ikumi <at> ikumi.que.jp> writes:
> Preview-latex fails if the length of the file name or the amount of the
> document is sufficiently large.
> [How to reproduce]
> (0) Enable preview-latex.
> (1) Save the attached file "preview-section-test.tex" in /tmp/ and open it.
> (2) Type C-c C-p C-d and answer with "n" to "Cache preamble?" question.
> (3) The ghostscript process hangs with error message "No bounding box"
> and the process buffer is displayed. Only the partial "\section{xxx}"
> are covered by the expected images and rests remains icons of road
> construction sign. See the attached screenshot.
> It is really strage to me that the length of the file name seems to be
> related to this symptom. If the *same* file is saved under the file
> name "xxxxxxxxxxxxxxxxxx.tex" (18 x's), no errors occur and all
> "\section{xxx}" are covered by suitable images after C-c C-p C-d. But
> the symptom occurs again if the file name is "xxxxxxxxxxxxxxxxxxx.tex"
> (19 x's).
[Analysis]
When LaTeX runs it always outputs a lot of messages to console and log
file, and it inserts line breaks in the 80th column when it outputs long
messages. Here are some samples:
----------------------------------------------------------------------
./preview-section-test.tex:10: Preview: Snippet 4 ended.(655359+183500x22609920
).
----------------------------------------------------------------------
./xxxxxxxxxxxxxxxxxxxABC.tex:8: Preview: Snippet 3 ended.(655359+183500x2260992
0).
----------------------------------------------------------------------
./formalism_atranslation.tex:1: Preview: Snippet 1 ended.(541848+14544x15728640
).
----------------------------------------------------------------------
It is this line break that makes preview-latex to fail. The part which
parses the LaTeX messages in `preview-parse-messages' of preview.el is:
----------------------------------------------------------------------
(if (looking-at "\
\\(?:Preview\\|Package Preview Error\\): Snippet \\([---0-9]+\\) \\(started\\|ended\\(\
\\.? *(\\([---0-9]+\\)\\+\\([---0-9]+\\)x\\([---0-9]+\\))\\)?\\)\\.")
(progn
... (snip) ...
(setq snippet (string-to-number (match-string 1))
box (unless
(string= (match-string 2) "started")
(if (match-string 4)
(mapcar #'(lambda (x)
(* (preview-get-magnification)
(string-to-number x)))
(list
(match-string 4)
(match-string 5)
(match-string 6)))
t))
----------------------------------------------------------------------
Comparing the regexp and the examples quoted above, you can tell that
the regexp fails to pick up the numbers embedded in the LaTeX messages
such as "655359+183500x22609920" due to the extra line break. This the
reason that preview-latex cannot provide the necessary information to
ghostscript and complains that "No bounding box".
[Solution]
Thanks to
https://tex.stackexchange.com/questions/52988/avoid-linebreaks-in-latex-console-log-output
, I learned that we can (effectively) inhibit to insert extra line
breaks by setting environment variable max_print_line to sufficiently
large value.
I confirmed that the attached patch solves the both bug#20773 and
bug#27088. I will install this fix in a week or so. According to the
article above, MikTeX also understands max_print_line, so I think this
fix is effective regardless of TeX distribution. As always, any
comments and suggestions are welcome.
And I also expect that the same prescription can be applied to solve
reliably similar problem handled in `TeX-format-filter' at the part
"Remove line breaks at columns 79 and 80" comment. We can get rid of
heuristic logic used there.
Regards,
Ikumi Keita
[preview-latex-fix (text/x-diff, attachment)]
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#20773
; Package
auctex
.
(Fri, 29 Sep 2017 08:12:02 GMT)
Full text and
rfc822 format available.
Message #47 received at 20773 <at> debbugs.gnu.org (full text, mbox):
Hi all,
> According to the article above, MikTeX also understands
> max_print_line, so I think this fix is effective regardless of TeX
> distribution.
Sorry, this statement seems to be wrong. I misread the description in
the article
https://tex.stackexchange.com/questions/52988/avoid-linebreaks-in-latex-console-log-output
. After installing MikTeX 2.9 on my windows 10 home edition, in addtion
to TeXLive 2017, it turned out that MikTeX doesn't see the environment
variable max_print_line.
According to the above article, MikTeX needs either of the two:
(1) Add command line option --max-print-line=1000 to latex.
(2) Edit the config file and modify max_print_line parameter.
In addtion, if my installation of MikTeX is correct (I'm not 100% sure
that some interfere between MikTeX and TeXLive occurs), preview-latex
does not support MikTeX in the first place even when the extra line
breaks do not appear. The (pdf)latex included in MikTeX outputs
messages like this:
----------------------------------------------------------------------
circ.tex:49: Preview: Snippet 2 started
circ.tex:49: Preview: Snippet 2 ended.(651269+183455x14483456)
----------------------------------------------------------------------
Because of the absence of a period at the end of these lines, the regexp
I mentioned before does not match and preview-latex ends up with a
message "error in process sentinel: LaTeX found no preview images".
Even when I modified the regexp to allow that the period at EOL is
optional, another error "error in process sentinel: Wrong type argument:
number-or-marker-p, nil", after Preview-PDF2DSC is killed, keeps
preview-latex from working.
I don't want to play with MikTeX further, so I'll leave the matters
concerned with MikTeX and preview-latex untouched.
Therefore, I'm afraid that the perspective
> And I also expect that the same prescription can be applied to solve
> reliably similar problem handled in `TeX-format-filter' at the part
> "Remove line breaks at columns 79 and 80" comment. We can get rid of
> heuristic logic used there.
would not apply for non-preview-latex runs in AUCTeX. The heuristic
logic is still necessary due to MikTeX.
Regards,
Ikumi Keita
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#20773
; Package
auctex
.
(Tue, 12 Mar 2024 21:10:01 GMT)
Full text and
rfc822 format available.
Message #50 received at 20773 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Alex Rozenshteyn <rpglover64 <at> gmail.com> writes:
> On Wed, Jun 10, 2015 at 4:24 AM, Tassilo Horn <tsdh <at> gnu.org> wrote:
>
> Alex Rozenshteyn <rpglover64 <at> gmail.com> writes:
>
> > Nevermind. This was probably the result of a dirty environment. I
> > can't seem to reproduce it.
>
> Just to be sure, you can't reproduce it with the example files in your
> last mail which use the article documentclass but you can still
> reproduce it with the sigplanconf documentclass, right?
>
> That is what I meant.
(I'm going through old bug reports that unfortunately weren't resolved
at the time.)
Is this issue still present? IIUC, the sigplanconf.cls is superceded by
the acmart.cls[1], so I tried these files:
[main.tex (application/x-tex, attachment)]
[formalism.tex (application/x-tex, attachment)]
[formalism_atranslation.tex (application/x-tex, attachment)]
[Message part 5 (text/plain, inline)]
Opening formalism_atranslation.tex and previewing it looks like this:
[preview.png (image/png, inline)]
[Message part 7 (text/plain, inline)]
This is with TeXLive 2023 and GS 10.03.0. Is this the expected result?
Best, Arash
Footnotes:
[1] https://www.sigplan.org/Resources/LaTeXClassFile/
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#20773
; Package
auctex
.
(Thu, 21 Mar 2024 18:35:02 GMT)
Full text and
rfc822 format available.
Message #53 received at 20773 <at> debbugs.gnu.org (full text, mbox):
Arash Esbati <arash <at> gnu.org> writes:
> Alex Rozenshteyn <rpglover64 <at> gmail.com> writes:
>
>> On Wed, Jun 10, 2015 at 4:24 AM, Tassilo Horn <tsdh <at> gnu.org> wrote:
>>
>> Alex Rozenshteyn <rpglover64 <at> gmail.com> writes:
>>
>> > Nevermind. This was probably the result of a dirty environment. I
>> > can't seem to reproduce it.
>>
>> Just to be sure, you can't reproduce it with the example files in your
>> last mail which use the article documentclass but you can still
>> reproduce it with the sigplanconf documentclass, right?
>>
>> That is what I meant.
>
> (I'm going through old bug reports that unfortunately weren't resolved
> at the time.)
>
> Is this issue still present? IIUC, the sigplanconf.cls is superceded by
> the acmart.cls[1], so I tried these files:
>
> Opening formalism_atranslation.tex and previewing it looks like this:
>
> This is with TeXLive 2023 and GS 10.03.0. Is this the expected result?
No further comments, therefore I'm closing this.
Best, Arash
Added tag(s) notabug.
Request was from
Arash Esbati <arash <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Thu, 21 Mar 2024 18:35:06 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
20773 <at> debbugs.gnu.org and Alex Rozenshteyn <rpglover64 <at> gmail.com>
Request was from
Arash Esbati <arash <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Thu, 21 Mar 2024 18:35:06 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
.
(Fri, 19 Apr 2024 11:24:21 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 22 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.