From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/75955 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Bug with linenumbering Date: Thu, 3 May 2012 11:18:50 -0400 (EDT) Message-ID: References: <4FA0F0B8.4040301@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-826943942-1336058331=:1834" X-Trace: dough.gmane.org 1336058346 17747 80.91.229.3 (3 May 2012 15:19:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 3 May 2012 15:19:06 +0000 (UTC) Cc: mailing list for ConTeXt users To: Wolfgang Schuster Original-X-From: ntg-context-bounces@ntg.nl Thu May 03 17:19:05 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SPxo8-00023u-6d for gctc-ntg-context-518@m.gmane.org; Thu, 03 May 2012 17:19:04 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6FB5A101E3; Thu, 3 May 2012 17:19:03 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id uv0zt6JujW6n; Thu, 3 May 2012 17:19:01 +0200 (CEST) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4D230101E0; Thu, 3 May 2012 17:19:01 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2B44B101E0 for ; Thu, 3 May 2012 17:19:00 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id qWL-2nnXe2HI for ; Thu, 3 May 2012 17:18:56 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 15CF1101CF for ; Thu, 3 May 2012 17:18:55 +0200 (CEST) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q43FIjj3030906 for ; Thu, 3 May 2012 17:18:47 +0200 Original-Received: FROM adi-netbook (bas3-montreal02-1096682554.dsl.bell.ca [65.94.12.58]) By hackers.mr.itd.umich.edu ID 4FA2A1DB.7C495.3614 ; Authuser adityam; 3 May 2012 11:18:51 EDT In-Reply-To: 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.14.81; country=US; region=TX; city=Ladonia; postalcode=75449; latitude=33.4261; longitude=-95.9709; metrocode=623; areacode=903; http://maps.google.com/maps?q=33.4261,-95.9709&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WH5riKh9 - 0466759f6fa4 - 20120503 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 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:75955 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-826943942-1336058331=:1834 Content-Type: TEXT/PLAIN; charset=windows-1252; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Thu, 3 May 2012, Wolfgang Schuster wrote: > You assume \definelinenumbering has a second argument for the settings bu= t this isn=92t the case D'oh. > and you need \setuplinenumbering to set them. I also needed to change \setvalue to \setevalue in the example, and add an= =20 \expanded to get it to work. \definenamespace [whatever] [ type=3Dmodule, name=3Dwhatever, command=3Dyes, setup=3Dyes, parent=3Dwhatever, ] \appendtoks \definelinenumbering [\currentwhatever]% \expanded{\setuplinenumbering [\currentwhatever] [ color=3D\whateverparameter{numbercolor}, style=3D\whateverparameter{numberstyle}, ]}% \setevalue{start\currentwhatever}{\dostartwhatever[\currentwhatever]}% \setevalue{stop\currentwhatever}{\dostopwhatever}% \to\everydefinewhatever % For illustration. The actual macro is more complicated. \def\dostartwhatever[#1]% {\startlinenumbering[#1]} \def\dostopwhatever {\stoplinenumbering} %%%% \definewhatever[testing][numbercolor=3Dred,numberstyle=3Dbold] \starttext \starttesting \input knuth \stoptesting \stoptext Thanks, Aditya --8323328-826943942-1336058331=:1834 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-826943942-1336058331=:1834--