Subversion Repositories wimsdev

Rev

Rev 5836 | Rev 6183 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
23 reyssat 1
!!INDEX
5524 bpr 2
!let module_author=XIAO, Gang
3
!let module_address=xiao@unice.fr
4
!let module_title=Setup your preferences for WIMS
5
!let module_description=define preferences for wims
6
!let module_version=1.00
23 reyssat 7
!let module_wims_version=0.13
5524 bpr 8
!let module_language=en
5708 bpr 9
!let module_copyright=&copy; 1998 (<a href="COPYING">GNU GPL</a>)
5524 bpr 10
!let module_category=adm
11
!let module_level=
12
!let module_domain=adm
13
!let module_keywords=wims
23 reyssat 14
!!INDEXEND
15
 
5764 bpr 16
!let tip='<ul><li>FireFox&nbsp;<a target=\'new\' href=\'http://www.mozilla-europe.org/$module_language/\'><img src=\'gifs/mathml/getFireFox.gif\' alt=\'get FireFox\' /></a></li><li>Windows<ul><li>Internet Explorer : <a target=\'new\' href=\'http://www.dessci.com/en/products/mathplayer/\'><img src=\'gifs/mathml/dessci_logo.gif\' alt=\'dessci\'/> DESSCI MathPlayer plugin</a><li>Opera : <a target=\'new\' href=\'http://xml-maiden.com/userjs/mathml/\'>UserJS MathML plugin</a></ul></li><li>Safari</li></ul>'
5524 bpr 17
 
18
 
23 reyssat 19
!let texsize=!char 1 of $useropts
20
!let texalign=!char 2 of $useropts
5524 bpr 21
!let default=$[$wims_texbasesize-1]
22
!default texsize=$default
23
!let default=!char 1 of $default
23 reyssat 24
!default texalign=$talign
5524 bpr 25
!set arg=!nospace $texsize 1
26
 
23 reyssat 27
!let useropt2=!char 3 to -1 of $useropts
28
!if $useropts!=$empty and $wims_realuser!=$empty
29
 !readproc adm/class/userdef classes,$wims_class,$wims_realuser
30
 !setdef !set user_opts=$useropts in $userdef
31
 !setdef wims_useropts=$useropts in wimshome/$wims_sesdir/var.stat
32
!endif
33
 
5524 bpr 34
!set zoom=!char 3 of $useropts
35
 
23 reyssat 36
!header
5524 bpr 37
<script type="text/javascript" src="scripts/js/wz_tooltip.js"></script>
23 reyssat 38
This page allows you to change your preferences for your working sessions
39
on WIMS.
40
<ul>
41
!if $wims_user=$empty
5524 bpr 42
 <li>Default language.
2686 bpr 43
  !set wims_language_cnt=!wordcnt $wims_site_languages
23 reyssat 44
  !for l=1 to $wims_language_cnt
45
   !let la=!word $l of $wims_site_languages
5764 bpr 46
   !href cmd=resume&phtml=useropts.phtml.$la&lang=$la <img src="gifs/$la.gif" alt="$la.gif" border=1/>$(lang_name_$la)
23 reyssat 47
   &nbsp;&nbsp;
48
  !next l
3569 bpr 49
  </li>
23 reyssat 50
!endif
5524 bpr 51
 
52
<li>
53
Mathematical formulas.
54
 
55
!if $texalign=2
56
  The server is currently set to MathML if you have a suitable browser. For example,
5836 bpr 57
    <p class="wimscenter">
5596 reyssat 58
    !insmath x_{1,2} = \frac{-b \pm \sqrt{b^{2} - 4 a c}}{2a}
5836 bpr 59
    </p>
5524 bpr 60
    If the formula is not correctly displayed, you can use another
5895 bpr 61
    <a onmouseover="return Tip($tip)"><span class="wims_emph">browser</span>
5524 bpr 62
    </a> 
63
    or use the serveur with "math with images".
64
!set wims_ref_class=wims_button
5836 bpr 65
<p class="wimscenter">
5524 bpr 66
   !href cmd=resume&useropts=$arg Math with images
5836 bpr 67
</p> 
5524 bpr 68
</li><li>
69
    !let ts1=!eval $texsize-1
70
    !let ts2=!eval $texsize+1
71
    !if $ts1<1
72
      !let ts1=1
73
    !endif
74
    !if $ts2>9
75
      !let ts2=9
76
    !endif
77
    Set the size of mathematical formulas.
78
!set wims_ref_class=wims_button
5764 bpr 79
    !href cmd=resume&useropts=$ts1$texalign <img src="gifs/doc/dgauche.gif" width="20px"/>
5524 bpr 80
    &nbsp;
81
!set wims_ref_class=wims_button
82
    !href cmd=resume&useropts=$default Default
83
    &nbsp;
84
!set wims_ref_class=wims_button
5764 bpr 85
    !href cmd=resume&useropts=$ts2$texalign <img src="gifs/doc/ddroite.gif" width="20px"/>
5524 bpr 86
 </li><li>
5580 bpr 87
!set zoom=1
88
  Use zoom on formulas by mouse click.
89
!set wims_ref_class=wims_button
90
!href cmd=resume&useropts=$texsize$texalign$zoom $wims_name_yes
91
!set zoom=0 
92
   &nbsp;
93
!set wims_ref_class=wims_button
94
!href cmd=resume&useropts=$texsize$texalign$zoom $wims_name_no
5524 bpr 95
!else
96
    Currently, you use the server with "Math with images". If you have a suitable 
97
    <a onmouseover="return Tip($tip)"><font color="blue">browser</font></a>, you may also use MathML.
5836 bpr 98
<p class="wimscenter">
5524 bpr 99
!set arg=!nospace $texsize 2
100
!set wims_ref_class=wims_button
101
!href cmd=resume&useropts=$arg MathML
5836 bpr 102
</p>
5524 bpr 103
 
104
</li><li>
105
Size of mathematical symbols and formulas. 
106
!let ts1=!eval $texsize-1
107
!let ts2=!eval $texsize+1
108
!if $ts1<1
109
    !let ts1=1
110
  !endif
111
!if $ts2>9
112
    !let ts2=9
113
!endif
114
!set wims_ref_class=wims_button
5764 bpr 115
    !href cmd=resume&useropts=$ts1$texalign$useropt2 <img src="gifs/doc/dgauche.gif" width="20px"/>
5524 bpr 116
    &nbsp;
117
!set wims_ref_class=wims_button
5764 bpr 118
    !href cmd=resume&useropts=$ts2$texalign$useropt2 <img src="gifs/doc/ddroite.gif" width="20px"/>
23 reyssat 119
  <p>
5589 reyssat 120
  Greek letters $m_alpha, $m_pi. Mathematical expression 
23 reyssat 121
  !let ins_align=middle
5524 bpr 122
!! we need to force dynamic insertion
123
  !set pw=2
124
  !insmath x_{1,2} = \frac{-b \pm \sqrt{b^{$pw} - 4ac}}{2a}
5764 bpr 125
  <br/>
23 reyssat 126
  A mixed inequality
5836 bpr 127
  </p><p class="wimscenter">| $m_a + $m_b | $m_le $m_varepsilon + 123.45.</p>
5524 bpr 128
</li><li>
129
Position of the formulas. If the expression
130
  !insmath (x+y)/(x^$pw + y^2)
23 reyssat 131
  is
132
  !if $texalign=1
133
   too high with respect to the text line,
134
   !href cmd=resume&useropts=$(texsize)0$useropt2 click here
135
   to lower it.
136
  !else
137
   too low with respect to the text line,
138
   !href cmd=resume&useropts=$(texsize)1$useropt2 click here
139
   to raise it.
140
  !endif
5524 bpr 141
!set zoom=$empty
142
!endif
143
</li>
144
</ul>
23 reyssat 145
 
146
!if $wims_user=$empty
147
 When everything corresponds exactly to what you want, put
5524 bpr 148
 <a href="$wims_ref_name?lang=$lang&+useropts=$texsize$texalign$useropt2$zoom"
23 reyssat 149
 title="WIMS">this link</a>
150
 into your bookmark, to keep these preferences for your future connections.
151
!else
152
 Your preferences will be preserved in your future logins in this class.
153
!endif
154
 
155
:end
156
!tail
157