[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
- Re: [AUCTeX-devel] [gs-devel] Asking help for preview-latex, (continued)
- Re: [AUCTeX-devel] [gs-devel] Asking help for preview-latex, Ken Sharp, 2019/06/20
- Re: [AUCTeX-devel] [gs-devel] Asking help for preview-latex, Ikumi Keita, 2019/06/20
- Re: [AUCTeX-devel] [gs-devel] Asking help for preview-latex, Ikumi Keita, 2019/06/20
- Re: [AUCTeX-devel] [gs-devel] Asking help for preview-latex, Ken Sharp, 2019/06/21
- Re: [AUCTeX-devel] [gs-devel] Asking help for preview-latex, Ikumi Keita, 2019/06/22
- Re: [AUCTeX-devel] Asking help for preview-latex, jfbu, 2019/06/22
- Re: [AUCTeX-devel] Asking help for preview-latex, jfbu, 2019/06/22
- [AUCTeX-devel] Try to colorize preview (was Re: Asking help for preview-latex), Ikumi Keita, 2019/06/23
- Re: [AUCTeX-devel] [gs-devel] Try to colorize preview, Ikumi Keita, 2019/06/24
- Re: [AUCTeX-devel] [gs-devel] Try to colorize preview, jfbu, 2019/06/24
- Re: [AUCTeX-devel] Try to colorize preview,
Ikumi Keita <=
- Re: [AUCTeX-devel] Try to colorize preview, jfbu, 2019/06/24
- Re: [AUCTeX-devel] Try to colorize preview (was Re: Asking help for preview-latex), David Kastrup, 2019/06/24
- Re: [AUCTeX-devel] Try to colorize preview (was Re: Asking help for preview-latex), Ikumi Keita, 2019/06/24
- Re: [AUCTeX-devel] Try to colorize preview (was Re: Asking help for preview-latex), David Kastrup, 2019/06/24
- Re: [AUCTeX-devel] Try to colorize preview (was Re: Asking help for preview-latex), Ikumi Keita, 2019/06/24
- Re: [AUCTeX-devel] Try to colorize preview (was Re: Asking help for preview-latex), David Kastrup, 2019/06/24
- [AUCTeX-devel] Old archive of preview-latex (was Try to colorize preview), Ikumi Keita, 2019/06/25
- Re: [AUCTeX-devel] [gs-devel] Asking help for preview-latex, Ken Sharp, 2019/06/22
- Re: [AUCTeX-devel] [gs-devel] Asking help for preview-latex, Chris Liddell, 2019/06/26
- Re: [AUCTeX-devel] [gs-devel] Asking help for preview-latex, Ikumi Keita, 2019/06/26