--- loncom/interface/lonprintout.pm 2003/05/14 18:15:03 1.171 +++ loncom/interface/lonprintout.pm 2003/05/15 13:32:02 1.173 @@ -1,7 +1,7 @@ # The LearningOnline Network # Printout # -# $Id: lonprintout.pm,v 1.171 2003/05/14 18:15:03 sakharuk Exp $ +# $Id: lonprintout.pm,v 1.173 2003/05/15 13:32:02 sakharuk Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1477,6 +1477,13 @@ ENDPART } else { $rendered =~ s/\\end{document}//; } + if($helper->{'VARS'}->{'ANSWER_TYPE'} eq 'no') { + my %form; + $form{'answer_output_mode'}='tex'; + my $ansrendered = &Apache::loncommon::get_student_answers($curresline,$username,$userdomain, + $ENV{'request.course.id'},%form); + $rendered=~s/(\\keephidden{ENDOFPROBLEM})/$ansrendered$1/; + } $current_output .= $rendered; } $flag_latex_header_remove = 'YES'; @@ -1835,7 +1842,7 @@ HELPERFRAGMENT &Apache::lonxml::xmlparse($r, 'helper', < (mark them then click "next" button)
- + PAGESIZE return $isProblemOrMap return $isProblem