Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
3797 bpr 1
<h4>Embed answers into the statements</h4>
23 reyssat 2
 
3469 bpr 3
:signification
23 reyssat 4
It is possible to embed (include) answers into the statement of your
5
exercises under html format. The embedded replies and choices should be
6
defined usually.
7
 
3469 bpr 8
:example
9
 <span class="wims_help_example">Examples</span>
10
 <ul>
10271 obado 11
  <li><span class="tt wims_code_words">\embed{reply 1}</span> insert the first freestyle reply into the text.</li>
12
  <li><span class="tt wims_code_words">\embed{reply 2,10}</span> insert the second freestyle reply into the text,
3797 bpr 13
with an input field of size 10.</li>
10271 obado 14
  <li><span class="tt wims_code_words">\embed{choice 1}</span> insert the first multiple choice into the text.</li>
15
  <li><span class="tt wims_code_words">\embed{reply 1,\i, \pick[\i;]}</span> When type is a multiple choice, insert choice #<span class="tt">\i</span> into the text, but its appearance will be "<span class="tt">\pick[\i;]</span>". With this, you can have very simple choices (A,B,C), but with complex appearances (like mathematics formula).</li>
23 reyssat 16
</ul>
17
 
5903 bpr 18
Special case. If the type of <span class="tt wims_code_words">reply 1</span> is among <span class="tt wims_code_words">checkbox</span>,
19
<span class="tt wims_code_words">click</span>, <span class="tt wims_code_words">radio</span>, <span class="tt wims_code_words">\embed{reply 1,2}</span>
23 reyssat 20
inserts only one of the choices (here the number 2 in this case), either
5903 bpr 21
clickable (<span class="tt wims_code_words">click</span>) or with a button for marking it. This allows
23 reyssat 22
insertions of the choices in versatile text structures.
14643 bpr 23
 
24
<p>
25
In the case of the <span class="tt wims_code_words>"menu</spn> type,
26
it is obligatory to put <span class="tt wims_code_words">\embed{reply 1}</span>
27
without a second argument.
28
</p>