From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/28861 Path: news.gmane.org!not-for-mail From: David Arnold Newsgroups: gmane.comp.tex.context Subject: Hiding subanswers Date: Sun, 25 Jun 2006 22:59:07 -0700 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v750) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1151301640 837 80.91.229.2 (26 Jun 2006 06:00:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 26 Jun 2006 06:00:40 +0000 (UTC) Cc: Jacob Prystowsky Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 26 08:00:36 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fuk9A-0003rc-En for gctc-ntg-context-518@m.gmane.org; Mon, 26 Jun 2006 08:00:32 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 11FAB12807; Mon, 26 Jun 2006 08:00:32 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09685-02-5; Mon, 26 Jun 2006 08:00:26 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B1B07127F0; Mon, 26 Jun 2006 08:00:26 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id ED583127F0 for ; Mon, 26 Jun 2006 08:00:25 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09685-02-4 for ; Mon, 26 Jun 2006 08:00:24 +0200 (CEST) Original-Received: from fed1rmmtao10.cox.net (fed1rmmtao10.cox.net [68.230.241.29]) by ronja.ntg.nl (Postfix) with SMTP id 51F75127D6 for ; Mon, 26 Jun 2006 08:00:23 +0200 (CEST) Original-Received: from [10.0.1.2] (really [70.191.56.23]) by fed1rmmtao10.cox.net (InterMail vM.6.01.06.01 201-2131-130-101-20060113) with ESMTP id <20060626060021.YKDK18458.fed1rmmtao10.cox.net@[10.0.1.2]>; Mon, 26 Jun 2006 02:00:21 -0400 Original-To: Context Mailing List List X-Mailer: Apple Mail (2.750) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:28861 Archived-At: All, We are currently using this as one of our environment files: \definehead[unnumberedsubsection][subsection] \setuphead[unnumberedsubsection][number=no,incrementnumber=no] \defineenumeration[questions][location=serried,text=\blank] \setupenumerations[questions][before={\page[yes]\unnumberedsubsection {Exercises}\startcolumns[n=2]},after=\stopcolumns,number=no] \defineenumeration[answers][location=serried,text=\blank] \setupenumerations[answers][before={\unnumberedsubsection{Answers} \startcolumns[n=2]},after=\stopcolumns,number=no] \def\placeanswers{\startanswers\doifmodeelse{short}{\selectblocks [shortanswer][criterium=section]}{\selectblocks[longanswer] [criterium=section]}\stopanswers} \defineenumeration[question][location=inleft,text={\color[heavygreen] \bgroup}] \setupenumerations [question] [location=inleft, text={\color[heavygreen]\bgroup}, stopper={.\egroup}, way=bysection, sectionnumber=no] \defineenumeration[subquestion][location=hanging,text={\color [heavygreen]\bgroup},conversion=characters] \setupenumerations[subquestion][stopper={.\egroup}] \defineenumeration[answer][location=inleft,text={\color[heavygreen] \bgroup}] \setupenumerations [answer] [location=inleft, text={\color[heavygreen]\bgroup}, stopper={.\egroup}, way=bysection, sectionnumber=no] \defineenumeration[subanswer][location=hanging,text={\color [heavygreen]\bgroup},conversion=characters] \setupenumerations[subanswer][stopper={.\egroup}] \defineblock[question,shortanswer,longanswer] \hideblocks[shortanswer,longanswer] Then we do something like: \beginquestion \starquestion Yada, yada, yada. \startsubquestion one part \stopsubquestion \startsubquestion part a \stopsubquestion \startsubquestion part b \stopsubquestion \stopquestion \endquestion Then we have some answers. \beginlonganswer \startanswer \startsubanswer part a \stopsubanswer \startsubanswer part b \stopsubanswer \stopanswer \endlonganswer I'd like to set it up so we could "hide" some subanswers. Any suggestions?