--- loncom/interface/lonprintout.pm 2003/08/18 18:12:47 1.215 +++ loncom/interface/lonprintout.pm 2003/08/18 18:18:48 1.216 @@ -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 @@ ENDPART my $answer=&Apache::lonnet::ssi($urlp,%form); $texversion=~s/(\\keephidden{ENDOFPROBLEM})/$answer$1/; } - if ($helper->{'VARS'}->{'TABLE_INDEX'} eq 'yes') { $texversion=&IndexCreation($texversion,$urlp); } @@ -884,6 +883,9 @@ ENDPART } else { $texversion =~ s/\\end{document}//; } + if ($helper->{'VARS'}->{'TABLE_INDEX'} eq 'yes') { + $texversion=&IndexCreation($texversion,$urlp); + } $result .= $texversion; } $flag_latex_header_remove = 'YES';