[LON-CAPA-cvs] cvs: loncom /interface lonprintout.pm

sakharuk lon-capa-cvs@mail.lon-capa.org
Mon, 14 Oct 2002 15:20:15 -0000


sakharuk		Mon Oct 14 11:20:15 2002 EDT

  Modified files:              
    /loncom/interface	lonprintout.pm 
  Log:
  Correction for the page layout for group printing - width of page is defined now correctly.
  
  
Index: loncom/interface/lonprintout.pm
diff -u loncom/interface/lonprintout.pm:1.77 loncom/interface/lonprintout.pm:1.78
--- loncom/interface/lonprintout.pm:1.77	Mon Oct 14 09:57:51 2002
+++ loncom/interface/lonprintout.pm	Mon Oct 14 11:20:15 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Printout
 #
-# $Id: lonprintout.pm,v 1.77 2002/10/14 13:57:51 sakharuk Exp $
+# $Id: lonprintout.pm,v 1.78 2002/10/14 15:20:15 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -225,7 +225,7 @@
 <input type="hidden" name="choice" value="$ENV{'form.choice'}">
 <input type="hidden" name="layout" value="$ENV{'form.layout'}">
 <input type="hidden" name="numberofcolumns" value="$ENV{'form.numberofcolumns'}">
-<h1>Mark students which assignments you want to print</h1>
+<h1>Select student(s) whose assignment you want to print</h1>
 ENDMENUOUT1
     my %courselist=&Apache::lonnet::dump(
                    'classlist',
@@ -1075,7 +1075,7 @@
  	    if ($choice ne 'All class print') { 
 		$text =~ s/\\begin{document}/\\textheight 25\.9cm\\oddsidemargin = -0\.57in\\evensidemargin = -0\.57in\\textwidth= 9cm\\newlength{\\minipagewidth}\\setlength{\\minipagewidth}{\\textwidth\/\$number_of_columns-0\.2cm}\\renewcommand{\\ref}{\\keephidden\}\\begin{document}\\voffset=-1\.8cm\\setcounter{page}{1}\\noindent\\parbox{\\minipagewidth}{\\noindent\\fbox{\\textbf{$ENV{'environment.firstname'} $ENV{'environment.lastname'}}} \\hfill  $courseidinfo} \\vskip 5 mm /;
 	    } else {
-		$text =~ s/\\begin{document}/\\setlength{\\textheight}{$textheight}\\setlength{\\oddsidemargin}{$oddoffset}\\setlength{\\evensidemargin}{$evenoffset}\\setlength{\\textheight}{$textheight}\\newlength{\\minipagewidth}\\setlength{\\minipagewidth}{\\textwidth\/\$number_of_columns-0\.2cm}\\renewcommand{\\ref}{\\keephidden\}\\begin{document}\\voffset=-1\.8cm\\setcounter{page}{1}  \\vskip 5 mm /;
+		$text =~ s/\\begin{document}/\\setlength{\\textheight}{$textheight}\\setlength{\\oddsidemargin}{$oddoffset}\\setlength{\\evensidemargin}{$evenoffset}\\setlength{\\textwidth}{$textwidth}\\newlength{\\minipagewidth}\\setlength{\\minipagewidth}{\\textwidth\/\$number_of_columns-0\.2cm}\\renewcommand{\\ref}{\\keephidden\}\\begin{document}\\voffset=-1\.8cm\\setcounter{page}{1}  \\vskip 5 mm /;
 	    }
 	}
 	return $text;