| … | |
… | |
| 561 | ); |
561 | ); |
| 562 | } |
562 | } |
| 563 | |
563 | |
| 564 | sub previewAnswer($$) { |
564 | sub previewAnswer($$) { |
| 565 | my ($self, $answerResult) = @_; |
565 | my ($self, $answerResult) = @_; |
| 566 | my $ce = $self->{courseEnvironment}; |
566 | my $ce = $self->{courseEnvironment}; |
| 567 | my $effectiveUser = $self->{effectiveUser}; |
567 | my $effectiveUser = $self->{effectiveUser}; |
| 568 | my $set = $self->{set}; |
568 | my $set = $self->{set}; |
| 569 | my $problem = $self->{problem}; |
569 | my $problem = $self->{problem}; |
| 570 | my $displayMode = $self->{displayMode}; |
570 | my $displayMode = $self->{displayMode}; |
| 571 | |
571 | |
| 572 | # note: right now, we have to do things completely differently when we are |
572 | # note: right now, we have to do things completely differently when we are |
| 573 | # rendering math from INSIDE the translator and from OUTSIDE the translator. |
573 | # rendering math from INSIDE the translator and from OUTSIDE the translator. |
| 574 | # so we'll just deal with each case explicitly here. there's some code |
574 | # so we'll just deal with each case explicitly here. there's some code |
| 575 | # duplication that can be dealt with later by abstracting out tth/dvipng/etc. |
575 | # duplication that can be dealt with later by abstracting out tth/dvipng/etc. |