--- loncom/homework/structuretags.pm 2003/05/14 13:33:00 1.172 +++ loncom/homework/structuretags.pm 2003/05/14 18:02:56 1.174 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.172 2003/05/14 13:33:00 albertel Exp $ +# $Id: structuretags.pm,v 1.174 2003/05/14 18:02:56 sakharuk Exp $ # # Copyright Michigan State University Board of Trustees # @@ -493,7 +493,7 @@ sub end_problem { if ($target eq 'web') { $result.=&Apache::lonxml::xmlend(); } elsif ($target eq 'tex') { - $result .= '\vskip 0.5mm\noindent\makebox[\textwidth/$number_of_columns][b]{\hrulefill}'; + $result .= '\keephidden{ENDOFPROBLEM}\vskip 0.5mm\noindent\makebox[\textwidth/$number_of_columns][b]{\hrulefill}'; if (not $ENV{'request.symb'} =~ m/\.page_/) { $result .= '\end{minipage}\end{document} '; } else { @@ -506,7 +506,7 @@ sub end_problem { &finalize_storage(); } if ($target eq 'answer' && ($ENV{'request.state'} eq 'construct') - && $ENV{'form.answer_mode_output'} ne 'tex') { + && $ENV{'form.answer_output_mode'} ne 'tex') { $result.=''; # normally we get it from xmlend, but in CSTR # we always show answer mode too. }