Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
3263 bpr 1
:Command list
2
 
8552 reyssat 3
:directive,number of<br/>parameters,description,optional parameters,recognized option words
4
 
3263 bpr 5
:title
6
1
7
defines the title of the exercise
8552 reyssat 8
 
3263 bpr 9
:language
10
1
5903 bpr 11
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>
8552 reyssat 12
 
3263 bpr 13
:author
14
1
5903 bpr 15
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).
8552 reyssat 16
 
3263 bpr 17
:email
18
1
4962 bpr 19
defines the author's email (in case of multiple authors, use a comma between the addresses).
8552 reyssat 20
 
3263 bpr 21
:format
22
1
23
format of the statement
24
 
9076 bpr 25
 
3263 bpr 26
help=format
8552 reyssat 27
:css
28
1
3263 bpr 29
defines css style
8552 reyssat 30
 
9076 bpr 31
:keywords
32
1
33
Exercise keywords
34
 
3263 bpr 35
:precision
36
1
37
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.
8552 reyssat 38
 
3263 bpr 39
:range
40
1
5903 bpr 41
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 42
 
8552 reyssat 43
:computeanswer
44
1
45
The instruction <span class="tt wims_code_words">\computeanswer{ no }</span> specifies that the user should complete calculations by himself and enter the final value. On the other hand, if we specify <span class="tt wims_code_words">\computeanswer{ yes }</span>, the user may enter a formula like <span class="tt wims_code_words">5*5</span>,  letting the computer make the calculations.
46
 
3263 bpr 47
:statement
48
1
8552 reyssat 49
the parameter is the statement of the exercise. Can be used only one time in the exercise.
3263 bpr 50
 
51
:answer
52
2-5
8552 reyssat 53
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.
3263 bpr 54
type option weight
8552 reyssat 55
reorder shuffle nonstop
56
help=reply
3263 bpr 57
 
58
:choice
59
3-5
60
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.
61
option weight
62
shuffle noidontknow
8552 reyssat 63
 
3263 bpr 64
:condition
65
2-4
66
defines a special condition for the evaluation of freestyle answers.
67
option weight
68
 
69
help=reply
8552 reyssat 70
 
3263 bpr 71
:solution
72
1
9076 bpr 73
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.
8552 reyssat 74
 
3263 bpr 75
:hint
76
1
9076 bpr 77
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.
8552 reyssat 78
 
3263 bpr 79
:help
80
1
9076 bpr 81
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.
8552 reyssat 82
 
3263 bpr 83
:feedback
84
2
4092 bpr 85
gives a feedback warning to the user when the answer meeds a specified condition. Usually to warn of a typical error.
3263 bpr 86
 
87
 
88
help=feedback
8552 reyssat 89
 
3294 bpr 90
:steps
91
1
9076 bpr 92
defines 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 93
 
94
:nextstep
95
1
9076 bpr 96
defines 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 97
 
98
:conditions
99
1
8552 reyssat 100
defines the numbers of the conditions useful for the exercise.
4372 bpr 101
 
102
:latex
103
1
8552 reyssat 104
allows to write a latex version of the exercise using the variables defined in the exercise and downloadable in the printable version of the exercise (accessible only by developers or teachers of a class). It is advisable to put the statement in a predefined environment latex <span class="tt wims_code_words">\begin{statement} \end{statement}</span> and the solution in the environment <span class="tt wims_code_words">\begin{sol} ... \end{sol}</span>.
4810 bpr 105
 
106
:credits
107
1
9076 bpr 108
allows to insert credits at the end of the exercise (variables are evaluated).