version 1.464, 2017/01/27 19:58:21
|
version 1.466, 2021/09/05 15:04:25
|
Line 98 sub start_m {
|
Line 98 sub start_m {
|
# On top of that, MathJax will render math without $, but |
# On top of that, MathJax will render math without $, but |
# it will fail with tth. This is worth a warning. |
# it will fail with tth. This is worth a warning. |
# (even though some people might just use latex for printing) |
# (even though some people might just use latex for printing) |
&Apache::lonxml::warning(&mt("Missing \$ in <m>.")); |
&Apache::lonxml::warning(&mt('Missing $ in [_1].','<m>')); |
|
} elsif (($env{'browser.type'} eq 'safari') && ($env{'form.editxmltext'}) && |
|
(($env{'form.problemmode'} eq 'view') || ($env{'form.problemmode'} eq 'discard'))) { |
|
my $delimiter; |
|
if ($inside =~ /\$$/) { |
|
$delimiter = '$'; |
|
} elsif ($inside =~ /\\([)\]])$/) { |
|
$delimiter = $1; |
|
} |
|
if ($delimiter) { |
|
&Apache::lonxml::warning(&mt('Insert a space between [_1] and [_2].', |
|
$delimiter,'</m>')); |
|
} |
} |
} |
my $eval=&Apache::lonxml::get_param('eval',$parstack,$safeeval); |
my $eval=&Apache::lonxml::get_param('eval',$parstack,$safeeval); |
if ($eval eq 'on') { |
if ($eval eq 'on') { |