--- loncom/interface/lonpreferences.pm 2005/06/14 20:18:26 1.64 +++ loncom/interface/lonpreferences.pm 2005/08/16 16:31:09 1.67 @@ -1,7 +1,7 @@ # The LearningOnline Network # Preferences # -# $Id: lonpreferences.pm,v 1.64 2005/06/14 20:18:26 albertel Exp $ +# $Id: lonpreferences.pm,v 1.67 2005/08/16 16:31:09 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -110,8 +110,8 @@ sub wysiwygchanger {

- $switchoff
- $switchon +
+ ENDLSCREEN $r->print('
'); } @@ -196,25 +196,22 @@ sub texenginechanger { ); my $selectionbox=&Apache::loncommon::select_form($texengine,'texengine', %mathchoices); - my $mathexample='$$\int\left(\frac{a+b}{c^6*d}\right)$$'; - my $jsMath_example=&Apache::lontexconvert::jsMath_converted(\$mathexample); - $mathexample='$$\int\left(\frac{a+b}{c^6*d}\right)$$'; - my $tth_example=&Apache::lontexconvert::tth_converted(\$mathexample); - $mathexample='$$\int\left(\frac{a+b}{c^6*d}\right)$$'; - my $mimetex_example=&Apache::lontexconvert::mimetex_converted(\$mathexample); + my $jsMath_start=&Apache::lontexconvert::jsMath_header(); my $change=&mt('Change'); $r->print(< +

$pref: $selectionbox

Examples: -

TeX to HTML
$tth_example

- - +

TeX to HTML
+ +

jsMath
- +$jsMath_start + -$jsMath_example

-

Convert to Images
$mimetex_example

+

+

Convert to Images
+
+ +

ENDLSCREEN if ($env{'environment.texengine'} ne 'jsMath') { $r->print(''); @@ -980,12 +981,11 @@ sub coursedisplaychanger { my $r = shift; my $user = $env{'user.name'}; my $domain = $env{'user.domain'}; - my %userenv = &Apache::lonnet::get - ('environment',['course_init_display']); + my %userenv = &Apache::lonnet::get('environment',['course_init_display']); my $firstselect='checked="checked"'; my $whatsnewselect=''; - if ($userenv{'course_init_display'} eq 'firstres') { + if ($userenv{'course_init_display'} ne 'firstres') { $firstselect=''; $whatsnewselect='checked="checked"'; } @@ -996,8 +996,8 @@ sub coursedisplaychanger { $r->print(< - $whatsnew_off
- $whatsnew_on +
+ ENDLSCREEN $r->print('
');