--- loncom/xml/lontex.pm 2005/04/07 06:56:27 1.7 +++ loncom/xml/lontex.pm 2005/08/16 16:31:14 1.8 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # TeX Content Handler # -# $Id: lontex.pm,v 1.7 2005/04/07 06:56:27 albertel Exp $ +# $Id: lontex.pm,v 1.8 2005/08/16 16:31:14 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -77,16 +77,24 @@ sub handler { # --------------------------------------------------------------- Render Output + &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},['mode', + 'buttons']); + $r->print(&Apache::lontexconvert::header()); $r->print( ''. - &Apache::lonmenu::menubuttons(undef,'web',1) - ); - $r->print(&Apache::lontexconvert::converted(\$texstring)); + '">'); + if ($env{'form.buttons'} ne 'no') { + $r->print(&Apache::lonmenu::menubuttons(undef,'web',1)); + } + &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(''); $r->print(&Apache::lontexconvert::footer());