GNU bug report logs -
#36039
Preview LaTeX doesn't work when a theme is loaded
Previous Next
Reported by: Berthold Lorke <berthold <at> lorke.de>
Date: Sat, 1 Jun 2019 15:15:02 UTC
Severity: normal
Tags: fixed
Merged with 35571,
35696
Found in version 12.1
Done: Ikumi Keita <ikumi <at> ikumi.que.jp>
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 36039 in the body.
You can then email your comments to 36039 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#36039
; Package
auctex
.
(Sat, 01 Jun 2019 15:15:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Berthold Lorke <berthold <at> lorke.de>
:
New bug report received and forwarded. Copy sent to
bug-auctex <at> gnu.org
.
(Sat, 01 Jun 2019 15:15:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Preview LaTeX works fine when no theme is loaded.
On vanilla Emacs 26.2 with only AucTeX installed, it works, but as soon as I load any theme (via customize, the default themes that come with emacs), any preview-latex command (e.g. C-c C-p C-b) I try won't show a LaTeX image in place of a math mode region.
I get the no entrance sign icons, and when I click on it with Mouse-3, I get the following.
"
/usr/bin/rungs -dOutputFile\=\(_region_.prv/tmpqsqKfU/pr1-1.png\) -q -dDELAYSAFER -dNOPAUSE -DNOPLATFONTS -dPrinted -dTextAlphaBits\=4 -dGraphicsAlphaBits\=4 -sDEVICE\=png16m -r77.8506x77.8366
GS>{<</PermitFileReading[(_region_.pdf)(_region_.prv/tmpqsqKfU/preview.dsc)]>> setuserparams .locksafe} stopped pop {DELAYSAFER{.setsafe}if}stopped pop/.preview-BP currentpagedevice/BeginPage get dup null eq{pop{pop}bind}if def<</BeginPage{currentpagedevice/PageSize get dup 0 get 1 ne exch 1 get 1 ne or{.preview-BP 0.996109 0.996109 0.996109 setrgbcolor clippath fill 0.199222 0.199222 0.199222 setrgbcolor}{pop}ifelse}bind/PageSize[1 1]>>setpagedevice/preview-do{/.preview-ST[count 4 roll save]def dup length 0 eq{pop}{setpagedevice}{ifelse exec}stopped{handleerror quit}if .preview-ST aload pop restore}bind def /GS_PDF_ProcSet GS_PDF_ProcSet dup maxlength dict copy dup begin/graphicsbeginpage{//graphicsbeginpage exec 0.199222 0.199222 0.199222 3 copy rg RG}bind store end readonly store (_region_.prv/tmpqsqKfU/preview.dsc)(r)file /.preview-ST 1 index def dup 0 setfileposition 410()/SubFileDecode filter cvx exec .preview-ST dup dup 410 setfileposition 50()/SubFileDecode filter cvx<<>>preview-do
Error: /undefined in GS_PDF_ProcSet
Operand stack:
GS_PDF_ProcSet
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- %loop_continue --nostringval-- --nostringval-- false 1 %stopped_push .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval--
Dictionary stack:
--dict:739/1123(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 644
GS<1>
"
The LaTeX compilation initialized by the preview command doesn't show any errors.g
I tried it on a friend's machine and I was able to reproduce the same behaviour.
Emacs : GNU Emacs 26.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.8)
of 2019-04-12
Package: 12.1.2
current state:
==============
(setq
AUCTeX-date "2019-02-08"
window-system 'x
LaTeX-version "2e"
TeX-style-path '("~/.emacs.d/auctex" "/tmp/.emacs.d/elpa/auctex-12.1.2/style"
"/tmp/.emacs.d/auctex/auto" "/tmp/.emacs.d/auctex/style"
"auto" "style")
TeX-auto-save nil
TeX-parse-self nil
TeX-master t
TeX-command-list '(("TeX"
"%(PDF)%(tex) %(file-line-error) %`%(extraopts) %S%(PDFout)%(mode)%' %t"
TeX-run-TeX nil
(plain-tex-mode ams-tex-mode texinfo-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" "amstex %(PDFout) %`%(extraopts) %S%(mode)%' %t"
TeX-run-TeX nil (ams-tex-mode) :help "Run AMSTeX")
("ConTeXt"
"%(cntxcom) --once --texutil %(extraopts) %(execopts)%t"
TeX-run-TeX nil (context-mode) :help "Run ConTeXt once")
("ConTeXt Full" "%(cntxcom) %(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-dvips t t :help
"Generate PostScript file")
("Dvips" "%(o?)dvips %d -o %f " TeX-run-dvips nil t :help
"Convert DVI file to PostScript")
("Dvipdfmx" "dvipdfmx %d" TeX-run-dvipdfmx nil t :help
"Convert DVI file to PDF with dvipdfmx")
("Ps2pdf" "ps2pdf %f" TeX-run-ps2pdf nil t :help
"Convert PostScript file to PDF")
("Glossaries" "makeglossaries %s" TeX-run-command nil t
:help "Run makeglossaries to create glossary file")
("Index" "%(makeindex) %s" TeX-run-index nil t :help
"Run makeindex to create index file")
("upMendex" "upmendex %s" TeX-run-index t t :help
"Run upmendex to 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#36039
; Package
auctex
.
(Sat, 01 Jun 2019 21:21:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 36039 <at> debbugs.gnu.org (full text, mbox):
On 2019-06-01 at 17:04:51 +0200, Berthold Lorke wrote:
> Preview LaTeX works fine when no theme is loaded.
> On vanilla Emacs 26.2 with only AucTeX installed, it works, but as soon as I load any theme (via customize, the default themes that come with emacs), any preview-latex command (e.g. C-c C-p C-b) I try won't show a LaTeX image in place of a math mode region.
> I get the no entrance sign icons, and when I click on it with Mouse-3, I get the following.
Which version of Ghostscript are you using? You can check with
rungs -help
Regards,
Reinhard
--
------------------------------------------------------------------
Reinhard Kotucha Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover mailto:reinhard.kotucha <at> web.de
------------------------------------------------------------------
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#36039
; Package
auctex
.
(Sat, 01 Jun 2019 21:45:03 GMT)
Full text and
rfc822 format available.
Message #11 received at 36039 <at> debbugs.gnu.org (full text, mbox):
The command "rungs -h" spits out on the first line:
GPL Ghostscript 9.27 (2019-04-04)
> On 01 June 2019 at 23:20 Reinhard Kotucha <reinhard.kotucha <at> web.de> wrote:
>
>
> On 2019-06-01 at 17:04:51 +0200, Berthold Lorke wrote:
>
> > Preview LaTeX works fine when no theme is loaded.
> > On vanilla Emacs 26.2 with only AucTeX installed, it works, but as soon as I load any theme (via customize, the default themes that come with emacs), any preview-latex command (e.g. C-c C-p C-b) I try won't show a LaTeX image in place of a math mode region.
> > I get the no entrance sign icons, and when I click on it with Mouse-3, I get the following.
>
> Which version of Ghostscript are you using? You can check with
>
> rungs -help
>
> Regards,
> Reinhard
>
> --
> ------------------------------------------------------------------
> Reinhard Kotucha Phone: +49-511-3373112
> Marschnerstr. 25
> D-30167 Hannover mailto:reinhard.kotucha <at> web.de
> ------------------------------------------------------------------
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#36039
; Package
auctex
.
(Sat, 01 Jun 2019 22:10:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 36039 <at> debbugs.gnu.org (full text, mbox):
On 2019-06-01 at 23:37:01 +0200, Berthold Lorke wrote:
> The command "rungs -h" spits out on the first line:
> GPL Ghostscript 9.27 (2019-04-04)
It's known that Ghostscript 9.27 causes trouble. For the time being,
until AUCTeX is adapted, it's best to revert to version 9.26.
Regards,
Reinhard
--
------------------------------------------------------------------
Reinhard Kotucha Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover mailto:reinhard.kotucha <at> web.de
------------------------------------------------------------------
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#36039
; Package
auctex
.
(Sat, 01 Jun 2019 22:35:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 36039 <at> debbugs.gnu.org (full text, mbox):
Thanks, that fixed the problem!
> On 02 June 2019 at 00:09 Reinhard Kotucha <reinhard.kotucha <at> web.de> wrote:
>
>
> On 2019-06-01 at 23:37:01 +0200, Berthold Lorke wrote:
>
> > The command "rungs -h" spits out on the first line:
> > GPL Ghostscript 9.27 (2019-04-04)
>
> It's known that Ghostscript 9.27 causes trouble. For the time being,
> until AUCTeX is adapted, it's best to revert to version 9.26.
>
> Regards,
> Reinhard
>
> --
> ------------------------------------------------------------------
> Reinhard Kotucha Phone: +49-511-3373112
> Marschnerstr. 25
> D-30167 Hannover mailto:reinhard.kotucha <at> web.de
> ------------------------------------------------------------------
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#36039
; Package
auctex
.
(Fri, 07 Jun 2019 16:14:01 GMT)
Full text and
rfc822 format available.
Message #20 received at submit <at> debbugs.gnu.org (full text, mbox):
Another workaround that I use is to set
preview-reference-face
explicitly.
I customized it to be foreground: black and everything is working now
even with a the new gs 2.27
Best,
Gennady
On 14/05/2019 13.48, Gennady Uraltsev wrote:
> Hello,
>
> It seems to be the same problem as I posted here:
>
> http://lists.gnu.org/archive/html/bug-auctex/2019-05/msg00000.html
>
> In particular a temporary work-around is to customize the variable
>
> preview-reference-face
>
> setting a non-trivial foreground color (black).
>
> I hope the developers address this issue. It seems to be a simple fix.
>
> Best,
>
> Gennady
>
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#36039
; Package
auctex
.
(Thu, 13 Jun 2019 16:35:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 36039 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Just in case, if people feel confused as I did the variable isn't in
customize-variable,
The procedure is to use
1) M-x customize-face
2) enter preview reference
3) change the attribute of the foreground
Regards,
Praharsh S
On Fri, Jun 7, 2019 at 1:36 PM Gennady Uraltsev <gennady.uraltsev <at> gmail.com>
wrote:
> Another workaround that I use is to set
> preview-reference-face
> explicitly.
>
> I customized it to be foreground: black and everything is working now
> even with a the new gs 2.27
>
>
> Best,
>
> Gennady
>
> On 14/05/2019 13.48, Gennady Uraltsev wrote:
> > Hello,
> >
> > It seems to be the same problem as I posted here:
> >
> > http://lists.gnu.org/archive/html/bug-auctex/2019-05/msg00000.html
> >
> > In particular a temporary work-around is to customize the variable
> >
> > preview-reference-face
> >
> > setting a non-trivial foreground color (black).
> >
> > I hope the developers address this issue. It seems to be a simple fix.
> >
> > Best,
> >
> > Gennady
> >
>
>
>
> _______________________________________________
> bug-auctex mailing list
> bug-auctex <at> gnu.org
> https://lists.gnu.org/mailman/listinfo/bug-auctex
>
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#36039
; Package
auctex
.
(Sun, 21 Jul 2019 12:15:02 GMT)
Full text and
rfc822 format available.
Message #26 received at 36039 <at> debbugs.gnu.org (full text, mbox):
Dear the bug reporters,
I just committed a "fix" for preview-latex in the git repository of
AUCTeX. You can try it out at git://git.savannah.gnu.org/auctex.git .
Unfortunately, the latest development version offers only partial
solution if you are using gs 9.27. Please read on for detail.
1. When you use gs 9.28 or later after gs 9.28 is released, customize
`preview-pdf-color-adjust-method' to t.
This includes the case that your (Linux or *BSD) binary package
manager distributes gs 9.27 with necessary patches.
2. When you use gs 9.26 or before, customize
`preview-pdf-color-adjust-method' to `compatible'.
3. When you use gs 9.27 and it doesn't have the necessary patches
applied,
3-1. if you don't customize the foreground color of Emacs, customize
`preview-pdf-color-adjust-method' to `compatible'.
3-2. if you customize the foreground color of Emacs and the background
is light (i.e. not dark), customize
`preview-pdf-color-adjust-method' to `compatible' and
`preview-reference-face' to have default (black) foreground color.
3-3. if you customize the foreground color of Emacs and the background
is dark, customize `preview-pdf-color-adjust-method' to nil. This
forces plain "black on white" appearance for the generated image.
You can at least read what are written in the image although they
may not match with your Emacs color well.
Best regards,
Ikumi Keita
Added tag(s) fixed.
Request was from
Ikumi Keita <ikumi <at> ikumi.que.jp>
to
control <at> debbugs.gnu.org
.
(Mon, 22 Jul 2019 11:48:01 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
35571 <at> debbugs.gnu.org and Gennady Uraltsev <gennady.uraltsev <at> gmail.com>
Request was from
Ikumi Keita <ikumi <at> ikumi.que.jp>
to
control <at> debbugs.gnu.org
.
(Mon, 22 Jul 2019 11:48: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
.
(Tue, 20 Aug 2019 11:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 263 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.