From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/47476 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: blocks in LuaTex Date: Tue, 17 Feb 2009 19:53:12 +0100 Message-ID: <41C26F67-7CA3-4487-A58E-FFD12F38F5B4@gmail.com> References: <8655F72B-1081-4B70-849F-AA5A83C5FA04@gmail.com> <8ba6659fc3cb564b45c7f441ce24ed2f@tugamail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1234896960 24306 80.91.229.12 (17 Feb 2009 18:56:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Feb 2009 18:56:00 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 17 19:57:15 2009 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 lo.gmane.org with esmtp (Exim 4.50) id 1LZV7y-0007xs-Ct for gctc-ntg-context-518@m.gmane.org; Tue, 17 Feb 2009 19:57:06 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 636A11FB82; Tue, 17 Feb 2009 19:55:44 +0100 (CET) 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 06335-07-10; Tue, 17 Feb 2009 19:54:37 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9DB021FB30; Tue, 17 Feb 2009 19:54:35 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A15031FB30 for ; Tue, 17 Feb 2009 19:54:34 +0100 (CET) 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 10613-02-11 for ; Tue, 17 Feb 2009 19:53:58 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by ronja.ntg.nl (Postfix) with ESMTP id D21051FA2B for ; Tue, 17 Feb 2009 19:53:58 +0100 (CET) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.152]) by filter2-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n1HIrwrV021868 for ; Tue, 17 Feb 2009 19:53:58 +0100 Original-Received: by fg-out-1718.google.com with SMTP id e21so543109fga.8 for ; Tue, 17 Feb 2009 10:53:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=A4KBK0k9Lt8rezelVTyuGIXorVNYqvMylfjBR99xEe4=; b=kp6qxwO2GnFQRQzn1Kd77zgLysEIeLAZE5YnXdjHMY4eXLgpMhmsZGte41DB1saM3y vfOISYOrWIzr8CasDARk+MMXOID71Ex/Q34gpvNF+qBhKukrhNX19piCu4DGTiJjWeIv 3NyUml009oggjNoyxoj4LdOD2Bm4KKGlri/F0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=JVTIevDPHM2Za3o8m8QNiVwgVPIf5WoYg0+qJ5rHuxeSo8mracA6R6HPZB0dGYzCdp FzRrdLFiuNbGSLWVteDqULWumA690hPiZ4fx34dHdvvIRMjK9uze6L88b0+0ml/hqWu0 r6aPIyvbFUDIy8G9DRFY7ah2j1SNEKUSxdhUY= Original-Received: by 10.86.70.3 with SMTP id s3mr2248625fga.25.1234896837992; Tue, 17 Feb 2009 10:53:57 -0800 (PST) Original-Received: from ?10.40.71.180? (8.121.113.82.net.de.o2.com [82.113.121.8]) by mx.google.com with ESMTPS id e20sm4609884fga.36.2009.02.17.10.53.56 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 17 Feb 2009 10:53:57 -0800 (PST) In-Reply-To: <8ba6659fc3cb564b45c7f441ce24ed2f@tugamail.com> X-Mailer: Apple Mail (2.930.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=72.14.220.152; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 181371286 - 2825dccaa3f6 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:47476 Archived-At: Am 17.02.2009 um 19:33 schrieb batela: > thanks for your reply. The original code is written by Hans and had > worked perfectly (see the attach). Are you sure, this can't be because \startquestion and \startanswer are nowhere defined. It works after a few modification. 1. You don't need the \startelements ... \stopelements block at the begin of the file, this is already done in the core. 2. Use in your document \startQuestion ... \stopQuestion and \startAnswer ... \stopAnswer *or* replace \defineenumeration[Question] with \defineenumeration[question] and \defineenumeration[Answer] with \defineenumeration[answer] and move [text=Question] to the definition for the question. Replace also all \startAnswer with \startanswer, \stopAnswer with \stopanswer ... 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-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________