From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74703 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:23:00 +0100 Message-ID: <4F48C494.1000002@gyza.cz> References: <4F4775A9.8010502@gyza.cz> <4F480809.4090805@wxs.nl> <4F480CED.1010800@gyza.cz> <4F48BFAF.3070909@gyza.cz> 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 1330169037 21856 80.91.229.3 (25 Feb 2012 11:23:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 25 Feb 2012 11:23:57 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat Feb 25 12:23:56 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 1S1FjG-0000EF-WB for gctc-ntg-context-518@m.gmane.org; Sat, 25 Feb 2012 12:23:55 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EEBF7CB251; Sat, 25 Feb 2012 12:23: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 5GHhPx-OD70r; Sat, 25 Feb 2012 12:23:53 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 60A3BCB253; Sat, 25 Feb 2012 12:23:51 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F29F3CB253 for ; Sat, 25 Feb 2012 12:23:50 +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 MYMtwt5sI2BU for ; Sat, 25 Feb 2012 12:23:39 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 75EE2CB251 for ; Sat, 25 Feb 2012 12:23:39 +0100 (CET) Original-Received: from psi3.forpsi.com (smtpa.forpsi.com [81.2.195.204]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q1PBNcXp011428 for ; Sat, 25 Feb 2012 12:23:38 +0100 Original-Received: (qmail 18172 invoked by uid 89); 25 Feb 2012 11:23:36 -0000 Original-Received: from unknown (HELO ?192.168.20.101?) (hajtmar@88.103.230.14) by psi03 with ESMTPA; 25 Feb 2012 11:23:36 -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: <4F48BFAF.3070909@gyza.cz> 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: 0LGCbnCrE - 2bb476691118 - 20120225 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 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:74703 Archived-At: Just one a notice. Using the standalone version can not be resolved even Hans's example in = wikipedia at http://wiki.contextgarden.net/Reference/en/writebetweenlist Jaroslav Hajtmar Dne 25.2.2012 12:02, Jaroslav Hajtmar napsal(a): > 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 = >> but the \begingroup >> has to be at at another place (see below): >> >> \def\strc_lists_write_between[#tag][#settings]#command% we can = >> overload location >> {\doif{\namedlistparameter{#tag}\c!state}\v!start >> = >> %{\strc_lists_inject_yes[#tag][#settings,\c!type=3D\s!command][\s!comman= d=3D{#command}]}} = >> >> = >> {\begingroup\strc_lists_inject_yes[#tag][#settings,\c!type=3D\s!command]= [\s!command=3D{#command}]}} = >> >> >> Wolfgang > > _________________________________________________________________________= __________ = > > 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 > _________________________________________________________________________= __________ = > > ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________