From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/63655 Path: news.gmane.org!not-for-mail From: Glen Callaghan Newsgroups: gmane.comp.tex.context Subject: Defining a command for enumeration+block Date: Thu, 18 Nov 2010 11:15:17 +0000 Message-ID: <76D14C57-6F3E-4305-A3EF-C21D563D2F83@emsolutions.com.au> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1290079039 17016 80.91.229.12 (18 Nov 2010 11:17:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 18 Nov 2010 11:17:19 +0000 (UTC) To: "ntg-context@ntg.nl" Original-X-From: ntg-context-bounces@ntg.nl Thu Nov 18 12:17:10 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PJ2UI-0002rd-Gv for gctc-ntg-context-518@m.gmane.org; Thu, 18 Nov 2010 12:17:10 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BA077CA855; Thu, 18 Nov 2010 12:17:09 +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 TJDrKmEDKiMF; Thu, 18 Nov 2010 12:17:06 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 261A2CA84E; Thu, 18 Nov 2010 12:17:06 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2EE22CA84E for ; Thu, 18 Nov 2010 12:17:04 +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 e1LMwQZpLBqN for ; Thu, 18 Nov 2010 12:17:01 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 627F9CA84C for ; Thu, 18 Nov 2010 12:17:01 +0100 (CET) Original-Received: from FILE01.em.emsolutions.com.au (mail.emsolutions.com.au [203.185.231.72]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oAIBFN4o032611 for ; Thu, 18 Nov 2010 12:15:27 +0100 Original-Received: from FILE01.em.emsolutions.com.au ([::1]) by FILE01.em.emsolutions.com.au ([::1]) with mapi; Thu, 18 Nov 2010 21:15:19 +1000 Thread-Topic: Defining a command for enumeration+block Thread-Index: AQHLhxHhFePczJAoC0epNNP7UOoLnQ== Accept-Language: en-AU, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-ID: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=203.185.231.72; country=AU; region=04; city=Newstead; latitude=-27.4444; longitude=153.0444; http://maps.google.com/maps?q=-27.4444,153.0444&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0rDwzfoSx - 033d279d30d6 - 20101118 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:63655 Archived-At: Hello, I'm having some problems using blocks and enumeration together. I can get it to work using something like this (see complete minimal example further down): \beginBlock \startEnum Some text A \stopEnum \endBlock But it doesn't seem to work if I try to define a command (macro?) to keep my source file a bit tidier. \define[1]\Revs{ \beginBlock \startEnum #1 \stopEnum \endBlock } \Revs{Missing Text B} I don't get any output from the call \Revs. No doubt I'm doing something silly...... I've also noticed that it breaks if I put the \beginBlock \startEnum commands on the same line, as in: \beginBlock \startEnum Some text A \stopEnum \endBlock I've been trying this on TeX Live 2010. thanks Glen --------- \defineblock[Block] \defineenumeration[Enum][location=left,text=Test] \define[1]\Revs{ \beginBlock \startEnum #1 \stopEnum \endBlock } \starttext \section{Use} \useblocks[Block] \reset[Enum] \section{Define} \beginBlock \startEnum Some text A \stopEnum \endBlock \Revs{Missing Text B} \stoptext ___________________________________________________________________________________ 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 ___________________________________________________________________________________