Subversion Repositories wimsdev

Rev

Rev 15583 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
23 reyssat 1
!!INDEX
10585 obado 2
!let module_translator=
3
!let module_translator_address=
5524 bpr 4
!let module_title=Setup your preferences for WIMS
5
!let module_description=define preferences for wims
6
!let module_language=en
23 reyssat 7
!!INDEXEND
8
 
14607 bpr 9
!set tip=Firefox/Safari natively manages Mathml without extension.\
10
  For all other browsers, WIMS will automatically load the Mathjax library\
11
  to display mathematical formulas. If you encounter a problem with Mathjax,\
12
  we invite you to try Firefox which natively manages Mathml and to share it with us.
5524 bpr 13
 
10585 obado 14
!read proc/useropts.proc
5524 bpr 15
 
23 reyssat 16
!header
6183 bpr 17
 
14603 bpr 18
<p>This page lets you configure some preferences on WIMS
19
 
10585 obado 20
<div id="widget_useropts">
21
  <ul>
22
    <li><a href="#formula">Mathematical formulas</a></li>
23
    !if $wims_user=$empty
24
      <li><a href="#language_selector">Default language</a></li>
25
    !endif
26
    <li><a href="#accessibility">Accessibility</a></li>
27
  </ul>
6183 bpr 28
 
10686 czzmrn 29
  !if $wims_user=$empty
14603 bpr 30
    <div id="language_selector">
31
      <h2>Default language</h2>
32
      <p>
33
        Choose site language :
34
        !read themes/_widgets/language_selector.phtml
35
      </p>
36
    </div>
10686 czzmrn 37
  !endif
5524 bpr 38
 
10585 obado 39
  <div id="formula">
14603 bpr 40
    <h2>Mathematical formulas</h2>
41
    <p>
42
      You can choose beetween 2 display modes: image mode or  MathML.
43
    </p>
44
    !if $texalign=2
45
      <p>The server is currently set to MathML if you have a suitable browser.</p>
46
    !endif
47
    Some display test:
6183 bpr 48
    <ul>
49
      <li>
10585 obado 50
        Greek letters:
51
        <pre>
14603 bpr 52
          !insmath alpha != pi
10585 obado 53
        </pre>
6183 bpr 54
      </li>
55
      <li>
10585 obado 56
        Mathematical expression
57
        !let ins_align=middle
58
        !! we need to force dynamic insertion
59
        !set pw=2
60
        <pre>
61
          !insmath x_{1,2} = \frac{-b \pm \sqrt{b^{$pw} - 4a c}}{2a}
62
        </pre>
6183 bpr 63
      </li>
64
      <li>
10585 obado 65
        A mixed inequality:
6183 bpr 66
        <pre>
10585 obado 67
          !insmath | a + b | <= epsilon + 123.45
6183 bpr 68
        </pre>
69
      </li>
70
    </ul>
5524 bpr 71
 
10585 obado 72
    !if $texalign=2
73
      <p>
74
        If the formula is not correctly displayed, you can use another
14603 bpr 75
        browser or use the serveur with "math with images".
76
      </p>
77
      <h3>Mode d'affichage</h3>
10585 obado 78
      <p>
14603 bpr 79
        You currently use MathML
80
        !set wims_ref_class=wims_button
81
        !href cmd=resume&useropts=$(arg)0$font Passer au mode image
10585 obado 82
      </p>
14603 bpr 83
      <h3 id="formula_options">Option du mode MathML :</h3>
84
      <p>Le mode MathML permet un zoom sur les formules par un click de souris.</p>
85
      !set wims_ref_class=wims_button
15583 bpr 86
      !if $useropts!=$texsize$(texalign)1$font
14603 bpr 87
        Le zoom est <span class="disabled">désactivé</span>.
88
        !href cmd=resume&useropts=$texsize$(texalign)1$font#formula_options activer
89
        <span class="wims_button disabled">désactiver</span>
90
      !else
91
        Le zoom est <span class="oef_indgood success">activé</span>.
92
        <span class="wims_button disabled">activer</span>
93
        !href cmd=resume&useropts=$texsize$(texalign)0$font#formula_options désactiver
94
      !endif
95
 
96
      <h3>Navigateurs compatibles MathML</h3>
97
      $tip
10585 obado 98
    !else
14603 bpr 99
      <p>
17180 bpr 100
        Actuellement, vous utilisez le serveur en <strong>mode image</strong>.<br>
14603 bpr 101
        Avec un navigateur compatible, vous pouvez utiliser le mode MathML.
10585 obado 102
      </p>
14603 bpr 103
      <h3>Mode d'affichage</h3>
104
      <p>
105
        Vous êtes en mode Image
106
        !set arg=!nospace $texsize 2
107
        !set wims_ref_class=wims_button
108
        !href cmd=resume&useropts=$(arg)0$font Passer au mode MathML
109
      </p>
110
      <h3>Options du mode image</h3>
10585 obado 111
      <ul><li>
14603 bpr 112
        Size of mathematical symbols and formulas.
113
        !let ts1=!eval $texsize-1
114
        !let ts2=!eval $texsize+1
115
        !if $ts1<1
116
          !let ts1=1
117
        !endif
118
        !if $ts2>9
119
          !let ts2=9
120
        !endif
121
        !set wims_ref_class=wims_button
17180 bpr 122
        !href cmd=resume&useropts=$ts1$texalign$zoom$font#formula <img src="gifs/doc/dgauche.gif" style="width:1em">
14603 bpr 123
        !set wims_ref_class=wims_button
124
        !href cmd=resume&useropts=$[$wims_texbasesize-1]$texalign$zoom$font#formula Normal
125
        !set wims_ref_class=wims_button
17180 bpr 126
        !href cmd=resume&useropts=$ts2$texalign$zoom$font#formula <img src="gifs/doc/ddroite.gif" style="width:1em">
10585 obado 127
      </li><li>
128
        Position of the formulas. If the expression
129
        !insmath (x+y)/(x^$pw + y^2)
130
        is
131
        !if $texalign=1
14603 bpr 132
          too high with respect to the text line,
133
          !set wims_ref_class=wims_button
134
          !href cmd=resume&useropts=$(texsize)0$zoom$font click here to lower it.
10585 obado 135
        !else
14603 bpr 136
          too low with respect to the text line,
137
          !set wims_ref_class=wims_button
138
          !href cmd=resume&useropts=$(texsize)1$zoom$font click here to raise it.
10585 obado 139
        !endif
14603 bpr 140
      </li></ul>
10585 obado 141
    !endif
142
  </div>
6183 bpr 143
 
10585 obado 144
  <div id="accessibility">
145
    <h2>Accessibility</h2>
7029 bpr 146
 
10585 obado 147
    <p>You can modify space width beetween characters.
14603 bpr 148
      !if $useropts=$(texsize)$texalign$(zoom)1
149
        !set secondary1=wims_button disabled
150
        !set secondary2=wims_button
151
      !else
152
        !set secondary2=wims_button disabled
153
        !set secondary1=wims_button
154
      !endif
155
      !set wims_ref_class=$secondary2
156
      !href cmd=resume&useropts=$(texsize)$texalign$(zoom)0 Normal
6183 bpr 157
 
14603 bpr 158
      !set wims_ref_class=$secondary1
159
      !href cmd=resume&useropts=$(texsize)$texalign$(zoom)1 Mode espacé
10585 obado 160
    </p>
161
    <p>The spaced mode may be better if you have some reading difficulties.</p>
162
  </div>
163
</div>
164
!if $jquery_defined=yes
165
  !read adm/tabscript useropts
166
!endif
167
 
14603 bpr 168
<p class="spacer">
10585 obado 169
  !if $wims_user=$empty
15583 bpr 170
    When everything corresponds exactly to what you want, put
10585 obado 171
    !set wims_ref_class=wims_button
15583 bpr 172
    <a href="$wims_ref_name?lang=$lang&+useropts=$texsize$texalign$zoom$font" title="WIMS">
173
      this link</a>
174
     into your bookmark, to keep these preferences for your future connections.
10585 obado 175
  !else
15583 bpr 176
    Your preferences will be preserved in your future logins in this class.
10585 obado 177
  !endif
6183 bpr 178
</p>
23 reyssat 179
 
180
!tail