From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86379 Path: news.gmane.org!not-for-mail From: Otared Kavian Newsgroups: gmane.comp.tex.context Subject: Re: solutions and problems Date: Thu, 20 Feb 2014 11:50:02 +0100 Message-ID: <2D8CEE03-0770-49F4-BCC7-7F36CE8CEAF4@gmail.com> References: <20140220101511.0c8fac08c374f6eb81424e44@telefonica.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1392893424 6758 80.91.229.3 (20 Feb 2014 10:50:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Feb 2014 10:50:24 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Feb 20 11:50:34 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WGRD8-000215-5Q for gctc-ntg-context-518@m.gmane.org; Thu, 20 Feb 2014 11:50:34 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 36F4A101EB; Thu, 20 Feb 2014 11:50:23 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id dsEXwKgui1Xn; Thu, 20 Feb 2014 11:50:21 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id B2738101E6; Thu, 20 Feb 2014 11:50:21 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3412E101E6 for ; Thu, 20 Feb 2014 11:50:20 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id f4cksIfh7BeD for ; Thu, 20 Feb 2014 11:50:16 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 5869A101E2 for ; Thu, 20 Feb 2014 11:50:06 +0100 (CET) Original-Received: from mail-we0-x234.google.com (mail-we0-x234.google.com [IPv6:2a00:1450:400c:c03::234]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s1KAo5DV015345 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Thu, 20 Feb 2014 11:50:05 +0100 Original-Received: by mail-we0-f180.google.com with SMTP id u57so1317496wes.39 for ; Thu, 20 Feb 2014 02:50:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=HUYHb/1nceBeFavJfKD6Aa/So3GZPnt6E3XYqzQOuQc=; b=O0ZSvdY3EM8GWi8PAq5UHVO16CFJ4Ty0Exwe3okXhu9f5J8G2tK0TDIwRWpNHTuGu9 DlOReEW0Q4DIMzJiDtB8s4dHju3500ZHY2yU0w72L8OZrzIptg1EhkCCezqsqVMygrwT wCsYx4S5QX6fGc5sDpJ90s5WP4VPOi3hDWb5LrK9BlmhXEfugYSvxStCDjxV2U7SMVZA U3Kynri5eoHbauM9p1XtBX34NyF0Lcu/MPTOT8StPDImxIVXHKD1C5l/5aM5ozqWVika 74mDRy2B1aGS2HAt00chFU6cyQhxl/d1x9jI0aoK8khxJ000dzYDtvdq/1PVMs8fRopn O73A== X-Received: by 10.180.19.138 with SMTP id f10mr1827240wie.11.1392893405063; Thu, 20 Feb 2014 02:50:05 -0800 (PST) Original-Received: from ?IPv6:2001:660:300f:5:d0a5:18b3:d2cf:3f27? ([2001:660:300f:5:d0a5:18b3:d2cf:3f27]) by mx.google.com with ESMTPSA id ga20sm60467159wic.0.2014.02.20.02.50.03 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Feb 2014 02:50:03 -0800 (PST) In-Reply-To: <20140220101511.0c8fac08c374f6eb81424e44@telefonica.net> X-Mailer: Apple Mail (2.1827) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c03::234; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0VLsyO5lJ - 0690aafc8629 - 20140220 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:86379 Archived-At: Hi, Maybe this is what you looking for: %%%% begin question-hint-answer.tex \defineblock[question] \defineblock[hint] \defineblock[answer] \defineenumeration[question][alternative=3Dhanging,width=3D2.5cm,text=3D{Qu= estion},stopper=3D{.}] \defineenumeration[hint] [alternative=3Dhanging,width=3D4cm,text=3D{Hint= for question},stopper=3D{.}] \defineenumeration[answer] [alternative=3Dhanging,width=3D4.5cm,text=3D{An= swer to question},stopper=3D{.}] \keepblocks[question] \hideblocks[hint] \hideblocks[answer] \starttext \section{Questions} \beginquestion \startquestion Compute $4\times 5$. \stopquestion \endquestion \beginhint \starthint Use the fact that $2\times 5 =3D 10$. \stophint \endhint \beginanswer \startanswer $20$. \stopanswer \endanswer \beginquestion \startquestion What is the value of $100/10$? \stopquestion \endquestion \beginhint \starthint Remember that $10\times 10 =3D 100$. \stophint \endhint \beginanswer \startanswer $10$ \stopanswer \endanswer \section{Hints} \useblocks[hint] \section{Answers} \useblocks[answer] \stoptext %%%% end question-hint-answer.tex Best regards: OK On 20 f=E9vr. 2014, at 10:15, Xan wrote: > Hi, > = > Just a question about blocks... I consulted the manual, but I'm in troubl= e: > = > I have this definitions: > = > % the exercise > \defineenumeration > [exercici] > [alternative=3Dserried,text=3D{\startcolor[darkblue]Exercici\stopcolor},= stopper=3D{.\space},left=3D{\bgroup},right=3D{\egroup},width=3Dfit,headstyl= e=3D\ss,distance=3D0.25em,width=3Dfit] > = > = > \defineenumeration[resposta][headstyle=3D\ss,text=3D{Solucions},width=3Df= it,alternative=3Dserried] > = > \defineblock[resposta] % the answer > \hideblocks[resposta] > = > And in my text, I have: > = > \startexercici > \beginresposta > \resposta Exercici 2 (Solucions: \startitemize[a,text] \item D, \item I, = \item D, \item No t=E9 relaci=F3, \item D, \item D, \item No t=E9 relaci=F3= , \item No t=E9 relaci=F3, \item D.\stopitemize) \par > \endresposta > \stopexercici > ... > = > \startmode[solucions] > \subject{Respostes} %Answers > = > \selectblocks[resposta][criterium=3Dsection] > \stopmode > ... > = > = > Is there any way that the answers (resposta) has the same number as the '= exercici' in which it belongs to? If not, I have to put "Solutions of exerc= ici 2" in my 'resposta' > = > Thank you very much > _________________________________________________________________________= __________ > 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-co= ntext > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > _________________________________________________________________________= __________ ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________