Rev 5724 | Rev 5903 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
5819 | bpr | 1 | |
23 | reyssat | 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\ |
||
7 | randomness to your text. <p>\ |
||
8 | For example, if you enter the text <p>\ |
||
4091 | bpr | 9 | <tt>I will go to {Paris, New York, London} \ |
4119 | bpr | 10 | {tomorrow, the next week}</tt>,\ |
23 | reyssat | 11 | <p>the result will be one of the following sentences, at random:\ |
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\ |
||
19 | </pre> |
||
20 | |||
2455 | bpr | 21 | !set name_random=Some examples of random generation of parameter: <ul>\ |
22 | <li>For an integer between 10 and 100 (inclusive):\ |
||
4091 | bpr | 23 | <tt class="wims_code_words">randint(10..100)</tt>\ |
2455 | bpr | 24 | <li>For an integer multiple of 10 between 10 and 1000 (inclusive):\ |
4091 | bpr | 25 | <tt class="wims_code_words">randint(1..100)*10</tt>\ |
2455 | bpr | 26 | <li>For a decimal number between 0 and 2:\ |
4091 | bpr | 27 | <tt class="wims_code_words">random(0..2)</tt>\ |
5819 | bpr | 28 | </li><li>For a random item within a list:\ |
4091 | bpr | 29 | <tt class="wims_code_words">randitem(a,b,c,10,100,word,a phrase)</tt>\ |
2455 | bpr | 30 | </ul> |
5724 | bpr | 31 | |
2455 | bpr | 32 | !set name_detail_parm=More details on the computation of parameters. |
23 | reyssat | 33 | |
5724 | bpr | 34 | !set image_help=<div class="wims_smallremark"><b>Insertion d'images</b>:\ |
35 | Pour insérer des images dans votre exercice, il faut d'une part charger les images\ |
||
36 | dans le module d'exercices de votre classe et d'autre part mettre le code html qui \ |
||
37 | permet d'afficher l'image. Le code d'insertion est\ |
||
38 | <pre><img src="\imagedir/nom_image"/></pre> et\ |
||
39 | où <tt>nom_image</tt> est le nom de l'image (y compris l'extension <tt>.jpg</tt>, <tt>.png</tt>,\ |
||
40 | ...) et <tt class="wims_code_variable">\imagedir</tt> représente le nom de code du répertoire où se trouve l'image.\ |
||
41 | Vous pouvez le mettre dans la plupart des textes des modèles préparés (y compris dans la consigne).\ |
||
42 | Vous pouvez commencer votre exercice même si les images ne sont pas encore chargées.\ |
||
43 | Une fois l'exercice mis dans la classe, suivez le lien \ |
||
44 | <tt>Déposer un fichier</tt> dans l'exercice</tt> ou <tt>$wims_name_downloadbinary</tt>\ |
||
45 | et chargez toutes les images dont vous avez besoin. Testez. Ajustez les tailles des images.\ |
||
46 | Il est recommandé de ne pas prendre des images trop grandes car plus longues à charger\ |
||
47 | lors de l'exécution de l'exercice et de les réduire avant de les mettre dans le module de la classe.\ |
||
48 | </div> |
||
23 | reyssat | 49 | |
5724 | bpr | 50 | !set math_help= <div class="wims_smallremark"><b>Insertion de formules mathématiques</b>:\ |
51 | Pour entrer des formules de mathématiques dans le texte, encadrez le code tex par \ |
||
52 | <tt class="wims_code_variable">\(</tt>\ |
||
53 | et\ |
||
54 | <tt class="wims_code_variable">\)</tt>.\ |
||
55 | Par exemple,\ |
||
56 | <pre>\( x^2+\frac{3}{2} \)</pre> |
||
57 | |||
58 | !set oef_help= <div class="wims_small_remark"><b>Pour les plus avancés</b> :\ |
||
59 | il est possible dans la définition des paramètres d'utiliser \ |
||
60 | la plupart des fonctions des exercices OEF.\ |
||
5819 | bpr | 61 | </div> |
62 | |||
63 | !set credits_help=You may use the field <tt class="wims_code_words">$wims_name_credits</tt> to give\ |
||
64 | short references, for example for the images inserted in the exercise. |