version 1.172, 2003/05/14 13:33:00
|
version 1.174, 2003/05/14 18:02:56
|
Line 493 sub end_problem {
|
Line 493 sub end_problem {
|
if ($target eq 'web') { |
if ($target eq 'web') { |
$result.=&Apache::lonxml::xmlend(); |
$result.=&Apache::lonxml::xmlend(); |
} elsif ($target eq 'tex') { |
} 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_/) { |
if (not $ENV{'request.symb'} =~ m/\.page_/) { |
$result .= '\end{minipage}\end{document} '; |
$result .= '\end{minipage}\end{document} '; |
} else { |
} else { |
Line 506 sub end_problem {
|
Line 506 sub end_problem {
|
&finalize_storage(); |
&finalize_storage(); |
} |
} |
if ($target eq 'answer' && ($ENV{'request.state'} eq 'construct') |
if ($target eq 'answer' && ($ENV{'request.state'} eq 'construct') |
&& $ENV{'form.answer_mode_output'} ne 'tex') { |
&& $ENV{'form.answer_output_mode'} ne 'tex') { |
$result.='</html>'; # normally we get it from xmlend, but in CSTR |
$result.='</html>'; # normally we get it from xmlend, but in CSTR |
# we always show answer mode too. |
# we always show answer mode too. |
} |
} |