From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74711 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Problem with \writebetweenlist Date: Sat, 25 Feb 2012 17:52:37 +0100 Message-ID: <52B0A934-BE34-4465-99BB-67B3E25BC0CD@googlemail.com> References: <4F4775A9.8010502@gyza.cz> <4F480809.4090805@wxs.nl> <4F480CED.1010800@gyza.cz> <4F48BFAF.3070909@gyza.cz> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1330188770 25073 80.91.229.3 (25 Feb 2012 16:52:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 25 Feb 2012 16:52:50 +0000 (UTC) Cc: Hans Hagen To: Jaroslav Hajtmar , mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Feb 25 17:52:48 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 1S1KrW-00064l-Vk for gctc-ntg-context-518@m.gmane.org; Sat, 25 Feb 2012 17:52:47 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 783B5CB263; Sat, 25 Feb 2012 17:52:46 +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 gk6R1k3j04El; Sat, 25 Feb 2012 17:52:44 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0F931CB256; Sat, 25 Feb 2012 17:52:44 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C8C29CB256 for ; Sat, 25 Feb 2012 17:52:42 +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 t69EMX8dyL2e for ; Sat, 25 Feb 2012 17:52:41 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 2EF38CB251 for ; Sat, 25 Feb 2012 17:52:41 +0100 (CET) Original-Received: from mail-ey0-f169.google.com (mail-ey0-f169.google.com [209.85.215.169]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q1PGqeY2029852 for ; Sat, 25 Feb 2012 17:52:40 +0100 Original-Received: by eaag11 with SMTP id g11so2520231eaa.14 for ; Sat, 25 Feb 2012 08:52:40 -0800 (PST) Received-SPF: pass (google.com: domain of schuster.wolfgang@googlemail.com designates 10.14.94.202 as permitted sender) client-ip=10.14.94.202; Authentication-Results: mr.google.com; spf=pass (google.com: domain of schuster.wolfgang@googlemail.com designates 10.14.94.202 as permitted sender) smtp.mail=schuster.wolfgang@googlemail.com; dkim=pass header.i=schuster.wolfgang@googlemail.com Original-Received: from mr.google.com ([10.14.94.202]) by 10.14.94.202 with SMTP id n50mr4048987eef.65.1330188760341 (num_hops = 1); Sat, 25 Feb 2012 08:52:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=Z+dBrZMtuShLmNTtxPfGTV6Bj+vg+atZpMOW5Jam71E=; b=tJWttqWdlQbDiZ50I51eUMwfEOeu9iWP7q6JX+kkvw24zWEO99qb6jgC28ODwiP9t6 eCa5IJu8L4+N5T/zCD7QNhmCgN1DmqhvTuM1kjjK6EP3Wr67oXCR0CRu9SJurcyrj0u+ 2i0Bnzei6s80DfePI3I398ArfSzAtzSovzo4Y= Original-Received: by 10.14.94.202 with SMTP id n50mr3053078eef.65.1330188760248; Sat, 25 Feb 2012 08:52:40 -0800 (PST) Original-Received: from [192.168.2.36] (p57AFA88D.dip.t-dialin.net. [87.175.168.141]) by mx.google.com with ESMTPS id n17sm33620767eei.3.2012.02.25.08.52.38 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 25 Feb 2012 08:52:39 -0800 (PST) In-Reply-To: <4F48BFAF.3070909@gyza.cz> X-Mailer: Apple Mail (2.1257) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.215.169; 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: 05GCgQE1u - c31b2b42e321 - 20120225 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 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:74711 Archived-At: Am 25.02.2012 um 12:02 schrieb Jaroslav Hajtmar: > Thanx Wolfgang > for reply, but it does not work still. I was in a hurry and had no time to test it but the following is tested and= works. \def\strc_lists_write_between[#tag][#settings]#command% we can overload loc= ation {\begingroup \edef\currentlist{#tag}% \doifelse{\namedlistparameter{#tag}\c!state}\v!start {\strc_lists_inject_yes[#settings,\c!type=3D\s!command][command=3D{#co= mmand}]} {\endgroup}} \def\strc_lists_write_to_yes[#settings]#first#second% {\strc_lists_inject_yes[\c!location=3D\v!here,#settings,\c!type=3D\s!simp= le][first=3D{#first},second=3D{#second}]} @Hans The =93\s!=94 prefix for first, second and command can=92t be used be= cause otherwise the keys end up as =93\\s!first =94 in Lua table index. Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________