[LON-CAPA-cvs] cvs: loncom /interface lonprintout.pm
sakharuk
lon-capa-cvs@mail.lon-capa.org
Thu, 17 Oct 2002 14:42:58 -0000
sakharuk Thu Oct 17 10:42:58 2002 EDT
Modified files:
/loncom/interface lonprintout.pm
Log:
Changes to print exams with uniform enumeration. Cleaunup is done after every exam printing.
Index: loncom/interface/lonprintout.pm
diff -u loncom/interface/lonprintout.pm:1.78 loncom/interface/lonprintout.pm:1.79
--- loncom/interface/lonprintout.pm:1.78 Mon Oct 14 11:20:15 2002
+++ loncom/interface/lonprintout.pm Thu Oct 17 10:42:58 2002
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Printout
#
-# $Id: lonprintout.pm,v 1.78 2002/10/14 15:20:15 sakharuk Exp $
+# $Id: lonprintout.pm,v 1.79 2002/10/17 14:42:58 sakharuk Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -370,7 +370,7 @@
$moreenv{'form.textwidth'}=$LaTeXwidth;
&Apache::lonnet::appenv(%moreenv);
my $texversion=&Apache::lonnet::ssi($ENV{'form.url'});
- &Apache::lonnet::delenv('form.grade_target','form.textwidth');
+ &Apache::lonnet::delenv('form.grade_target','form.textwidth','form.counter');
$result .= $texversion;
if ($ENV{'form.url'}=~m/\.page\s*$/) {
($result,$number_of_columns) = &page_cleanup($result);
@@ -1122,7 +1122,7 @@
$result =~ s/\\includegraphics{/\\includegraphics\[width=\\minipagewidth\]{/g;
$result =~ s/\$number_of_columns/$number_of_columns/g;
- $result =~ s/(\\end{document})/\\newline\\noindent\\makebox\[\\textwidth\/$number_of_columns\]\[b\]{\\hrulefill}\\newline\\noindent\\tiny \\makebox\[1.5cm\]\[b\]{\\hfill}LON-CAPA\\copyright Michigan State University Board of Trustees $1/;
+ $result =~ s/(\\end{document})/\\newline\\noindent\\makebox\[\\textwidth\/$number_of_columns\]\[b\]{\\hrulefill}\\newline\\noindent\\tiny \\makebox\[1.5cm\]\[b\]{\\hfill}LON-CAPA\\copyright MSU $1/;
$result =~ s/(\\end{longtable}\s*)(\\newline\\noindent\\makebox\[\\textwidth\/$number_of_columns\]\[b\]{\\hrulefill})/$2$1/g;
$result =~ s/(\\end{longtable}\s*)\\newline/$1/g;
#-- LaTeX corrections