--- loncom/homework/structuretags.pm 2004/11/11 23:45:35 1.272 +++ loncom/homework/structuretags.pm 2005/04/01 18:08:14 1.283 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.272 2004/11/11 23:45:35 albertel Exp $ +# $Id: structuretags.pm,v 1.283 2005/04/01 18:08:14 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -91,6 +91,7 @@ sub page_start { if (!defined($found{'body'}) && $ENV{'request.state'} eq 'construct' && $ENV{'environment.remote'} eq 'off') { $body_tag_start=&Apache::loncommon::bodytag(); + $body_tag_start.=&Apache::lonxml::message_location(); } elsif (!defined($found{'body'})) { $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(); @@ -127,7 +134,7 @@ sub page_start { } my $form_tag_start; if (!defined($found{'form'})) { - $form_tag_start='