From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85902 Path: news.gmane.org!not-for-mail From: Otared Kavian Newsgroups: gmane.comp.tex.context Subject: Re: setuphead for in-paragraph head ? Date: Mon, 13 Jan 2014 04:41:50 +0100 Message-ID: <0ADAF659-B4E5-4D41-84DA-15075C338393@gmail.com> References: <52CEB6B4.7070308@gyza.cz> <133B935F-59FF-4C57-9A37-00B42BCAB67F@gmail.com> <3BA99063-FA3F-449B-B022-1A2109B25A59@gmail.com> <8E7ED7B8-29C0-4865-B7A8-DD1BD09709E3@gmail.com> <759FE779-328A-4726-8D77-779D83EA097E@gmail.com> <7528AB5C-EF48-4393-869C-8DD3AA6D8C38@gmail.com> <1CEEA7A0-3472-47A6-9AE9-C7D14CB379D4@gmail.com> <86D737E4-2891-4C79-BB04-CDCFA2BD9BB2@gmail.com> <2CFAA317-CA82-4CBF-A9B8-E71C2DC49BC1@gmail.com> <9F71771F-0932-4BFC-A444-646AFA0AE81C@gmail.com> 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="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1389584513 9043 80.91.229.3 (13 Jan 2014 03:41:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Jan 2014 03:41:53 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 13 04:42:02 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 1W2YPZ-0000Ou-Vs for gctc-ntg-context-518@m.gmane.org; Mon, 13 Jan 2014 04:42:02 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B1D09101DE; Mon, 13 Jan 2014 04:42:00 +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 HXrkTInSgt1g; Mon, 13 Jan 2014 04:41:59 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 307FB101E2; Mon, 13 Jan 2014 04:41:59 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8E39F101E2 for ; Mon, 13 Jan 2014 04:41:57 +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 uzX8ZS-PwaIm for ; Mon, 13 Jan 2014 04:41:55 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id F0807101DE for ; Mon, 13 Jan 2014 04:41:54 +0100 (CET) Original-Received: from mail-we0-x22b.google.com (mail-we0-x22b.google.com [IPv6:2a00:1450:400c:c03::22b]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s0D3rjo4021154 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Mon, 13 Jan 2014 04:53:46 +0100 Original-Received: by mail-we0-f171.google.com with SMTP id w61so2497422wes.16 for ; Sun, 12 Jan 2014 19:41:54 -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=HGL3fnB793YrdfD2swmAgiXpQArs4vwJzpj5u7A8MeQ=; b=ERLEwBrtnLM7WYTfRVHg7YdEvuoWBX8IYu6F/5MGLni4hLHq3ZcC9EcK+TOgIR+ojK QaaRtb+dzsDSx3RsKXdGPrJpigqsqDOgP8cfuh2HJ6QTxPvkd/F+vJR6hQ+QVi4FuuWg 0o+o++uOSFVzE1mjaJDdaGQ4apVgxIaCMtP/4KFEw7Td8rZhRKt4DYR25ogKyYAoyXzI 88Dc5/2MIgpMgW5TAGTrpw8p9OBJYWle5g+sUzdgWJf25r5WsfchIiBpmDmRKqEzkTP4 PMt1VLYAAYBotcA1/HYTpZ+a6bh43A/1kowL5y9RSp0yKjdGy6DHWlbti6REh3Ps9jv2 vLFw== X-Received: by 10.180.77.131 with SMTP id s3mr13062329wiw.25.1389584513933; Sun, 12 Jan 2014 19:41:53 -0800 (PST) Original-Received: from [192.168.0.20] (seg75-6-82-236-32-4.fbx.proxad.net. [82.236.32.4]) by mx.google.com with ESMTPSA id pl7sm10322812wjc.16.2014.01.12.19.41.52 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 12 Jan 2014 19:41:52 -0800 (PST) In-Reply-To: <9F71771F-0932-4BFC-A444-646AFA0AE81C@gmail.com> X-Mailer: Apple Mail (2.1827) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c03::22b; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01LdfRJnC - dcba872c2159 - 20140113 (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:85902 Archived-At: Hi Wolfgang, Thanks for the tip: I=92ll try to adapt what you suggest to the case of blo= cks and question-hint-answer, and then let you know if I succeed. Out of curiosity, how can one access the counter associated to an enumerati= on or an item? Also, if I understand correctly, the command \increment\QuestionCounter creates first a counter named QuestionCounter, if it does not exist yet, an= d then increments its value: so one does not need anymore commands such as \newcounter\QuestionCounter before incrementing it. Am I right? Best regards: OK On 12 janv. 2014, at 22:40, Wolfgang Schuster = wrote: > [=85] > When you have only questions and answers you can use the coupling key but= in your case something like below is necessary: > = > \defineenumeration[Question] > \defineenumeration[Answer] > = > \define\startquestion > {\increment\QuestionCounter > \expanded{\startQuestion[reference=3DQuestion:\QuestionCounter]}} > = > \define\stopquestion > {\stopQuestion > \par > \in{Answer}[Answer:\QuestionCounter]} > = > \define\startanswer > {\expanded{\startAnswer[reference=3DAnswer:\QuestionCounter]}} > = > \define\stopanswer > {\stopAnswer > \par > \in{Question}[Question:\QuestionCounter]} > = > \setupinteraction[state=3Dstart] > = > \starttext > = > \startquestion > What is the answer to life the universe and everything? > \stopquestion > = > \page > = > \startanswer > 42. > \stopanswer > = > \stoptext > = > Wolfgang > _________________________________________________________________________= __________ > 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 ___________________________________________________________________________= ________