Subversion Repositories wimsdev

Rev

Rev 4091 | Rev 5903 | Go to most recent revision | 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
 
9
:example
10
 <span class="wims_help_example">Examples</span>
11
 <ul>
4091 bpr 12
<li><tt class="wims_code_words">\embed{reply 1}</tt> insert the first freestyle reply into the text.</li>
13
<li><tt class="wims_code_words">\embed{reply 2,10}</tt> insert the second freestyle reply into the text,
3797 bpr 14
with an input field of size 10.</li>
4091 bpr 15
<li><tt class="wims_code_words">\embed{choice 1}</tt> insert the first multiple choice into the text.</li>
23 reyssat 16
</ul>
17
 
4091 bpr 18
Special case. If the type of <tt class="wims_code_words">reply 1</tt> is among <tt class="wims_code_words">checkbox</tt>,
19
<tt class="wims_code_words">click</tt>, <tt class="wims_code_words">radio</tt>, <tt class="wims_code_words">\embed{reply 1,2}</tt>
23 reyssat 20
inserts only one of the choices (here the number 2 in this case), either
4091 bpr 21
clickable (<tt class="wims_code_words">click</tt>) or with a button for marking it. This allows
23 reyssat 22
insertions of the choices in versatile text structures.