--- loncom/interface/lonpreferences.pm 2011/12/08 21:52:32 1.196 +++ loncom/interface/lonpreferences.pm 2012/05/13 19:11:13 1.196.4.2 @@ -1,7 +1,7 @@ # The LearningOnline Network # Preferences # -# $Id: lonpreferences.pm,v 1.196 2011/12/08 21:52:32 www Exp $ +# $Id: lonpreferences.pm,v 1.196.4.2 2012/05/13 19:11:13 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -227,7 +227,6 @@ sub texenginechanger { 'tth' => 'tth (TeX to HTML)', #'ttm' => 'TeX to MathML', 'jsMath' => 'jsMath', - 'MathJax' => 'MathJax', 'mimetex' => 'mimetex (Convert to Images)', 'raw' => 'Raw (Screen Reader)' ); @@ -237,14 +236,12 @@ sub texenginechanger { $texengine, 'texengine', \%mathchoices); - my $MathJax_start=&Apache::lontexconvert::MathJax_header(); my $jsMath_start=&Apache::lontexconvert::jsMath_header(); my %lt=&Apache::lonlocal::texthash( 'headline' => 'Change how math is displayed', 'preftxt' => 'Preferred method to display math', 'change' => 'Save', 'exmpl' => 'Examples', - 'mathjax' => 'MathJax:', 'jsmath' => 'jsMath:', 'tth' => 'tth (TeX to HTML):', 'mimetex' => 'mimetex (Convert to Images):', @@ -279,14 +276,6 @@ $lt{'preftxt'}: $selectionbox
$lt{'exmpl'} -

$lt{'mathjax'}

- - -

-

-MathJax provides rendered equations whose source code can be extracted in TeX and MathML formats by right clicking the equation. -

-

$lt{'jsmath'}

$jsMath_start @@ -2102,6 +2091,25 @@ push(@{ $menu[0]->{items} }, { linktitle => 'Change your password.', }); } + if ($env{'environment.remote'} eq 'off') { +push(@{ $menu[1]->{items} }, { + linktext => 'Launch Remote Control', + url => '/adm/remote?url=/adm/preferences&action=launch', + permission => 'F', + #help => '', + icon => 'remotecontrol.png', + linktitle => 'Launch the remote control for LON-CAPA.', + }); + }else{ +push(@{ $menu[1]->{items} }, { + linktext => 'Collapse Remote Control', + url => '/adm/remote?url=/adm/preferences&action=collapse', + permission => 'F', + #help => '', + icon => 'remotecontrol.png', + linktitle => 'Collapse the remote control for LON-CAPA.', + }); + } if (&can_toggle_namelocking()) { push(@{ $menu[0]->{items} }, {