From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/64504 Path: news.gmane.org!not-for-mail From: Marco Pessotto Newsgroups: gmane.comp.tex.context Subject: Re: writebetweenlist regression (mkiv) Date: Tue, 14 Dec 2010 10:26:16 +0100 Message-ID: <87k4jcyabr.fsf@universe.krase.net> References: <87zktjtqw3.fsf@universe.krase.net> <98F77031-B60B-46C2-9A28-E9EEAB3507DC@st.estfiles.de> <4D069A38.3030900@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1292318817 26035 80.91.229.12 (14 Dec 2010 09:26:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 14 Dec 2010 09:26:57 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 14 10:26:53 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 1PSR9o-00065q-Bu for gctc-ntg-context-518@m.gmane.org; Tue, 14 Dec 2010 10:26:52 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C6251CA8E5; Tue, 14 Dec 2010 10:26:51 +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 RHLWdbDZCzDS; Tue, 14 Dec 2010 10:26:48 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 12416CA8E0; Tue, 14 Dec 2010 10:26:48 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A8603CA8E0 for ; Tue, 14 Dec 2010 10:26: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 QuuWZ6UXpZ0y for ; Tue, 14 Dec 2010 10:26:34 +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 D0E11CA8DA for ; Tue, 14 Dec 2010 10:26:34 +0100 (CET) Original-Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oBE9QXfR011059 for ; Tue, 14 Dec 2010 10:26:34 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PSR9S-0005ys-VV for ntg-context@ntg.nl; Tue, 14 Dec 2010 10:26:30 +0100 Original-Received: from 78-2-1-67.adsl.net.t-com.hr ([78.2.1.67]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 Dec 2010 10:26:30 +0100 Original-Received: from melmothx by 78-2-1-67.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 Dec 2010 10:26:30 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 96 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 78-2-1-67.adsl.net.t-com.hr User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:GLSQ75g1mgmrY4M+7iggqvBqz8U= X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=80.91.229.12; country=NO; latitude=62.0000; longitude=10.0000; http://maps.google.com/maps?q=62.0000,10.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0eDGVqxbE - 84ad78b71444 - 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:64504 Archived-At: 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 Bests -- Marco ___________________________________________________________________________________ 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 ___________________________________________________________________________________