[LON-CAPA-cvs] cvs: loncom /interface lonprintout.pm
sakharuk
lon-capa-cvs@mail.lon-capa.org
Fri, 06 Sep 2002 17:46:14 -0000
sakharuk Fri Sep 6 13:46:14 2002 EDT
Modified files:
/loncom/interface lonprintout.pm
Log:
Small correction for printing assignments for the students (Ed wanted).
Index: loncom/interface/lonprintout.pm
diff -u loncom/interface/lonprintout.pm:1.55 loncom/interface/lonprintout.pm:1.56
--- loncom/interface/lonprintout.pm:1.55 Thu Sep 5 15:35:00 2002
+++ loncom/interface/lonprintout.pm Fri Sep 6 13:46:13 2002
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Printout
#
-# $Id: lonprintout.pm,v 1.55 2002/09/05 19:35:00 sakharuk Exp $
+# $Id: lonprintout.pm,v 1.56 2002/09/06 17:46:13 sakharuk Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -417,7 +417,11 @@
$courseidinfo = $ENV{'course.physnet_'.$1.'.description'};
# $result =~ s/\\documentclass\[letterpaper\]{article}/\\documentclass\[twocolumn\]{article}/;
$result =~ s/\\documentclass\[letterpaper\]{article}/\\documentclass{article}/;
- $result =~ 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}\\parbox{\\minipagewidth}{\\noindent\\fbox{\\textbf{$ENV{'environment.firstname'} $ENV{'environment.lastname'}}}\\hskip 1\.4in $courseidinfo} \\vskip 5 mm /;
+ if ($choice ne 'All class print') {
+ $result =~ 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}\\parbox{\\minipagewidth}{\\noindent\\fbox{\\textbf{$ENV{'environment.firstname'} $ENV{'environment.lastname'}}}\\hskip 1\.4in $courseidinfo} \\vskip 5 mm /;
+ } else {
+ $result =~ 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} \\vskip 5 mm /;
+ }
$result =~ s/\\includegraphics{/\\includegraphics\[width=9\.0 cm\]{/g;
# $result =~ s/\\includegraphics{/\\includegraphics\[width=\\textwidth\]{/g;
# $result =~ s/(\\end{document})/\\newline\\noindent\\makebox\[9.0cm\]\[b\]{\\hrulefill}\\newline\\noindent\\tiny Dept\. of Physics and Astronomy, MSU\\makebox\[1.5cm\]\[b\]{\\hfill}LON-CAPA\\copyright MSU GNU\/GPL $1/;