--- loncom/interface/printout.pl 2006/06/19 21:40:29 1.102 +++ loncom/interface/printout.pl 2006/06/19 22:30:15 1.103 @@ -769,12 +769,15 @@ sub repaginate { close(PSFILE); # 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 ($max_pages % 2) { $max_pages++; } } + &Apache::lonnet::logthis("after adjust: $max_pages"); # Now rewrite the LaTex file, substituting our \special # with an appropriate number of \newpage directives. @@ -795,8 +798,9 @@ sub repaginate { # End of student replace with 0 or more newpages. my $addlines = $max_pages - $pages_in_student[$student_number]; + &Apache::lonnet::logthis("student: $pages_in_student[$student_number] add: $addlines"); while($addlines) { - print LATEXOUT '\newpage'; + print LATEXOUT '\pagebreak'; $addlines--; }