--- loncom/homework/response.pm 2005/12/06 09:29:34 1.132 +++ loncom/homework/response.pm 2005/12/06 10:00:08 1.133 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # various response type definitons response definition # -# $Id: response.pm,v 1.132 2005/12/06 09:29:34 albertel Exp $ +# $Id: response.pm,v 1.133 2005/12/06 10:00:08 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -596,10 +596,18 @@ sub setup_params { my @answer_bits; sub answer_header { - my ($type) = @_; + my ($type,$increment) = @_; my $result; if ($env{'form.answer_output_mode'} eq 'tex') { undef(@answer_bits); + my $bit; + if ($Apache::lonhomework::type eq 'exam') { + $bit = ($Apache::lonxml::counter+$increment).') '; + } else { + $bit .= ' Answer for Part: \verb|'. + $Apache::inputtags::part.'| '; + } + push(@answer_bits,$bit); } else { $result = '