[NTG-context] making multiple choice questions exams

Hans Hagen pragma at wxs.nl
Thu Jun 1 09:35:39 CEST 2006


Aditya Mahajan wrote:
> This is interesting. I have a couple of questions.
>
> On Sun, 28 May 2006, Hans Hagen wrote:
>
>   
>> This should get you started ... please wikify this:
>>
>> \setupitemgroup[itemize][1][a,random,packed]
>>
>> \startsetups examn:make
>> [snipped]
>> \stopsetups
>>
>> \startsetups examn:ok
>>    \doifmode {answers} {
>>        \inleft{\symbol[star]}
>>    }
>>    \ignorespaces
>> \stopsetups
>>     
>
> For some reason, ignorespaces is ignored. The output is shifted left 
> by one space. Is this because of some grouping issue.
>
>   
>> \starttext
>>
>> \startbuffer[examn]
>>
>> \startitemize
>> \startitem first  \stopitem
>> \startitem \setups[examn:ok] second \stopitem
>> \startitem third  \stopitem
>> \startitem fourth \stopitem
>> \stopitemize
>> [snipped]
>> \stopbuffer
>>     
>
>
> Any particular reason for using \startitem ... \stopitem instead of 
> \item? I could not notice any difference between the two. Is it just a 
> matter of taste?
>
>   
well, you don't have the 'random' option in your version; we need the start/stop then because we need to collect the items first 

Hans 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------



More information about the ntg-context mailing list