version 1.10, 2006/04/10 22:30:11
|
version 1.14, 2023/12/22 13:38:01
|
Line 61 sub footer {
|
Line 61 sub footer {
|
$Apache::lonxml::errorstring); |
$Apache::lonxml::errorstring); |
} |
} |
# -------------------------------------------------------------------- End Body |
# -------------------------------------------------------------------- End Body |
$xmlstring.=&Apache::lonxml::xmlend(); |
$xmlstring.=&Apache::loncommon::end_page({'discussion' => 1}); |
return $xmlstring; |
return $xmlstring; |
} |
} |
|
|
Line 96 sub handler {
|
Line 96 sub handler {
|
['texengine','inhibitmenu']); |
['texengine','inhibitmenu']); |
|
|
|
|
&Apache::lontexconvert::init_tth(); |
|
|
|
$r->print(&Apache::loncommon::start_page(undef,undef, |
$r->print(&Apache::loncommon::start_page(undef,undef, |
{'bgcolor' => '#FFFFFF', |
{'bgcolor' => '#FFFFFF', |
'force_register' => 1, |
'force_register' => 1, |
Line 105 sub handler {
|
Line 103 sub handler {
|
($env{'form.inhibitmenu'} |
($env{'form.inhibitmenu'} |
eq 'yes'), })); |
eq 'yes'), })); |
|
|
|
my $displaymode; |
|
if (&Apache::lonnet::EXT('resource.0.texdisplay') =~ /^(tth|mathjax)$/i) { |
|
$displaymode = $1; |
|
} |
|
if ($env{'form.texengine'} =~ /^(tth|mathjax)$/i) { |
|
$displaymode = $1; |
|
} |
$r->print(&Apache::lontexconvert::converted(\$texstring, |
$r->print(&Apache::lontexconvert::converted(\$texstring, |
$env{'form.texengine'})); |
$displaymode)); |
$r->print(&footer()); |
$r->print(&footer()); |
|
|
return OK; |
return OK; |
Line 115 sub handler {
|
Line 120 sub handler {
|
1; |
1; |
__END__ |
__END__ |
|
|
|
=pod |
|
|
|
=head1 NAME |
|
|
|
Apache::lontex.pm |
|
|
|
=head1 SYNOPSIS |
|
|
|
Handler for tex files (somewhere in modules) |
|
|
|
This is part of the LearningOnline Network with CAPA project |
|
described at http://www.lon-capa.org. |
|
|
|
|
|
=head1 SUBROUTINES |
|
|
|
=over |
|
|
|
=item footer() |
|
|
|
Main Handler |
|
|
|
=back |
|
|
|
=cut |
|
|
|
|
|
|
|
|