--- loncom/homework/structuretags.pm 2004/09/18 17:29:29 1.268 +++ loncom/homework/structuretags.pm 2005/04/18 22:39:35 1.288 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.268 2004/09/18 17:29:29 albertel Exp $ +# $Id: structuretags.pm,v 1.288 2005/04/18 22:39:35 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -84,15 +84,20 @@ sub page_start { $parstack,$parser,$safeeval); $head_tag_start='
'.&Apache::lonmenu::registerurl(undef,$target). &Apache::lonhtmlcommon::htmlareaheaders(). - &Apache::lonhtmlcommon::spellheader(); + &Apache::lonhtmlcommon::spellheader(). + &Apache::lonxml::fontsettings(); } my $body_tag_start; - if (!defined($found{'body'})) { - $body_tag_start=''.&Apache::lonmenu::menubuttons(undef,$target,1); - if ($target eq 'web' && $ENV{'request.state'} ne 'construct') { + 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(); if ($symb eq '' && !$publicuser) { @@ -123,8 +134,10 @@ sub page_start { } my $form_tag_start; if (!defined($found{'form'})) { - $form_tag_start='