!set wims_texsize=$mytexsize
!set n=$counter
!if $showanswer=0
$finalresult
!! to ensure playback of the exam is possible
!if $wims_user=supervisor
<div align="center">
<font color="red">Alert: these results are only visible for the <em>supervisor</em></font>
<table summary="" bgcolor="$bgcolor2" cellpadding="10" cellspacing="$cellspacing" border="1">
!for n=1 to $total_exos
<tr>
<td valign="top">
<small>
!if $total_exos >1
$questionnumber <b>$n</b>)
<br>
!endif
$(question$n)
!if $(formula$n) !=$empty
<br>
!insmath $(formula$n)
!endif
!if $(texanswer$n) != $empty
<br>
!insmath $(texanswer$n)
!endif
!if $(textanswer$n) != $empty
<br>
<hr>
<font color="green">$(textanswer$n)</font>
!endif
</small>
</td>
<td valign="top">
<small>
$youranswer
!if $(reply$n) != $empty
<br>
!if $multiimage=1
!if $plot=1
!insplot $(reply$n)
!else
!if $draw=1
!insdraw $(reply$n)
!endif
!endif
!else
!if $math=1
!insmath $(reply$n)
!else
$(reply$n)
!endif
!endif
!endif
</small>
</td>
</tr>
</table>
</div>
!endif
!else
<div align="center">
<table summary="" bgcolor="$bgcolor2" cellpadding="10" cellspacing="$cellspacing" border="1">
!for n=1 to $total_exos
<tr>
<td valign="top">
<small>
!if $total_exos >1
$questionnumber <b>$n</b>)<br>
!endif
$(question$n)
!if $(formula$n) !=$empty
<br>
!insmath $(formula$n)
!endif
!if $(texanswer$n) != $empty
<br>
!insmath $(texanswer$n)
!endif
!if $(textanswer$n) != $empty
<br>
<hr width="50%">
<font color="green">$(textanswer$n)</font>
!endif
</small>
</td>
<td valign="top">
<p align="center">
!if $(image$n) != $empty
!if $plot=1
!set insplot_set=$(image_settings$n) ; size 0.5,0.5;
!insplot $(image$n)
!else
!if $draw=1
!set insdraw_size=$(image_settings$n)
!insdraw $(image$n)
!endif
!endif
!else
!if $(object$n)!= $empty
$(object$n)
!endif
!endif
</p>
</td>
<td valign="top">
<small>
$youranswer
</small>
!if $(reply$n) != $empty
<br>
!if $multiimage=1
!if $plot=1
!insplot $(reply$n)
!else
!if $draw=1
!insdraw $(reply$n)
!endif
!endif
!else
!if $math=1
!insmath $(reply$n)
!else
$(reply$n)
!endif
!endif
<hr>
!endif
!if $goodbadsign>0
<small>
<em>
$(remark$n)
</em>
</small>
!endif
</td>
</tr>
</table>
</div>
$finalresult
!endif
!ifval $try >0 and $module_score !=0
<br>
!set s=!record 87 of $remarkdir/commonremarks.$taal
<font size="-1" color="red">$s</font>
!endif