From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/64509 Path: news.gmane.org!not-for-mail From: Steffen Wolfrum Newsgroups: gmane.comp.tex.context Subject: Re: writebetweenlist regression (mkiv) Date: Tue, 14 Dec 2010 11:37:09 +0100 Message-ID: <8C09623A-C4A1-47A1-A944-0621FF77DC20@st.estfiles.de> References: <87zktjtqw3.fsf@universe.krase.net> <98F77031-B60B-46C2-9A28-E9EEAB3507DC@st.estfiles.de> <4D069A38.3030900@wxs.nl> <87k4jcyabr.fsf@universe.krase.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1292323066 15742 80.91.229.12 (14 Dec 2010 10:37:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 14 Dec 2010 10:37:46 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 14 11:37:43 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PSSGL-0003Lk-Dh for gctc-ntg-context-518@m.gmane.org; Tue, 14 Dec 2010 11:37:41 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7448ECA8EA; Tue, 14 Dec 2010 11:37:37 +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 m-cpnBYmrWr3; Tue, 14 Dec 2010 11:37:25 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9B053CA8ED; Tue, 14 Dec 2010 11:37:25 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BC69DCA8ED for ; Tue, 14 Dec 2010 11:37:20 +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 DLAKGa-RdVXv for ; Tue, 14 Dec 2010 11:37:17 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id D788FCA8EA for ; Tue, 14 Dec 2010 11:37:17 +0100 (CET) Original-Received: from smtprelay03.ispgateway.de (smtprelay03.ispgateway.de [80.67.18.15]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oBEAbAjd013568 for ; Tue, 14 Dec 2010 11:37:17 +0100 Original-Received: from [89.247.117.49] (helo=[192.168.1.4]) by smtprelay03.ispgateway.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1PSSFq-0005by-4Z for ntg-context@ntg.nl; Tue, 14 Dec 2010 11:37:10 +0100 In-Reply-To: <87k4jcyabr.fsf@universe.krase.net> X-Mailer: Apple Mail (2.1082) X-Df-Sender: 698580 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=80.67.18.15; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0eDGWBavk - 1ff90692348e - 20101214 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 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:64509 Archived-At: Am 14.12.2010 um 10:26 schrieb Marco Pessotto: > Hans Hagen writes: > >> On 13-12-2010 11:20, Steffen Wolfrum wrote: >>> >>> Am 08.11.2010 um 23:03 schrieb Marco: >>> >>>> >>>> Hello there. >>>> >>>> Currently \writebetweenlist doesn't work as advised. It inserts the >>>> argument before the last entry of the list. The minimal example is >>>> provided by the reference itself. >>>> >>>> http://wiki.contextgarden.net/Reference/en/writebetweenlist >>>> >>>> The rule is correctly inserted at http://live.contextgarden.net/ and in >>>> the ConTeXt shipped with TeXlive 2010 (2010.05.24), but not with the >>>> current beta and the 2010.07.30 version. mkii works fine. >>>> >>>> It prints >>>> >>>> --rule-- >>>> List entry A >>>> List entry B >>> >>> Unfortunately, I can confirm this with current version: >>> >>> ver: 2010.12.12 17:06 MKIV >>> >>> Help please! >> >> There is a good reason for this. Inbetween has multiple usage and >> these are conflicting: >> >> - in order to get the right page info associated it needs to be >> anchored in the text stream >> - in that case a node can interfere with spacing and can come unexpected >> - sometimes direct flushing is needed, sometimes delayed >> >> btw, all these issues have been observed by users every now and then >> >> Now, if unexpected interference is the hardest to track down, >> inbetween is an immediate action. In principle one can influence that >> but it's not that intuitive. So, I've now added an option to (1) the >> flushers and (2) the list placers. >> >> The following example shows this: >> >> \definelist[testlist][criterium=all] >> >> \starttext >> >> Regular list entries are bound to a specific location in order to >> get the right pagenumber etc.\ associated. When pushing something >> inbetween (in mkiv) it ends up directtly in the list. This is the >> default because otherwise users will wonder why spacing might get >> messed up (due to an unseen but present node). It is possible to >> force a location by explicitly setting \type {location} to \type >> {here}. >> >> Another way to force a certain order is to set the \type {order} >> variable when placing a list. The \type {command} option only >> pushes commands into the right order, and \type {all} orders all >> entries (which might be too much). In this case no specific >> location is needed with the inbetween method. Maybe additional >> mechanisms show up some day. >> >> \subject{normal} \placelist[testlist] >> \subject{command} \placelist[testlist][order=command] >> \subject{all} \placelist[testlist][order=all] >> >> \page \input tufte >> >> \writetolist [testlist] {1} {One} >> \writebetweenlist[testlist] {\blackrule[color=red,width=\hsize]} >> >> \writebetweenlist[testlist][location=here]{\blackrule[color=blue,width=\hsize]} >> \writetolist [testlist] {2} {Second} >> \writetolist [testlist][location=none]{W} {Whatever} >> \writebetweenlist[testlist] {\blackrule[color=green,width=\hsize]} >> >> \stoptext >> >> I admit that it's not an easy mechanism but any default would at some >> point trigger complaints. So it probably needs to be wikified. >> >> Hans >> > > Thanks for this. It's been wikified in the reference wiki: > http://wiki.contextgarden.net/Reference/en/writebetweenlist Thank you Hans for that extension and thank you Marco for prompt wikifying! Steffen ___________________________________________________________________________________ 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 ___________________________________________________________________________________