--- loncom/xml/lontexconvert.pm 2004/03/04 15:41:18 1.32 +++ loncom/xml/lontexconvert.pm 2005/02/24 09:48:05 1.54 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # TeX Conversion Module # -# $Id: lontexconvert.pm,v 1.32 2004/03/04 15:41:18 albertel Exp $ +# $Id: lontexconvert.pm,v 1.54 2005/02/24 09:48:05 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -36,18 +36,17 @@ # The C source of the Code may not be distributed by the Licensee # to any other parties under any circumstances. # -# 05/29/00,05/30,10/11,10/20 Gerd Kortemeyer -# 5/4 Gerd Kortemeyer package Apache::lontexconvert; use strict; -use tth; +use tth(); use vars qw($errorstring); use Apache(); -use Apache::lonmsg; -use Apache::lonxml; -use Apache::lonmenu; +use Apache::lonmsg(); +use Apache::lonxml(); +use Apache::lonmenu(); +use Apache::lonlocal; # ====================================================================== Header @@ -75,8 +74,8 @@ sub header { my $time=time; &init_tth(); return &Apache::lonxml::xmlbegin(). - &Apache::lonxml::fontsettings(). "\n
\n". + &Apache::lonxml::fontsettings(). &Apache::lonmenu::registerurl(undef,'tex'). "\n\n"; } @@ -84,35 +83,55 @@ sub header { # ================================================================== Conversion $Apache::lontexconvert::messedup=0; + +# we need this routine because &converted can get called from inside +# of the safespace (through &xmlparse('