Answer for Part:'.
+ $Apache::inputtags::part. ' | '."\n";
}
- }
- return $result;
+ return $result;
}
-sub end_responseparam {
- my ($target,$token,$tagstack,$parstack,$parser,$safeeval)=@_;
- if ($target eq 'edit') { return ('','no'); }
- return '';
+sub answer_part {
+ my ($type,$answer) = @_;
+ my $result;
+ if ($ENV{'form.answer_output_mode'} eq 'tex') {
+ $result = ' \verb|'.$answer.'|\\\\ \hline ';
+ } else {
+ $result = ''.$answer.' | ';
+ }
+ return $result;
}
-sub setup_params {
- my ($tag) = @_;
+sub answer_footer {
+ my ($type) = @_;
+ my $result;
+ if ($ENV{'form.answer_output_mode'} eq 'tex') {
+ $result = ' \end{tabular} \vskip 0 mm ';
+ } else {
+ $result = '