--- loncom/homework/structuretags.pm 2005/02/25 04:56:05 1.280 +++ loncom/homework/structuretags.pm 2005/03/01 03:21:58 1.281 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.280 2005/02/25 04:56:05 albertel Exp $ +# $Id: structuretags.pm,v 1.281 2005/03/01 03:21:58 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -115,6 +115,12 @@ sub page_start { $body_tag_start.=' style="font-size: x-large;" '; } $body_tag_start.='>'.&Apache::lonmenu::menubuttons(undef,$target,1); + if ($ENV{'environment.texengine'} eq 'jsMath') { + $body_tag_start.=''."\n". + ''."\n"; + } if ($target eq 'web' && $ENV{'request.state'} ne 'construct') { my ($symb,undef,undef,undef,$publicuser)= &Apache::lonxml::whichuser(); @@ -128,7 +134,7 @@ sub page_start { } my $form_tag_start; if (!defined($found{'form'})) { - $form_tag_start='
"; $result.=&Apache::lonhtmlcommon::htmlareaselectactive(@Apache::lonxml::htmlareafields); - $result.=&Apache::loncommon::endbodytag(); } if ($target eq 'web') { - $result.=&Apache::lonxml::xmlend(); + $result.=&Apache::lonxml::xmlend().'