From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74712 Path: news.gmane.org!not-for-mail From: Jaroslav Hajtmar Newsgroups: gmane.comp.tex.context Subject: Re: Problem with \writebetweenlist Date: Sat, 25 Feb 2012 18:55:23 +0100 Message-ID: <4F49208B.60800@gyza.cz> References: <4F4775A9.8010502@gyza.cz> <4F480809.4090805@wxs.nl> <4F480CED.1010800@gyza.cz> <4F48BFAF.3070909@gyza.cz> <52B0A934-BE34-4465-99BB-67B3E25BC0CD@googlemail.com> Reply-To: hajtmar@gyza.cz, mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1330192585 4503 80.91.229.3 (25 Feb 2012 17:56:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 25 Feb 2012 17:56:25 +0000 (UTC) Cc: mailing list for ConTeXt users To: Wolfgang Schuster Original-X-From: ntg-context-bounces@ntg.nl Sat Feb 25 18:56:24 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 1S1Lr5-0002OU-7C for gctc-ntg-context-518@m.gmane.org; Sat, 25 Feb 2012 18:56:23 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 52BDCCB25F; Sat, 25 Feb 2012 18:56:22 +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 az+MDlaTREMM; Sat, 25 Feb 2012 18:56:18 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 17005CB251; Sat, 25 Feb 2012 18:56:18 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CDD51CB251 for ; Sat, 25 Feb 2012 18:56:16 +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 8K4lZTA+i-ZJ for ; Sat, 25 Feb 2012 18:56:06 +0100 (CET) Original-Received: from filter5-ams.mf.surf.net (filter5-ams.mf.surf.net [192.87.102.73]) by balder.ntg.nl (Postfix) with ESMTP id 0FF10CB236 for ; Sat, 25 Feb 2012 18:56:05 +0100 (CET) Original-Received: from psi3.forpsi.com (smtpa.forpsi.com [81.2.195.204]) by filter5-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q1PHxZio004807 for ; Sat, 25 Feb 2012 18:59:35 +0100 Original-Received: (qmail 780 invoked by uid 89); 25 Feb 2012 17:56:01 -0000 Original-Received: from unknown (HELO ?192.168.20.101?) (hajtmar@88.103.230.14) by psi03 with ESMTPA; 25 Feb 2012 17:56:01 -0000 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; cs; rv:1.9.1.8) Gecko/20100216 Thunderbird/3.0.2 In-Reply-To: <52B0A934-BE34-4465-99BB-67B3E25BC0CD@googlemail.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=81.2.195.204; country=CZ; latitude=49.7500; longitude=15.5000; http://maps.google.com/maps?q=49.7500,15.5000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0IGChXzfx - c678cc69371f - 20120225 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.73 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:74712 Archived-At: Thanx Wolfgang for your help. I made changes according to your instructions, but it does not work still. I can not even translate the example of what I sent last time to the = mailing list. It is needed in addition to changes in the shove-lst.mkvi do something = (eg any context database files refresh, etc. .. what I know)? Or what I doing wrong? Thanx Jaroslav Hajtmar Dne 25.2.2012 17:52, Wolfgang Schuster napsal(a): > 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 a= nd works. > > \def\strc_lists_write_between[#tag][#settings]#command% we can overload l= ocation > {\begingroup > \edef\currentlist{#tag}% > \doifelse{\namedlistparameter{#tag}\c!state}\v!start > {\strc_lists_inject_yes[#settings,\c!type=3D\s!command][command=3D{= #command}]} > {\endgroup}} > > \def\strc_lists_write_to_yes[#settings]#first#second% > {\strc_lists_inject_yes[\c!location=3D\v!here,#settings,\c!type=3D\s!s= imple][first=3D{#first},second=3D{#second}]} > > @Hans The =93\s!=94 prefix for first, second and command can=92t be used = because 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 ___________________________________________________________________________= ________