Diff for /loncom/xml/lontex.pm between versions 1.4 and 1.8

version 1.4, 2003/02/14 19:35:55 version 1.8, 2005/08/16 16:31:14
Line 45  use strict; Line 45  use strict;
 use Apache::File;  use Apache::File;
 use Apache::lontexconvert;  use Apache::lontexconvert;
 use Apache::Constants qw(:common);  use Apache::Constants qw(:common);
   use Apache::lonnet;
 use tth;  use tth;
   
 # ================================================================ Main Handler  # ================================================================ Main Handler
Line 56  sub handler { Line 57  sub handler {
   
 # ----------------------------------------------------------- Set document type  # ----------------------------------------------------------- Set document type
   
   if ($ENV{'browser.mathml'}) {    if ($env{'browser.mathml'}) {
     $r->content_type('text/xml');        &Apache::loncommon::content_type($r,'text/xml');
   } else {    } else {
     $r->content_type('text/html');        &Apache::loncommon::content_type($r,'text/html');
   }    }
   $r->send_http_header;    $r->send_http_header;
   
Line 76  sub handler { Line 77  sub handler {
   
 # --------------------------------------------------------------- Render Output  # --------------------------------------------------------------- Render Output
       
     &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},['mode',
    'buttons']);
   
   $r->print(&Apache::lontexconvert::header());    $r->print(&Apache::lontexconvert::header());
   $r->print(    $r->print(
     '<body bgcolor="#FFFFFF" onLoad="'.      '<body bgcolor="#FFFFFF" onLoad="'.
       &Apache::lonmenu::loadevents().        &Apache::lonmenu::loadevents().
     '" onUnload="'.      '" onUnload="'.
       &Apache::lonmenu::unloadevents().        &Apache::lonmenu::unloadevents().
     '">'.      '">');
       &Apache::lonmenu::menubuttons(undef,'web')    if ($env{'form.buttons'} ne 'no') {
   );        $r->print(&Apache::lonmenu::menubuttons(undef,'web',1));
   $r->print(&Apache::lontexconvert::converted(\$texstring));    }
     &Apache::lontexconvert::jsMath_reset();
     if ($env{'form.mode'} eq 'jsMath') {
         $r->print(&Apache::lontexconvert::jsMath_header());
     }
     $r->print(&Apache::lontexconvert::converted(\$texstring,$env{'form.mode'}));
   $r->print('</body>');    $r->print('</body>');
   $r->print(&Apache::lontexconvert::footer());    $r->print(&Apache::lontexconvert::footer());
   

Removed from v.1.4  
changed lines
  Added in v.1.8


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>