[LON-CAPA-cvs] cvs: loncom /interface lonprintout.pm
sakharuk
lon-capa-cvs@mail.lon-capa.org
Mon, 18 Aug 2003 18:18:48 -0000
sakharuk Mon Aug 18 14:18:48 2003 EDT
Modified files:
/loncom/interface lonprintout.pm
Log:
Index can be printed for a bunch od problems from subdirectory.
Index: loncom/interface/lonprintout.pm
diff -u loncom/interface/lonprintout.pm:1.215 loncom/interface/lonprintout.pm:1.216
--- loncom/interface/lonprintout.pm:1.215 Mon Aug 18 14:12:47 2003
+++ loncom/interface/lonprintout.pm Mon Aug 18 14:18:48 2003
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Printout
#
-# $Id: lonprintout.pm,v 1.215 2003/08/18 18:12:47 sakharuk Exp $
+# $Id: lonprintout.pm,v 1.216 2003/08/18 18:18:48 sakharuk Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -750,7 +750,6 @@
my $answer=&Apache::lonnet::ssi($urlp,%form);
$texversion=~s/(\\keephidden{ENDOFPROBLEM})/$answer$1/;
}
-
if ($helper->{'VARS'}->{'TABLE_INDEX'} eq 'yes') {
$texversion=&IndexCreation($texversion,$urlp);
}
@@ -883,6 +882,9 @@
$texversion = &latex_header_footer_remove($texversion);
} else {
$texversion =~ s/\\end{document}//;
+ }
+ if ($helper->{'VARS'}->{'TABLE_INDEX'} eq 'yes') {
+ $texversion=&IndexCreation($texversion,$urlp);
}
$result .= $texversion;
}