Answer for Part:'.
- $Apache::inputtags::part. ' | '."\n";
- }
- return $result;
+ my ($type) = @_;
+ my $result;
+ if ($ENV{'form.answer_output_mode'} eq 'tex') {
+ $result = ' \vskip 0 mm \begin{tabular}{|c|}\hline Answer for Part: '.
+ $Apache::inputtags::part.' \\\\ \hline ';
+ } else {
+ if ($type eq 'optionresponse' || $type eq 'radiobuttonresponse' ) {
+ $result = 'Answer for Part:'.
+ $Apache::inputtags::part. ' |
---|
'."\n";
+ } else {
+ $result = 'Answer for Part:'.
+ $Apache::inputtags::part. ' | '."\n";
+ }
+ }
+ return $result;
}
sub answer_part {
- my ($type,$answer) = @_;
- my $result;
- if ($type eq 'optionresponse' || $type eq 'radiobuttonresponse') {
- $result = ''.$answer.' | ';
- } else {
- $result = ''.$answer.' | ';
- }
- return $result;
+ my ($type,$answer) = @_;
+ my $result;
+ if ($ENV{'form.answer_output_mode'} eq 'tex') {
+ $result = ' '.$answer.'\\\\ \hline ';
+ } else {
+ if ($type eq 'optionresponse' || $type eq 'radiobuttonresponse') {
+ $result = ''.$answer.' | ';
+ } else {
+ $result = ''.$answer.' | ';
+ }
+ }
+ return $result;
}
sub answer_footer {
- my ($type) = @_;
- my $result;
- if ($type eq 'optionresponse' || $type eq 'radiobuttonresponse') {
- $result = '
';
- } else {
- $result = '
';
- }
- return $result;
+ my ($type) = @_;
+ my $result;
+ if ($ENV{'form.answer_output_mode'} eq 'tex') {
+ $result = ' \end{tabular} \vskip 0 mm ';
+ } else {
+ if ($type eq 'optionresponse' || $type eq 'radiobuttonresponse') {
+ $result = '