version 1.108, 2006/08/03 00:26:39
|
version 1.109, 2006/08/14 10:52:30
|
Line 798 sub repaginate {
|
Line 798 sub repaginate {
|
|
|
# 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 828 sub repaginate {
|
Line 826 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 '\clearpage \strut \clearpage'; |
print LATEXOUT '\clearpage \strut \clearpage'; |
|
|