Use ps2pdf -dALLOWPSTRANSPARENCY by default.

Ghostscript 9.52 breaks transparency, for some time -dNOSAFER
workaround worked but since 9.53.3 -dALLOWPSTRANSPARENCY should
work. Tested on 9.53.3.

See also
https://www.lyx.org/trac/ticket/12303
https://www.mail-archive.com/lyx-users@lists.lyx.org/msg115086.html
https://tex.stackexchange.com/questions/597980/ghostscript-requires-dallowpstransparency-when-compiling-pstricks-figures
https://forums.fedoraforum.org/showthread.php?324453-Ghostscript-9-52-breaks-transparency-in-LaTeX-packages
This commit is contained in:
Pavel Sanda 2023-06-05 22:45:14 +02:00
parent 41cd930495
commit e4c9a71088
2 changed files with 4 additions and 1 deletions

View File

@ -81,6 +81,9 @@
sgmltools has been removed, this new support is always enabled.
Having sgmltools installed or not will not change anything in LyX.
* Postscript -> PDF convertor (ps2pdf) uses -dALLOWPSTRANSPARENCY by
default now (implemented since ghostscript 9.53.3, see bug #12303).
!!!The following pref variables were added in 2.4:
* \ct_additions_underlined true|false: determines whether additions in change tracking

View File

@ -1064,7 +1064,7 @@ def checkConverterEntries():
checkProg('a RTF -> HTML converter', ['unrtf --html $$i > $$o'],
rc_entry = [ r'\converter rtf html "%%" ""' ])
# Do not define a converter to pdf6, ps is a pure export format
checkProg('a PS to PDF converter', ['ps2pdf $$i $$o'],
checkProg('a PS to PDF converter', ['ps2pdf -dALLOWPSTRANSPARENCY $$i $$o'],
rc_entry = [ r'\converter ps pdf "%%" "hyperref-driver=dvips"' ])
#
checkProg('a PS to TXT converter', ['pstotext $$i > $$o'],