Diff for /loncom/interface/lonpreferences.pm between versions 1.196 and 1.196.4.2

version 1.196, 2011/12/08 21:52:32 version 1.196.4.2, 2012/05/13 19:11:13
Line 227  sub texenginechanger { Line 227  sub texenginechanger {
      'tth' => 'tth (TeX to HTML)',       'tth' => 'tth (TeX to HTML)',
      #'ttm' => 'TeX to MathML',       #'ttm' => 'TeX to MathML',
      'jsMath' => 'jsMath',       'jsMath' => 'jsMath',
      'MathJax' => 'MathJax',  
      'mimetex' => 'mimetex (Convert to Images)',       'mimetex' => 'mimetex (Convert to Images)',
                      'raw' => 'Raw (Screen Reader)'                       'raw' => 'Raw (Screen Reader)'
                      );                       );
Line 237  sub texenginechanger { Line 236  sub texenginechanger {
                $texengine,                 $texengine,
                'texengine',                 'texengine',
                \%mathchoices);                 \%mathchoices);
     my $MathJax_start=&Apache::lontexconvert::MathJax_header();  
     my $jsMath_start=&Apache::lontexconvert::jsMath_header();      my $jsMath_start=&Apache::lontexconvert::jsMath_header();
     my %lt=&Apache::lonlocal::texthash(      my %lt=&Apache::lonlocal::texthash(
       'headline' => 'Change how math is displayed',        'headline' => 'Change how math is displayed',
       'preftxt'  => 'Preferred method to display math',        'preftxt'  => 'Preferred method to display math',
       'change'   => 'Save',        'change'   => 'Save',
       'exmpl'    => 'Examples',        'exmpl'    => 'Examples',
       'mathjax'  => 'MathJax:',  
       'jsmath'   => 'jsMath:',        'jsmath'   => 'jsMath:',
       'tth'      => 'tth (TeX to HTML):',        'tth'      => 'tth (TeX to HTML):',
       'mimetex'  => 'mimetex (Convert to Images):',        'mimetex'  => 'mimetex (Convert to Images):',
Line 279  $lt{'preftxt'}: $selectionbox Line 276  $lt{'preftxt'}: $selectionbox
 <hr />  <hr />
 $lt{'exmpl'}  $lt{'exmpl'}
   
 <h3>$lt{'mathjax'}</h3>  
 </script>  
 <iframe src="/res/adm/pages/math_example.tex?inhibitmenu=yes&texengine=MathJax" width="400" height="120"></iframe>  
 </p>  
 <p>  
 MathJax provides rendered equations whose source code can be extracted in TeX and MathML formats by right clicking the equation.  
 </p>  
   
 <h3>$lt{'jsmath'}</h3>   <h3>$lt{'jsmath'}</h3> 
 <p>  <p>
 $jsMath_start  $jsMath_start
Line 2102  push(@{ $menu[0]->{items} }, { Line 2091  push(@{ $menu[0]->{items} }, {
  linktitle => 'Change your password.',   linktitle => 'Change your password.',
  });   });
     }      }
       if ($env{'environment.remote'} eq 'off') {
   push(@{ $menu[1]->{items} }, {
           linktext => 'Launch Remote Control',
           url => '/adm/remote?url=/adm/preferences&amp;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&amp;action=collapse',
           permission => 'F',
           #help => '',
           icon => 'remotecontrol.png',
           linktitle => 'Collapse the remote control for LON-CAPA.',
           });
       }
   
     if (&can_toggle_namelocking()) {      if (&can_toggle_namelocking()) {
         push(@{ $menu[0]->{items} }, {          push(@{ $menu[0]->{items} }, {

Removed from v.1.196  
changed lines
  Added in v.1.196.4.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>