--- loncom/interface/lonprintout.pm 2004/03/12 16:23:23 1.281 +++ loncom/interface/lonprintout.pm 2004/03/15 22:32:37 1.282 @@ -1,7 +1,7 @@ # The LearningOnline Network # Printout # -# $Id: lonprintout.pm,v 1.281 2004/03/12 16:23:23 sakharuk Exp $ +# $Id: lonprintout.pm,v 1.282 2004/03/15 22:32:37 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -996,7 +996,6 @@ ENDPART } else { $moreenv{'textwidth'}=$LaTeXwidth; } - &Apache::lonnet::appenv(%moreenv); my %prog_state=&Apache::lonhtmlcommon::Create_PrgWin($r,'Print Status','Class Print Status',$#students+1); my $student_counter=-1; foreach my $person (@students) { @@ -1014,7 +1013,7 @@ ENDPART my ($map,$id,$res_url) = &Apache::lonnet::decode_symb($curresline); if (&Apache::lonnet::allowed('bre',$res_url)) { my $rendered = &Apache::loncommon::get_student_view($curresline,$username,$userdomain, - $ENV{'request.course.id'},'tex'); + $ENV{'request.course.id'},'tex',\%moreenv); my $lonidsdir=$r->dir_config('lonIDsDir'); my $envfile=$ENV{'user.environment'}; $envfile=~/\/([^\/]+)\.id$/; @@ -1067,7 +1066,6 @@ ENDPART } &Apache::lonhtmlcommon::Close_PrgWin($r,\%prog_state); $result .= $print_array[0].' \end{document}'; - &Apache::lonnet::delenv('form.textwidth'); } elsif ($helper->{'VARS'}->{'PRINT_TYPE'} eq 'problems_from_directory') { #prints selected problems from the subdirectory $selectionmade = 6;