commit e4c9a71088d3c921ab01f90dc1117d8db1cdb997
Author: Pavel Sanda <sa...@lyx.org>
Date:   Mon Jun 5 22:45:14 2023 +0200

    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
---
 lib/RELEASE-NOTES |    3 +++
 lib/configure.py  |    2 +-
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/lib/RELEASE-NOTES b/lib/RELEASE-NOTES
index 39d5e8f..dda358c 100644
--- a/lib/RELEASE-NOTES
+++ b/lib/RELEASE-NOTES
@@ -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
diff --git a/lib/configure.py b/lib/configure.py
index 3a3192b..7a5052f 100644
--- a/lib/configure.py
+++ b/lib/configure.py
@@ -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'],
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to