Thanks for the answers. I did in fact know about \incrementnumber, but I couldn't find any information about the counter. Where would I find such information, aside from asking on this mailgroup?
On 2/14/12 1:48 PM, Hans Hagen wrote:
\starttext
\startitemize[n]
\item First question
\phantom{\item }
\item Third question
\phantom{\item }
\item Fifth question
\item Sixth question
\stopitemize
\stoptext
or something
\starttext
\startitemize[n]
\item First question
\incrementnumber[itemgroup:itemize]
\item Third question
\incrementnumber[itemgroup:itemize]
\item Fifth question
\item Sixth question
\stopitemize
\stoptext
Just a hint: however you do it, I think this is not the best approach. you write:If this is a recurrent task, i.e. if you regularly make up student problems and then typeset the solutions, this approach is inefficient because you're doing the book keeping yourself. If, for example, you decide to delete one of the questions without written solution, you will have to delete the \incrementnumber as well. It may be better if you let ConTeXt do the book keeping: give every question a unique identitfier like so
I'm typing out solutions to questions in some student notes, and themissing item is a question for which a written solution is not necessary.
\startitem[p:1:2]
Problem?
\stopitem
and then typeset the solutions by referring back to this identifier:
\sym{\in[p:1:2]}
That way, the numbers in problems and solutions will always be correct, even if you rearrange etc. (I often typeset such exercise stylesheets, and after many years, that's my approach today.)
Thomas
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________