Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
23 reyssat 1
!set embraced_randitem=<p> \
4674 bpr 2
This field accepts the randomization by nestable curly embraces:\
3
if you put several words (or groups of words), separated by commas,\
23 reyssat 4
within a pair of embraces, one of the words will be randomly drawn\
5
at the time when the text is presented to students. This will add\
6
randomness to your text. <p>\
7
For example, if you enter the text <p>\
5903 bpr 8
<span class="tt">I will go to {Paris, New York, London} \
9
{tomorrow, the next week}</span>,\
23 reyssat 10
<p>the result will be one of the following sentences, at random:\
11
<pre>\
12
I will go to Paris tomorrow\
13
I will go to New York tomorrow\
14
I will go to London tomorrow\
15
I will go to Paris the next week\
16
I will go to New York the next week\
17
I will go to London the next week\
18
</pre>
19
 
2455 bpr 20
!set name_random=Some examples of random generation of parameter: <ul>\
21
 <li>For an integer between 10 and 100 (inclusive):\
5903 bpr 22
         <span class="tt wims_code_words">randint(10..100)</span>\
2455 bpr 23
 <li>For an integer multiple of 10 between 10 and 1000 (inclusive):\
5903 bpr 24
        <span class="tt wims_code_words">randint(1..100)*10</span>\
2455 bpr 25
 <li>For a decimal number between 0 and 2:\
5903 bpr 26
        <span class="tt wims_code_words">random(0..2)</span>\
2455 bpr 27
 <li>For a random item within a list:\
5903 bpr 28
        <span class="tt wims_code_words">randitem(a,b,c,10,100,word,a phrase)</span>\
2455 bpr 29
 </ul>
30
 
31
!set name_detail_parm=More details on the computation of parameters.
23 reyssat 32
 
5724 bpr 33
!set image_help=<div class="wims_smallremark"><b>Insertion d'images</b>:\
34
Pour insérer des images dans votre exercice, il faut d'une part charger les images\
35
dans le module d'exercices de votre classe et d'autre part mettre le code html qui \
36
permet d'afficher l'image. Le code d'insertion est\
37
<pre>&lt;img src="\imagedir/nom_image"/></pre> et\
5903 bpr 38
où <span class="tt">nom_image</span> est le nom de l'image (y compris l'extension <span class="tt">.jpg</span>, <span class="tt">.png</span>,\
39
...) et <span class="tt wims_code_variable">\imagedir</span> représente le nom de code du répertoire où se trouve l'image.\
5724 bpr 40
Vous pouvez le mettre dans la plupart des textes des modèles préparés (y compris dans la consigne).\
41
Vous pouvez commencer votre exercice même si les images ne sont pas encore chargées.\
42
Une fois l'exercice mis dans la classe, suivez le lien \
5903 bpr 43
<span class="tt">Déposer un fichier</span> dans l'exercice</tt> ou <span class="tt">$wims_name_downloadbinary</span>\
5724 bpr 44
et chargez toutes les images dont vous avez besoin. Testez. Ajustez les tailles des images.\
45
Il est recommandé de ne pas prendre des images trop grandes car plus longues à charger\
46
lors de l'exécution de l'exercice et de les réduire avant de les mettre dans le module de la classe.\
47
</div>
23 reyssat 48
 
5724 bpr 49
!set math_help= <div class="wims_smallremark"><b>Insertion de formules mathématiques</b>:\
50
Pour entrer des formules de mathématiques dans le texte, encadrez le code tex par \
5903 bpr 51
<span class="tt wims_code_variable">\(</span>\
5724 bpr 52
et\
5903 bpr 53
<span class="tt wims_code_variable">\)</span>.\
5724 bpr 54
Par exemple,\
55
<pre>\( x^2+\frac{3}{2} \)</pre>
56
 
57
!set oef_help= <div class="wims_small_remark"><b>Pour les plus avancés</b> :\
58
il est possible dans la définition des paramètres d'utiliser \
59
la plupart des fonctions des exercices OEF.\
5819 bpr 60
</div>
61
 
5903 bpr 62
!set credits_help=Vous pouvez utiliser le champ <span class="tt wims_code_words">$wims_name_credits</span> pour mettre\
5819 bpr 63
de brèves références, par exemple des images insérées dans l'exercice.