--- loncom/interface/printout.pl 2004/08/12 17:19:25 1.64 +++ loncom/interface/printout.pl 2004/08/13 17:14:48 1.66 @@ -1,7 +1,7 @@ #!/usr/bin/perl # CGI-script to run LaTeX, dvips, ps2ps, ps2pdf etc. # -# $Id: printout.pl,v 1.64 2004/08/12 17:19:25 sakharuk Exp $ +# $Id: printout.pl,v 1.66 2004/08/13 17:14:48 sakharuk Exp $ # # Copyright Michigan State University Board of Trustees # @@ -365,7 +365,8 @@ foreach $texfile (@texfile) { "for $status_statement now Modifying PS layout", \%prog_state,$tempo_file); } elsif ($laystyle eq 'book' and $numberofcolumns eq '2') { - $comma = 'pstops "2:0+1(0.48w,0)"'; + $papera=~s/t/p/; + $comma = 'pstops '.$papera.' "2:0+1(0.48w,0)"'; &busy_wait_command("$comma $new_name_file $tempo_file 1>/dev/null 2>/dev/null", "for $status_statement now Modifying PS layout", \%prog_state,$tempo_file); @@ -383,7 +384,7 @@ foreach $texfile (@texfile) { if ($i==0) { if ($paper eq '6') {print FFHS '<< /PageSize [595.2 842] >> setpagedevice'."\n";} if ($paper eq '1') {print FFHS '<< /PageSize [612 1008] >> setpagedevice'."\n";} - if ($paper eq '2') {print FFHS '<< /PageSize [794.97 1228.59] >> setpagedevice'."\n";} + if ($paper eq '2') {print FFHS '<< /PageSize [792 1224] >> setpagedevice'."\n";} if ($paper eq '3') {print FFHS '<< /PageSize [542 722.7] >> setpagedevice'."\n";} if ($paper eq '4') {print FFHS '<< /PageSize [1195.02 1690.09] >> setpagedevice'."\n";} if ($paper eq '5') {print FFHS '<< /PageSize [842 1195.02] >> setpagedevice'."\n";}