version 1.15, 2003/02/05 22:50:44
|
version 1.18, 2003/02/26 20:22:11
|
Line 46 use tth;
|
Line 46 use tth;
|
use vars qw($errorstring); |
use vars qw($errorstring); |
use Apache::lonmsg; |
use Apache::lonmsg; |
use Apache::lonxml; |
use Apache::lonxml; |
|
use Apache::lonmenu; |
|
|
# ====================================================================== Header |
# ====================================================================== Header |
|
|
Line 70 sub header {
|
Line 71 sub header {
|
return &Apache::lonxml::xmlbegin(). |
return &Apache::lonxml::xmlbegin(). |
&Apache::lonxml::fontsettings(). |
&Apache::lonxml::fontsettings(). |
"\n<head>\n". |
"\n<head>\n". |
&Apache::lonxml::registerurl(undef,'tex'). |
&Apache::lonmenu::registerurl(undef,'tex'). |
"\n</head>\n"; |
"\n</head>\n"; |
} |
} |
|
|
Line 116 sub footer {
|
Line 117 sub footer {
|
sub to_convert { |
sub to_convert { |
my ($string) = @_; |
my ($string) = @_; |
$string=~s/\<br\s*\/?\>/ /g; |
$string=~s/\<br\s*\/?\>/ /g; |
|
$string=&HTML::Entities::decode($string); |
return &converted(\$string); |
return &converted(\$string); |
} |
} |
|
|
sub msgtexconverted { |
sub msgtexconverted { |
my $message=shift; |
my $message=shift; |
|
|
|
$errorstring=''; |
if ($ENV{'browser.mathml'}) { |
if ($ENV{'browser.mathml'}) { |
&tth::ttminit(); |
&tth::ttminit(); |
if ($ENV{'browser.unicode'}) { |
if ($ENV{'browser.unicode'}) { |