From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74659 Path: news.gmane.org!not-for-mail From: "Thomas A. Schmitz" Newsgroups: gmane.comp.tex.context Subject: problem with \getparameters Date: Thu, 23 Feb 2012 09:05:51 +0100 Message-ID: <4F45F35F.6000607@uni-bonn.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1329984368 886 80.91.229.3 (23 Feb 2012 08:06:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 23 Feb 2012 08:06:08 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Feb 23 09:06:07 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 1S0Tgl-00027a-8O for gctc-ntg-context-518@m.gmane.org; Thu, 23 Feb 2012 09:06:07 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 70151CB253; Thu, 23 Feb 2012 09:06:06 +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 IhYSvAF0FkIR; Thu, 23 Feb 2012 09:05:59 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D2581CB24E; Thu, 23 Feb 2012 09:05:59 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C638ECB24E for ; Thu, 23 Feb 2012 09:05: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 4KdsJMlyoZG0 for ; Thu, 23 Feb 2012 09:05:52 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id E3EABCB24C for ; Thu, 23 Feb 2012 09:05:52 +0100 (CET) Original-Received: from uni-bonn.de (mail.uni-bonn.de [131.220.15.113]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q1N85qEs022131 for ; Thu, 23 Feb 2012 09:05:52 +0100 Original-Received: from [93.210.229.96] (account tschmit1@uni-bonn.de HELO [192.168.0.26]) by fe2.uni-bonn.de (CommuniGate Pro SMTP 5.4.3) with ESMTPSA id 10692451 for ntg-context@ntg.nl; Thu, 23 Feb 2012 09:05:51 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20111002 Thunderbird/7.0.1 X-Bayes-Prob: 0.0012 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=131.220.15.113; country=DE; region=07; city=Bonn; latitude=50.7333; longitude=7.1000; http://maps.google.com/maps?q=50.7333,7.1000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0NGBk5QUc - e157723e90aa - 20120223 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 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:74659 Archived-At: Hi all, I'm trying to use \getparameters, but I'm doing it wrong. What I want to do is: define an environment which starts linenumbering and takes a key=value argument to define the start of the numbers. Here's what I tried (I also tried a few other things, such as \setvariables, but wasn't any more successful): \definestartstop[mynumberedblockquote] [before={\blank[line] \setupindenting[no] \setuplinenumbering[width=1cm,start=\getvalue{testsetupsstart}] \startlinenumbering}, after={\stoplinenumbering \setupindenting[yes] {\blank[line]} \par}] \def\startnumberedblockquote#1[#2]% {\getparameters[testsetups][start=1,#2]% \startmynumberedblockquote} \define\stopnumberedblockquote% {\stopmynumberedblockquote} \starttext Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. \startnumberedblockquote [start=9] Lorem ipsum dolor sit amet \stopnumberedblockquote Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, \startnumberedblockquote[start=19] consetetur sadipscing elitr sed diam \stopnumberedblockquote \stoptext But for some reason, the numbers are not local for each block. Can anybody shed some light into these (for me) dark an mysterious corners of ConTeXt? Thanks a lot! Thomas ___________________________________________________________________________________ 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 ___________________________________________________________________________________