Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
14006 bpr 1
!!! Rg$iii contains the data for questions embeddings of
2
!!! exercise $iii (one line for each question)
3
!!! ans_$iii contains the data for the answer
13893 bpr 4
!set prompt_empty=.............
13798 bpr 5
 
20 reyssat 6
!advance prcnt
7
!if $prcnt>6 and $wims_user!=supervisor
12325 bpr 8
  error=too_many_print
9
  printing=yes
10
  !exit
20 reyssat 11
!endif
12
 
13
printmax=40
14
!reset savedrawcnt print
15
printing=yes
16
exo=!listintersect $exo and $exolist
17
!default exo=$defaultlist
2650 bpr 18
wims_intro_parm=$exo
2646 bpr 19
!default exo=$exolist
20
exo_cnt=!itemcnt $exo
21
!!at least 1 exercise of each type
13764 bpr 22
!if $random=0
23
  exo_=!makelist x for x=1 to $exo_cnt
24
!else
25
  exo_=!shuffle $exo_cnt
26
!endif
2646 bpr 27
qnum1=$[$qnum-$exo_cnt]
28
!if $qnum1 >= 1
12325 bpr 29
  exo__=!randint 1,$exo_cnt repeat $qnum1
30
  exo_=$exo_,$exo__
2646 bpr 31
!endif
32
exo=$(exo[$(exo_)])
20 reyssat 33
exo=!item 1 to $printmax of $exo
34
n=!itemcnt $exo
35
 
36
!if $n<1
12325 bpr 37
  !exit
20 reyssat 38
!endif
39
 
40
M=0
41
m_step=1
874 bpr 42
test_print=0
2656 bpr 43
!if $wims_developer!= or $wims_user=supervisor
44
  latex_exists=0
45
  !readproc oef/latex.proc begin
16937 bpr 46
  !readproc oef/latex.proc header
2656 bpr 47
!else
48
  latex_exists=-1
49
!endif
50
 
14006 bpr 51
!for iii=1 to $n
52
  question_$iii=
53
  e_=!item $iii of $exo
54
  name_$iii=$e_
12325 bpr 55
  !if $lang_choice!=$empty
14006 bpr 56
    title_$iii=!defof title_$lang_choice in $(class_header)def/$e_.def
12325 bpr 57
  !else
14006 bpr 58
    title_$iii=!defof title_$lang in $(class_header)def/$e_.def
12325 bpr 59
  !endif
14006 bpr 60
  !if $(title_$iii)=$empty
61
    title_$iii=!defof title in $(class_header)def/$e_.def
12325 bpr 62
  !endif
63
  !reset question testcondition format
64
  thisexo=$e_
65
  !readproc oef/imagedir.proc
13880 bpr 66
  !readproc oef/printanalysis.proc
13876 bpr 67
!next
2656 bpr 68
!if $latex_exists>=1
69
  !readproc oef/latex.proc end
3128 bpr 70
!endif