Subversion Repositories wimsdev

Rev

Rev 5903 | Rev 6133 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5903 Rev 5912
Line 61... Line 61...
61
<p>
61
<p>
62
See
62
See
63
!href cmd=help&special_parm=oef help on OEF format
63
!href cmd=help&special_parm=oef help on OEF format
64
 for the syntax to define a multiple choice.
64
 for the syntax to define a multiple choice.
65
 
65
 
66
<a name="freestyle"></a>
66
<a id="freestyle"></a>
67
<p><h4>Freestyle answers</h4> <p>
67
<p><h4>Freestyle answers</h4> <p>
68
A freestyle answer is one which is typed by the user.
68
A freestyle answer is one which is typed by the user.
69
Up to $answerlim simultaneous freestyle answers can be asked for one
69
Up to $answerlim simultaneous freestyle answers can be asked for one
70
exercise, under the current implementation. <p>
70
exercise, under the current implementation. <p>
71
The syntax is as follows:
71
The syntax is as follows:
Line 88... Line 88...
88
  !set name=!replace internal | by , in $name
88
  !set name=!replace internal | by , in $name
89
  !set name1=!item 2 to -1 of $name
89
  !set name1=!item 2 to -1 of $name
90
  !set name=!item 1 of $name
90
  !set name=!item 1 of $name
91
  !default name1=$name
91
  !default name1=$name
92
  !if $name isitemof $special_parm or all isitemof $special_parm
92
  !if $name isitemof $special_parm or all isitemof $special_parm
93
   <li><p><a name="_$name"></a>
93
   <li><p><a id="_$name"></a>
94
   !read help/anstype/$name.phtml
94
   !read help/anstype/$name.phtml
95
   !if $name iswordof $symtextlist
95
   !if $name iswordof $symtextlist
96
    <p>
96
    <p>
97
    <b>Remark</b>.
97
    <b>Remark</b>.
98
    This type of reply accepts the symtext option. If the word
98
    This type of reply accepts the symtext option. If the word
Line 113... Line 113...
113
!next i
113
!next i
114
 
114
 
115
!read help/$lang/embedans.phtml
115
!read help/$lang/embedans.phtml
116
 
116
 
117
<h4>The optional parameter <span class="tt wims_code_words">weight</span></h4>
117
<h4>The optional parameter <span class="tt wims_code_words">weight</span></h4>
118
<a name="weight"></a>
118
<a id="weight"></a>
119
It is possible to give a weight to answers.
119
It is possible to give a weight to answers.
120
<p>
120
<p>
121
Example :
121
Example :
122
<pre>\answer{}{1}{type=numeric}{weight=8}
122
<pre>\answer{}{1}{type=numeric}{weight=8}
123
\answer{}{1}{type=numeric}{weight=2}
123
\answer{}{1}{type=numeric}{weight=2}
Line 136... Line 136...
136
\answer{}{1}{type=numeric}{weight=\w}
136
\answer{}{1}{type=numeric}{weight=\w}
137
\answer{}{1}{type=numeric}{weight=3}
137
\answer{}{1}{type=numeric}{weight=3}
138
</pre>
138
</pre>
139
 
139
 
140
<h4>Le paramètre optionnel <span class="tt wims_code_words">option</span></h4>
140
<h4>Le paramètre optionnel <span class="tt wims_code_words">option</span></h4>
141
 <a name="option"></a>
141
 <a id="option"></a>
142
 Dans le cas de plusieurs options, elles sont séparées par des espaces.
142
 Dans le cas de plusieurs options, elles sont séparées par des espaces.
143
 For example, <span class="tt wims_code_words">option=default noanalyzeprint</span>
143
 For example, <span class="tt wims_code_words">option=default noanalyzeprint</span>
144
 
144
 
145
Les options possibles à la suite d'une instruction <span class="tt wims_code_variable">answer</span>
145
Les options possibles à la suite d'une instruction <span class="tt wims_code_variable">answer</span>
146
ou <span class="tt wims_code_variable">condition</span> sont
146
ou <span class="tt wims_code_variable">condition</span> sont