ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
Subject: Re: making  multiple choice questions exams
Date: Wed, 31 May 2006 13:59:33 -0400 (EDT)	[thread overview]
Message-ID: <Pine.WNT.4.63.0605311355170.3444@nqvgln> (raw)
In-Reply-To: <4479DD0F.7000308@wxs.nl>

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?


> \setuprandomize[1234] % set a seed
>
> \enablemode[answers]
>
> \dorecurse{10} {\setups[examn:make]}
>
> \stoptext


Aditya

  reply	other threads:[~2006-05-31 17:59 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-26 17:19 t-greek module and Latin Modern Alan Bowen
2006-05-27 12:25 ` Hans Hagen
2006-05-27 12:45   ` making multiple choice questions exams batela
2006-05-27 16:22     ` Hans Hagen
2006-05-27 19:12       ` batela
2006-05-27 20:41         ` Hans Hagen
2006-05-28 11:50         ` Hans Hagen
2006-05-28 15:30           ` batela
2006-05-28 17:25             ` Hans Hagen
2006-05-31 17:59               ` Aditya Mahajan [this message]
2006-06-01  7:35                 ` Hans Hagen
2006-06-01 17:00                   ` Aditya Mahajan
2006-05-29 14:18           ` Taco Hoekwater
2006-05-28 11:22   ` t-greek module and Latin Modern Alan Bowen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.WNT.4.63.0605311355170.3444@nqvgln \
    --to=adityam@umich.edu \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).