[LON-CAPA-cvs] cvs: loncom /interface printout.pl

raeburn raeburn at source.lon-capa.org
Thu Mar 12 08:00:35 EDT 2026


raeburn		Thu Mar 12 12:00:35 2026 EDT

  Modified files:              
    /loncom/interface	printout.pl 
  Log:
  - Setting Postscript language level to 1.5 when using gs -sDEVICE=pswrite 
    was added in rev. 1.148 to support PDF files in sequences. Omit when
    device isps2write (for which default is PostScript LanguageLevel 2).
  
  
Index: loncom/interface/printout.pl
diff -u loncom/interface/printout.pl:1.179 loncom/interface/printout.pl:1.180
--- loncom/interface/printout.pl:1.179	Thu Mar 12 04:21:40 2026
+++ loncom/interface/printout.pl	Thu Mar 12 12:00:35 2026
@@ -1,7 +1,7 @@
 #!/usr/bin/perl
 # CGI-script to run LaTeX, dvips, ps2ps, ps2pdf etc.
 #
-# $Id: printout.pl,v 1.179 2026/03/12 04:21:40 raeburn Exp $
+# $Id: printout.pl,v 1.180 2026/03/12 12:00:35 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -591,7 +591,10 @@
 		              ($major,$minor) = ($1,$2);
 		          }
 		      }
-		      $comma = "gs -sDEVICE=$device -dLanguageLevel=1.5 ";
+		      $comma = "gs -sDEVICE=$device ";
+		      if ($device eq 'pswrite') {
+		          $comma .= '-dLanguageLevel=1.5 ';
+		      }
 		      if (($major > 9) || (($major == 9) && ($minor >= 50))) {
 		          $comma .= '--permit-file-read=* ';
 		      }




More information about the LON-CAPA-cvs mailing list