--- loncom/interface/lonprintout.pm 2003/05/14 13:10:11 1.166 +++ loncom/interface/lonprintout.pm 2003/05/14 17:33:59 1.169 @@ -1,7 +1,7 @@ # The LearningOnline Network # Printout # -# $Id: lonprintout.pm,v 1.166 2003/05/14 13:10:11 albertel Exp $ +# $Id: lonprintout.pm,v 1.169 2003/05/14 17:33:59 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -486,7 +486,7 @@ ENDPART } $moreenv{'request.filename'}=$ENV{'form.url'}; my %form; - $from{'textwidth'}=$LaTeXwidth; + $form{'textwidth'}=$LaTeXwidth; $form{'grade_target'}='tex'; &Apache::lonnet::appenv(%moreenv); my $texversion=&Apache::lonnet::ssi($ENV{'form.url'},%form); @@ -1375,14 +1375,17 @@ ENDPART my %form; $form{'grade_target'}='tex'; $form{'textwidth'}=$LaTeXwidth; + my $rndseed=time; + $form{'rndseed'}=$rndseed; &Apache::lonnet::appenv(%moreenv); - my $texversion=&Apache::lonnet::ssi($currentURL,$form); + my $texversion=&Apache::lonnet::ssi($currentURL,%form); &Apache::lonnet::delenv('form.counter'); &Apache::lonnet::delenv('request.filename'); if($helper->{'VARS'}->{'ANSWER_TYPE'} eq 'no') { my %form; $form{'grade_target'}='answer'; - $form{'print_answer'}='yes'; + $form{'answer_output_mode'}='tex'; + $form{'rndseed'}=$rndseed; my $answer=&Apache::lonnet::ssi($currentURL,%form); # $r->print('
'.$answer.'
'); return OK; $texversion=~s/(\\end{document})/$answer$1/;