--- loncom/interface/lonprintout.pm 2003/10/30 20:58:51 1.261 +++ loncom/interface/lonprintout.pm 2003/11/06 19:23:02 1.262 @@ -1,7 +1,7 @@ # The LearningOnline Network # Printout # -# $Id: lonprintout.pm,v 1.261 2003/10/30 20:58:51 sakharuk Exp $ +# $Id: lonprintout.pm,v 1.262 2003/11/06 19:23:02 sakharuk Exp $ # # Copyright Michigan State University Board of Trustees # @@ -701,6 +701,7 @@ ENDPART if ($helper->{'VARS'}->{'ANSWER_TYPE'} ne 'only') { my %moreenv; $moreenv{'request.filename'}=$currentURL; + if ($helper->{'VARS'}->{'style_file'}=~/\w/) {$moreenv{'construction_space_style'}=$helper->{'VARS'}->{'style_file'};} my %form; $form{'grade_target'}='tex'; $form{'textwidth'}=$LaTeXwidth; @@ -1194,6 +1195,7 @@ sub printHelper { $helper->declareVar('filename'); $helper->declareVar('construction'); $helper->declareVar('assignment'); + $helper->declareVar('style_file'); # This will persistently load in the data we want from the # very first screen. @@ -1542,7 +1544,10 @@ CHOOSE_FROM_ANY_SEQUENCE return $helper->{VARS}->{'curseed'}; - + + Use style file: + + RNDSEED &Apache::lonxml::xmlparse($r, 'helper', $xmlfrag);