Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
3263 bpr 1
 
2
:Command list
3
 
5755 bpr 4
:directive,number of<br/>parameters,description,optional parameters,recognized option word
3263 bpr 5
:title
6
1
7
defines the title of the exercise
8
:language
9
1
5903 bpr 10
defines the language of the exercise, such as <span class="tt wims_code_words">en</span> or <span class="tt wims_code_words">fr</span>
3263 bpr 11
:author
12
1
5903 bpr 13
defines the author of the exercise. Write it in the form <span class="tt wims_code_words">firstname, lastname</span> (in case of multiple authors, use a semicolon between them).
3263 bpr 14
:email
15
1
4962 bpr 16
defines the author's email (in case of multiple authors, use a comma between the addresses).
3263 bpr 17
:format
18
1
19
format of the statement
20
 
21
 
22
help=format
23
:css 
24
1 
25
defines css style
26
:precision
27
1
28
precision in comparing user's reply with the solution. Give a positive integer n here: the comparison will be done to the precision of 1/n.
29
:range
30
1
5903 bpr 31
variable range when evaluating a function supplied by the user. Should be given in the form <span class="tt wims_code_words">n1..n2</span>, where n1 is the start point, n2 is the end point.
3263 bpr 32
 
33
:statement
34
1
4436 bpr 35
the parameter is the statement of the exercise. Can be used only one time in the exercise. 
3263 bpr 36
 
37
:answer
38
2-5
39
defines a freestyle answer. The first parameter is the prompt of the answer, and the second is the good answer.  Such an answer can be tested according to many different types: number, function, text, etc. 
40
type option weight
41
 
42
help=reply
43
:choice
44
3-5
45
defines a multiple choice. The first parameter is the prompt of the choice, the second the good choice(s), and the third the other choice(s). The last two parameters may (should) be a comma-separated list. Multiple good choices are allowed. If a choice appears in both good and bad choice lists, it will be taken as good.
46
option weight
47
shuffle noidontknow
48
:condition
49
2-4
50
defines a special condition for the evaluation of freestyle answers.
51
option weight
52
 
53
help=reply
54
:solution
55
1
4436 bpr 56
gives the solution of the exercise with explanation. The OEF manager may decide on whether to show this explained solution to the user, according to the user setup of the difficulty level. Can be used only one time in the exercise. 
3263 bpr 57
:hint
58
1
4436 bpr 59
gives a hint of the exercise. The OEF manager may decide on whether to show the hint, according to the user setup of the difficulty level. Can be used only one time in the exercise. 
3263 bpr 60
:help
61
1
4436 bpr 62
gives a help to the exercise. This help will always be accessible to the user, in a popup window. Can be used only one time in the exercise. 
3263 bpr 63
:feedback
64
2
4092 bpr 65
gives a feedback warning to the user when the answer meeds a specified condition. Usually to warn of a typical error.
3263 bpr 66
 
67
 
68
help=feedback
3294 bpr 69
:steps
70
1
5903 bpr 71
define the questions of each step of the exercise ; must be before the instruction <span class="tt wims_code_words">statement</span> (see the variable <span class="tt wims_code_words">\step</span>). Can be used only one time in the exercise. 
3294 bpr 72
 
73
 
74
:nextstep
75
1
5903 bpr 76
define the questions of each step of the exercise in a dynamic way ; must be before the instruction <span class="tt wims_code_words">statement</span> (see the variable <span class="tt wims_code_words">\step</span>). Can be used only one time in the exercise. 
3294 bpr 77
 
78
 
79
:conditions
80
1
4372 bpr 81
define the numbers of the conditions useful for the exercise.
82
 
83
:latex
84
1
5903 bpr 85
permet d'écrire une version en latex de l'exercice utilisant les variables définies dans l'exercice et pouvant être téléchargées dans la version imprimable de l'exercice (accessible uniquement par les développeurs ou les enseignants d'une classe). Il est conseillé de mettre l'énoncé dans un environnement latex prédéfini <span class="tt wims_code_words">\begin{statement} \end{statement}</span> et la solution dans l'environnement  <span class="tt wims_code_words">\begin{sol} ... \end{sol}</span>.
4810 bpr 86
 
87
:credits
88
1
89
allow  to insert credits at the end of the exercise (variables are evaluated).