--- loncom/homework/structuretags.pm 2004/08/25 20:12:15 1.260.2.3 +++ loncom/homework/structuretags.pm 2004/11/10 22:20:50 1.271 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.260.2.3 2004/08/25 20:12:15 albertel Exp $ +# $Id: structuretags.pm,v 1.271 2004/11/10 22:20:50 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -36,7 +36,7 @@ use Apache::File(); use Apache::lonmenu; use Apache::lonlocal; use Apache::lonxml; - +use Time::HiRes qw( gettimeofday tv_interval ); BEGIN { &Apache::lonxml::register('Apache::structuretags',('block','languageblock','instructorcomment','while','randomlist','problem','library','web','tex','part','preduedate','postanswerdate','solved','notsolved','problemtype','startouttext','endouttext','simpleeditbutton','definetag')); } @@ -61,7 +61,7 @@ sub start_tex { if ($target eq 'tex') { return $bodytext.' '; } - return $result; + return $result;; } sub end_tex { @@ -83,12 +83,14 @@ sub page_start { $result=&Apache::londefdef::start_html($target,$token,$tagstack, $parstack,$parser,$safeeval); $head_tag_start='
'.&Apache::lonmenu::registerurl(undef,$target). - &Apache::lonhtmlcommon::htmlareaheaders(); + &Apache::lonhtmlcommon::htmlareaheaders(). + &Apache::lonhtmlcommon::spellheader(). + &Apache::lonxml::fontsettings(); } my $body_tag_start; if (!defined($found{'body'})) { - $body_tag_start=''; + $form_tag_start='