version 1.502, 2009/11/30 21:29:41
|
version 1.504, 2009/12/02 18:33:43
|
Line 1549 sub renderingoptions {
|
Line 1549 sub renderingoptions {
|
} |
} |
my $output; |
my $output; |
unless ($env{'form.forceedit'}) { |
unless ($env{'form.forceedit'}) { |
$output .= ' |
$output .= |
<span class="LC_nobreak">'. |
'<span class="LC_nobreak">'. |
&mt('Language:').' '. |
&mt('Language:').' '. |
&Apache::loncommon::select_form($env{'form.languages'},'languages', |
&Apache::loncommon::select_form( |
%langchoices).' |
$env{'form.languages'}, |
</span>'; |
'languages', |
|
&Apache::lonlocal::texthash(%langchoices)). |
|
'</span>'; |
} |
} |
$output .= ' |
$output .= |
<span class="LC_nobreak">'. |
' <span class="LC_nobreak">'. |
&mt('Math Rendering:').' '. |
&mt('Math Rendering:').' '. |
&Apache::loncommon::select_form($env{'form.texengine'},'texengine', |
&Apache::loncommon::select_form( |
('' => '', |
$env{'form.texengine'}, |
'tth' => 'tth (TeX to HTML)', |
'texengine', |
'jsMath' => 'jsMath', |
&Apache::lonlocal::texthash |
'mimetex' => 'mimetex (Convert to Images)')).' |
('' => '', |
</span>'; |
'tth' => 'tth (TeX to HTML)', |
|
'jsMath' => 'jsMath', |
|
'mimetex' => 'mimetex (Convert to Images)')). |
|
'</span>'; |
return $output; |
return $output; |
} |
} |
|
|
Line 1820 ENDNOTFOUND
|
Line 1825 ENDNOTFOUND
|
&Apache::structuretags::reset_problem_globals(); |
&Apache::structuretags::reset_problem_globals(); |
&Apache::lonhomework::finished_parsing(); |
&Apache::lonhomework::finished_parsing(); |
} elsif ($filetype eq 'tex') { |
} elsif ($filetype eq 'tex') { |
$result .= &Apache::lontexconvert::converted(\$filecontents); |
$result = &Apache::lontexconvert::converted(\$filecontents, |
|
$env{'form.texengine'}); |
|
if ($env{'form.return_only_error_and_warning_counts'}) { |
|
if (&verify_html('<html><body>'.$result.'</body></html>')) { |
|
$errorcount++; |
|
} |
|
$result = "$errorcount:$warningcount"; |
|
} |
} else { |
} else { |
$result = $filecontents; |
$result = $filecontents; |
} |
} |
&Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'}, |
&Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'}, |
['rawmode']); |
['rawmode']); |
if ($env{'form.rawmode'}) { $result = $filecontents; } |
if ($env{'form.rawmode'}) { $result = $filecontents; } |
if ($filetype ne 'html') { |
if (($filetype ne 'html') && |
|
(!$env{'form.return_only_error_and_warning_counts'})) { |
my $nochgview = 1; |
my $nochgview = 1; |
my $controls = ''; |
my $controls = ''; |
if ($env{'request.state'} eq 'construct') { |
if ($env{'request.state'} eq 'construct') { |