[LON-CAPA-cvs] cvs: loncom /interface lonprintout.pm /xml londefdef.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Tue, 01 Aug 2006 18:48:14 -0000
albertel Tue Aug 1 14:48:14 2006 EDT
Modified files:
/loncom/interface lonprintout.pm
/loncom/xml londefdef.pm
Log:
- BUG#4942 - don't stretch everything to the bottom
Index: loncom/interface/lonprintout.pm
diff -u loncom/interface/lonprintout.pm:1.472 loncom/interface/lonprintout.pm:1.473
--- loncom/interface/lonprintout.pm:1.472 Tue Aug 1 14:46:07 2006
+++ loncom/interface/lonprintout.pm Tue Aug 1 14:47:59 2006
@@ -2,7 +2,7 @@
# The LearningOnline Network
# Printout
#
-# $Id: lonprintout.pm,v 1.472 2006/08/01 18:46:07 albertel Exp $
+# $Id: lonprintout.pm,v 1.473 2006/08/01 18:47:59 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -893,7 +893,7 @@
sub print_latex_header {
my $mode=shift;
- my $output='\documentclass[letterpaper,twoside]{article}';
+ my $output='\documentclass[letterpaper,twoside]{article}\raggedbottom';
if (($mode eq 'batchmode') || (!$perm{'pav'})) {
$output.='\batchmode';
}
Index: loncom/xml/londefdef.pm
diff -u loncom/xml/londefdef.pm:1.330 loncom/xml/londefdef.pm:1.331
--- loncom/xml/londefdef.pm:1.330 Wed Jul 19 16:32:23 2006
+++ loncom/xml/londefdef.pm Tue Aug 1 14:48:14 2006
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Tags Default Definition Module
#
-# $Id: londefdef.pm,v 1.330 2006/07/19 20:32:23 albertel Exp $
+# $Id: londefdef.pm,v 1.331 2006/08/01 18:48:14 albertel Exp $
#
#
# Copyright Michigan State University Board of Trustees
@@ -183,7 +183,8 @@
if ($target eq 'web' || $target eq 'edit' || $target eq 'webgrade' ) {
# start_body() takes care of emitting the <html>
} elsif ($target eq 'tex') {
- $currentstring .= '\documentclass[letterpaper,twoside]{article}';
+ $currentstring .=
+ '\documentclass[letterpaper,twoside]{article}\raggedbottom';
if (($env{'form.latex_type'}=~'batchmode') ||
(!$env{'request.role.adv'})) {$currentstring .='\batchmode';}
$currentstring .= '\newcommand{\keephidden}[1]{}'.