From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/70403 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Runaway argument with \stoptabulate in a macro Date: Wed, 3 Aug 2011 09:50:56 -0400 (EDT) Message-ID: References: <01B035F5-0488-446B-B26D-2213AA219EBE@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-1582885273-1312379459=:20717" X-Trace: dough.gmane.org 1312379397 26161 80.91.229.12 (3 Aug 2011 13:49:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 3 Aug 2011 13:49:57 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 03 15:49:52 2011 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 1QobpX-0007td-5w for gctc-ntg-context-518@m.gmane.org; Wed, 03 Aug 2011 15:49:51 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EDABACAEB5; Wed, 3 Aug 2011 15:49:50 +0200 (CEST) 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 ERuN1PYV-ggV; Wed, 3 Aug 2011 15:49:48 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1048ECAEAC; Wed, 3 Aug 2011 15:49:48 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CAE52CAEAC for ; Wed, 3 Aug 2011 15:49:46 +0200 (CEST) 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 76gPirPLt1aA for ; Wed, 3 Aug 2011 15:49:44 +0200 (CEST) Original-Received: from filter1-nij.mf.surf.net (filter1-nij.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id BC1F2CAE73 for ; Wed, 3 Aug 2011 15:49:44 +0200 (CEST) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.12.86]) by filter1-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p73DnghL011637 for ; Wed, 3 Aug 2011 15:49:43 +0200 Original-Received: FROM adi-netbook (bas3-montreal02-1096680814.dsl.bell.ca [65.94.5.110]) By tombraider.mr.itd.umich.edu ID 4E3951F4.AF8E3.11659 ; Authuser adityam; 3 Aug 2011 09:49:40 EDT In-Reply-To: <01B035F5-0488-446B-B26D-2213AA219EBE@googlemail.com> User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.12.86; 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: 07FfNNGn4 - 29fc7d1d9ff9 - 20110803 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.152 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:70403 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-1582885273-1312379459=:20717 Content-Type: TEXT/PLAIN; charset=windows-1252; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Wed, 3 Aug 2011, Wolfgang Schuster wrote: > > Am 03.08.2011 um 13:25 schrieb Cecil Westerhof: > >> I have the following code: >> >> [=85] >> >> When I put a \stoptabulate after \StopWorkTable it compiles as expected.= But why does the \stoptabulate in \StopWorkTable not work? > > This is a limitation of the way how tabulate is written. When you want to= put a table in macros use \starttable or \bTABLE. An alternative is to capture the content in tokens: \newtoks\WorkTableToks \define[2]\StartWorkTable{ \myblank[2*big] \WorkTableToks {\starttabulate[|w(.1\textwidth)|p(.9\textwidth)|] \HL \NC #1 \NC #2 \NC\NR \HL \NC \NC {\bf Gedaan} \NC\NR} } \define[1]\ActivityWorkTable{ \appendtoks \NC \NC \bullet\space #1 \NC\NR \to\WorkTableToks } \define\StopWorkTable{ \appendtoks \HL \stoptabulate \to\WorkTableToks \the\WorkTableToks } --8323328-1582885273-1312379459=:20717 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --8323328-1582885273-1312379459=:20717--