Diff for /loncom/interface/printout.pl between versions 1.102 and 1.103

version 1.102, 2006/06/19 21:40:29 version 1.103, 2006/06/19 22:30:15
Line 769  sub repaginate { Line 769  sub repaginate {
     close(PSFILE);      close(PSFILE);
   
     #  If 2 columns, max_pages must go to an even number of columns:      #  If 2 columns, max_pages must go to an even number of columns:
   
       &Apache::lonnet::logthis("Before 2 col adjust max-pages = $max_pages");
         
     if ($num_columns == 2) {      if ($num_columns == 2) {
  if ($max_pages % 2) {   if ($max_pages % 2) {
     $max_pages++;      $max_pages++;
  }   }
     }      }
       &Apache::lonnet::logthis("after adjust: $max_pages");
           
     #  Now rewrite the LaTex file, substituting our \special      #  Now rewrite the LaTex file, substituting our \special
     #  with an appropriate number of \newpage directives.      #  with an appropriate number of \newpage directives.
Line 795  sub repaginate { Line 798  sub repaginate {
     # End of student replace with 0 or more newpages.      # End of student replace with 0 or more newpages.
           
     my $addlines = $max_pages - $pages_in_student[$student_number];      my $addlines = $max_pages - $pages_in_student[$student_number];
       &Apache::lonnet::logthis("student: $pages_in_student[$student_number] add: $addlines");
     while($addlines)  {      while($addlines)  {
  print LATEXOUT '\newpage';   print LATEXOUT '\pagebreak';
  $addlines--;   $addlines--;
     }      }
           

Removed from v.1.102  
changed lines
  Added in v.1.103


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>