From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74702 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 12:02:07 +0100 Message-ID: <4F48BFAF.3070909@gyza.cz> References: <4F4775A9.8010502@gyza.cz> <4F480809.4090805@wxs.nl> <4F480CED.1010800@gyza.cz> Reply-To: Jaroslav Hajtmar , 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 1330167779 14080 80.91.229.3 (25 Feb 2012 11:02:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 25 Feb 2012 11:02:59 +0000 (UTC) Cc: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Feb 25 12:02:58 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 1S1FOw-0005FZ-HD for gctc-ntg-context-518@m.gmane.org; Sat, 25 Feb 2012 12:02:54 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D4CD8CB259; Sat, 25 Feb 2012 12:02:53 +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 CEh+TnC1JEAw; Sat, 25 Feb 2012 12:02:51 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 63546CB253; Sat, 25 Feb 2012 12:02:51 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 603CACB253 for ; Sat, 25 Feb 2012 12:02:49 +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 Mco90jHbDPTn for ; Sat, 25 Feb 2012 12:02:47 +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 C0419CB251 for ; Sat, 25 Feb 2012 12:02:47 +0100 (CET) Original-Received: from psi2.forpsi.com (smtpa.forpsi.com [81.2.195.204]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q1PB2inE024009 for ; Sat, 25 Feb 2012 12:02:45 +0100 Original-Received: (qmail 8373 invoked by uid 89); 25 Feb 2012 11:02:43 -0000 Original-Received: from unknown (HELO ?192.168.20.101?) (hajtmar@88.103.230.14) by psi02 with ESMTPA; 25 Feb 2012 11:02:43 -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: 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: 05GCb2Jf7 - 78006bc54c93 - 20120225 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:74702 Archived-At: Thanx Wolfgang for reply, but it does not work still. I am sending example whitch works in ConTeXt MKIV in TeXlive 2011, but = does not work in standalone MKIV (minimals). Command \writebetweenlist probably works differently than the previous = version. Here is minimal example: \setupinteraction[state=3Dstart] \definehead[Ikap][section] \definehead[IIkap][subsection] \definecombinedlist[dpcontent][Ikap, IIkap][criterium=3Dall] \def\SECTION[#1] #2\par{{\csname#1kap\endcsname{#2}}\par} \def\RSECTION[#1][#2] #3\par{\reference[#2]{#3}% \writebetweenlist[Ikap][location=3Dhere]{\blank}% \writebetweenlist[#1kap][location=3Dhere]{\hskip2em {\bf = \ref[t][#2]} \hfill \at[#2]}% \writebetweenlist[#1kap][location=3Dhere]{\blank[small]}% \title{#3}\par% } \starttext \placedpcontent[alternative=3Db] \RSECTION[I][refsextionXXX] Section XXX \SECTION[I] Section One \SECTION[II] Subsection \SECTION[II] Subsection \SECTION[I] Section One \SECTION[II] Subsection \SECTION[II] Subsection \RSECTION[II][refsextionYYY] Section YYY \SECTION[I] Subsection \SECTION[II] Subsection \SECTION[I] Section Two \SECTION[II] Subsection \SECTION[II] Subsection \SECTION[I] Section Three \stoptext Dne 25.2.2012 8:24, Wolfgang Schuster napsal(a): > Am 24.02.2012 um 23:19 schrieb Jaroslav Hajtmar: > > = >> Thanks Hans >> for the reply. Can you please advise where to stop this group? >> That is where to put \endgroup? >> I can not find this place=85 >> = > You don=92t \endgroup because it=92s are lady in \strc_lists_inject_yes b= ut the \begingroup > has to be at at another place (see below): > > \def\strc_lists_write_between[#tag][#settings]#command% we can overload l= ocation > {\doif{\namedlistparameter{#tag}\c!state}\v!start > %{\strc_lists_inject_yes[#tag][#settings,\c!type=3D\s!command][\s!co= mmand=3D{#command}]}} > {\begingroup\strc_lists_inject_yes[#tag][#settings,\c!type=3D\s!com= mand][\s!command=3D{#command}]}} > > 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 ___________________________________________________________________________= ________