auctex-devel
[Top][All Lists]
Advanced

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

Re: [AUCTeX-devel] Try to colorize preview


From: Ikumi Keita
Subject: Re: [AUCTeX-devel] Try to colorize preview
Date: Mon, 24 Jun 2019 22:07:44 +0900

Hi Jean,

Thank you for providing patch for preview.dtx, it improves the situation
much.

I'm currently thinking to add a new customize option to preview-latex,
so as to:
1. If the option is, say, t, use the new framework to adjust the
non-trivial colors.
2. Otherwize, use the traditional framework for non-pdf path
(latex+dvipng and latex+dvips+gs) and abandon attempt to adjust colors
for pdf path (pdflatex+pdf2dsc+gs).  That is, the pdf path would result
in "black on white" appearance of images of math formulae regardless of
emacs color.

>>>>> jfbu <address@hidden> writes:

> I briefly tested (but with an unmodified auctex, I did not remove
> the gs hack for my tests ; but I don't have any specific colors
> in Emacs buffer) that the following patches work
> both with pdflatex + gs and with latex + dvipng

I confirmed that the proposed change works for those two cases, at least
for very simple latex file.  However, it doesn't yet work for the case
latex+dvips+gs.  It results in Ghostscript error and the "do not enter"
signs appear in emacs buffer.
The invocation of latex command is:
latex 
"\nonstopmode\nofiles\PassOptionsToPackage{active,tightpage,auctex}{preview}\AtBeginDocument{\RequirePackage[dvips]{color}\color{green}\pagecolor{red}\ifx\ifPreview\undefined\RequirePackage[dvips,displaymath,floats,graphics,textmath,sections,footnotes]{preview}[2004/11/05]\fi}"
 "\input" tst-prv.tex
.  Although the generated tst-prv.dvi can be viewed by xdvi with
expected colors, it seems that the PostScript file generated with the
command
dvips -Pwww tst-prv.dvi -o tst-prv.ps
is broken because atril (PDF and PS viewer for MATE desktop environmnet)
terminates with an error message
'atril tst-prv.ps' terminated by signal SIGSEGV (Address boundary error)
before it can display tst-prv.ps.

Regards,
Ikumi Keita



reply via email to

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