[Top][All Lists]

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

Re: 2022-05-30; previews not using face color with xetex engine

From: Ikumi Keita
Subject: Re: 2022-05-30; previews not using face color with xetex engine
Date: Tue, 14 Jun 2022 20:31:02 +0900

Hi Jean,

>>>>> jfbu <> writes:
> ----
> \documentclass{article}
> \begin{document}

> test $\alpha + \beta$.  %% preview should appear here.

> \end{document}

> % Local Variables:
> % TeX-engine: xetex
> % End:
> ----

> and on generating previews the color for the preview
> is black which shows badly on a dark theme

Indeed. It seems that xelatex produces PDF incompatible with the
PostScript code which preview-latex sends to Ghostscript to alter
foreground color. Is this recent change in xelatex (or xdvipdfmx)? If my
memory serves, the current PostScript code once worked with xelatex...
Anyway, it seems that we need to ask on gs developers' list again to
revise that PostScript code. :-(

> Strangely (to me) whether with TeX-engine set to xetex, luatex, or
> default, the same command is invoked (apart from name of tmp
> repertory)

> Running `Preview-Ghostscript' with ``/Library/TeX/texbin/rungs 
> -sOutputFile\=aucxetex.prv/tmpAAVPBX/pr1-\%d.png -q -dDELAYSAFER -dNOPAUSE 
> -DNOPLATFONTS -dPrinted -dTextAlphaBits\=4 -dGraphicsAlphaBits\=4 
> -sDEVICE\=png16m -r240.615x252.2 -dDELAYBIND''

Of course the invocation of Ghostscript is common among all engines. It
is the latex command invoked first that differs.

> My gs version is 9.54

Mine is 9.55.

> xetex/luatex display the problem I mentioned but not default (which
> has "compile directly to PDF")

Hmm, lualatex works well for me just like pdflatex, at least for the
given example. Strange.

Ikumi Keita
#StandWithUkraine #StopWarInUkraine

reply via email to

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