From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85842 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: setuphead for in-paragraph head ? Date: Thu, 9 Jan 2014 12:12:13 -0500 (EST) Message-ID: References: <52CEB6B4.7070308@gyza.cz> <133B935F-59FF-4C57-9A37-00B42BCAB67F@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1389287539 1668 80.91.229.3 (9 Jan 2014 17:12:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Jan 2014 17:12:19 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 09 18:12:28 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 1W1J9e-0004DB-LX for gctc-ntg-context-518@m.gmane.org; Thu, 09 Jan 2014 18:12:26 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2AC11101F2; Thu, 9 Jan 2014 18:12:26 +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 DzG8WQyClnBP; Thu, 9 Jan 2014 18:12:23 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 570D9101E6; Thu, 9 Jan 2014 18:12:23 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 24BEF101E6 for ; Thu, 9 Jan 2014 18:12:22 +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 YCm7Z6ZvXw-K for ; Thu, 9 Jan 2014 18:12:20 +0100 (CET) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 42184101E2 for ; Thu, 9 Jan 2014 18:12:20 +0100 (CET) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s09HCGxL007088 for ; Thu, 9 Jan 2014 18:12:18 +0100 Original-Received: FROM Decentralized.ECE.McGill.CA (Decentralized.ECE.McGill.CA [132.206.69.142]) By hackers.mr.itd.umich.edu ID 52CED86F.82887.32709 ; Authuser adityam; 9 Jan 2014 12:12:15 EST In-Reply-To: <133B935F-59FF-4C57-9A37-00B42BCAB67F@gmail.com> User-Agent: Alpine 2.03 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.14.81; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07LbRchz1 - 7423d6b93444 - 20140109 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:85842 Archived-At: On Thu, 9 Jan 2014, Otared Kavian wrote: > > On 9 janv. 2014, at 15:48, Jaroslav Hajtmar wrote: > >> Hello Otared. >> I will throw this one... Thanx. >> >> Once I was using exercise-answer package for LaTeX. >> Is there anything like this to use in ConTeXt? >> >> Thanx >> Jaroslav Hajtmar > > Hello Jaroslav, > > I have something like the following which was given to me by Hans a long > time ago: unfortunately for some reason this does not work anymore with > ConTeXt mkiv, but it is quite fine with mkii: (Untested): Change location=hanging to alternative=hanging. > %%% begin question-hint-answer.tex > \defineblock[question] > \defineblock[hint] > \defineblock[answer] > > \defineenumeration[question][location=hanging,text={Question},stopper={.}] > \defineenumeration[hint][location=hanging,text={Hint for question},stopper={.}] > \defineenumeration[answer][location=hanging,text={Answer to question},stopper={.}] Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________