Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
5819 bpr 1
 
13705 obado 2
!set embraced_randitem=<p>\
4674 bpr 3
This field accepts the randomization by nestable curly embraces:\
4
if you put several words (or groups of words), separated by commas,\
23 reyssat 5
within a pair of embraces, one of the words will be randomly drawn\
6
at the time when the text is presented to students. This will add\
13705 obado 7
randomness to your text.</p><p>\
8
For example, if you enter the text</p><p>\
9
<span class="tt">I will go to {Paris, New York, London}\
5903 bpr 10
{tomorrow, the next week}</span>,\
13705 obado 11
the result will be one of the following sentences, at random:</p>\
23 reyssat 12
<pre>\
13
I will go to Paris tomorrow\
14
I will go to New York tomorrow\
15
I will go to London tomorrow\
16
I will go to Paris the next week\
17
I will go to New York the next week\
18
I will go to London the next week\
13705 obado 19
</pre><p>\
20
If you wish to enter mathematical formulas, it is advisable to\
21
 disable this possibility by putting the switch\
22
 <span class="wims_code_words">Embraced random items</span>\
23
 on <span class="tt">$wims_name_no</span>.</p>
23 reyssat 24
 
13705 obado 25
!set name_random=Some examples of random generation of parameter:<ul>\
2455 bpr 26
 <li>For an integer between 10 and 100 (inclusive):\
15178 lemaire 27
     <span class="tt wims_code_words">randint(10..100)</span>\
2455 bpr 28
 <li>For an integer multiple of 10 between 10 and 1000 (inclusive):\
15178 lemaire 29
    <span class="tt wims_code_words">randint(1..100)*10</span>\
2455 bpr 30
 <li>For a decimal number between 0 and 2:\
15178 lemaire 31
    <span class="tt wims_code_words">random(0..2)</span>\
5819 bpr 32
 </li><li>For a random item within a list:\
15178 lemaire 33
    <span class="tt wims_code_words">randitem(a,b,c,10,100,word,a phrase)</span>\
2455 bpr 34
 </ul>
5724 bpr 35
 
2455 bpr 36
!set name_detail_parm=More details on the computation of parameters.
23 reyssat 37
 
15178 lemaire 38
!set image_help=<h4>Inserting images</h4>\
13705 obado 39
To insert images in your exercise, you must first load the images\
40
 in the exercise module of your class and secondly put the html code that displays the image.\
41
The insertion code is\
42
<pre>&lt;img src="\imagedir/nom_image"/></pre>,\
43
where <span class="tt">nom_image</span> is the name of the image (including the <span class="tt">.jpg</span>, <span class="tt">.png</span>,\
44
... extension) and <span class="tt wims_code_variable">\imagedir</span> represents the directory where the image is located.\
45
You can put it in most of the texts of the prepared models (including in the instructions).\
46
You can start your exercise even if the images are not uploaded yet.\
47
Once the exercise is in the classroom, follow the link\
48
<span class="tt">Upload a file</span> in the exercise</tt> or <span class="tt">$wims_name_downloadbinary</span>\
49
and upload all the images you need. Test, then adjust the image sizes.\
50
It is recommended that you do not take images that are too large,\
51
 because they take longer to load while performing the exercise\
52
 and reduce them before putting them in the classroom module.\
23 reyssat 53
 
15178 lemaire 54
!set math_help= <h4>Inserting mathematical formulas</h4>\
13705 obado 55
To enter mathematical formulas, enclose the tex code by \
5903 bpr 56
<span class="tt wims_code_variable">\(</span>\
13705 obado 57
and\
5903 bpr 58
<span class="tt wims_code_variable">\)</span>.\
13705 obado 59
For example,\
5724 bpr 60
<pre>\( x^2+\frac{3}{2} \)</pre>
61
 
15178 lemaire 62
!set oef_help= <div class="wims_smallremark"><h4>For the most advanced</h4>\
13705 obado 63
it is possible in the definition of the parameters\
64
 to use most of the functions of the OEF exercises.\
5819 bpr 65
</div>
66
 
15178 lemaire 67
!set credits_help=<h4>References</h4>\
68
You may use the field <span class="tt wims_code_words">$wims_name_credits</span> to give\
6838 bpr 69
short references, for example for the images inserted in the exercise.