From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82467 Path: news.gmane.org!not-for-mail From: Zenlima Newsgroups: gmane.comp.tex.context Subject: [***SPAM***] unwanted space and error in combination of writebetweenlist and placecontent[criterium= local] Date: Mon, 13 May 2013 02:00:44 +0200 Message-ID: <20130513020044.4ec9c721@zenlima.eu> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1368403500 16300 80.91.229.3 (13 May 2013 00:05:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 May 2013 00:05:00 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Mon May 13 02:04:57 2013 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 1UbgG8-0003yn-U7 for gctc-ntg-context-518@m.gmane.org; Mon, 13 May 2013 02:04:56 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 86EFA101EF; Mon, 13 May 2013 02:04:55 +0200 (CEST) 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 7BLMupy6viof; Mon, 13 May 2013 02:04:53 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 4AC50101E7; Mon, 13 May 2013 02:04:53 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3CDC0101E7 for ; Mon, 13 May 2013 02:04:52 +0200 (CEST) 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 49JlDV4+ntzr for ; Mon, 13 May 2013 02:04:50 +0200 (CEST) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 53183101E0 for ; Mon, 13 May 2013 02:04:40 +0200 (CEST) Original-Received: from outgoing.selfhost.de (out.selfhost.de [82.98.82.95]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r4D04d42023548 for ; Mon, 13 May 2013 02:04:39 +0200 Original-Received: (qmail 26818 invoked from network); 13 May 2013 00:04:37 -0000 Original-Received: from unknown (HELO zenlima.eu) (post@zenlima.eu@31.18.185.12) by mailout.selfhost.de with ESMTPA; 13 May 2013 00:04:37 -0000 X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.17; x86_64-pc-linux-gnu) X-Bayes-Prob: 0.9999 (Score 4.7, tokens from: @@RPTN) X-CanIt-Geo: ip=82.98.82.95; 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: 0NJzc4DeB - 15e1cda87ce0 - 20130513 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:82467 Archived-At: Hi, I ran into one error and one problem during building a part as two columns into the toc. 1. Extra line: I am getting an unwanted extra empty line at the bottom of two columns with an even number of total lines - with an odd number of total lines no extra empty line appears. How can I get rid of it? (see attached example) 2. This error only appears only with \placecontent[criterium=local] in combination with a beginning line of \writebetweenlist; with a global \placecontent and \writebetweenlist it works fine. To reproduce this uncomment the line "%\placecontent[criterium=local]" in the attached example. (Sorry that I was not able to make the example shorter, I needed some "meat" to fill the toc for the showcases) Thanks, H. --8<---------------------------- \usemodule[subsub] \definehead[paragraphHead][alternative=myheader,section=section-8,number=no] \defineheadalternative [myheader] [alternative=horizontal, renderingsetup=setup:myheader] \startsetups [setup:myheader] \inouter{\headtextcontent} \stopsetups \setuplist[chapter][style=bold,before=\blank,alternative=b,width=1.5em,color=HeadColor] \setuplist[section][margin=1.5em,width=2em] \setuplist[subsection][margin=3.5em,width=3em] \setuplist[paragraphHead][alternative=c,style=\tfx] \def\startParagraphTocColumns{% \writebetweenlist[paragraphHead][location=here]{\setupnarrower[left=2em]\startnarrower[left]\startcolumns[n=2,distance=0mm,balance=yes]}% \ignorespaces} \def\stopParagraphTocColumns{% \writebetweenlist[paragraphHead][location=here]{\stopcolumns\stopnarrower}% \ignorespaces} \starttext \setupcombinedlist[content][list={chapter,section,subsection,textdividerHead,paragraphHead}] \completecontent \startParagraphTocColumns \dorecurse{5}{\paragraphHead{Hasselt makes headlines} \input tufte} \stopParagraphTocColumns \chapter{Lorem ipsum} \section{Sed eram} \chapter{Lorem ipsum} %\placecontent[criterium=local] \section{Sed eram} \section{Sed eram} \startParagraphTocColumns \dorecurse{5}{\paragraphHead{Hasselt makes headlines} \input tufte} \stopParagraphTocColumns \section{Sed eram} \section{Sed eram} \startParagraphTocColumns \dorecurse{4}{\paragraphHead{Hasselt makes headlines} \input tufte} \stopParagraphTocColumns \section{Sed eram} \startParagraphTocColumns \dorecurse{3}{\paragraphHead{Hasselt makes headlines} \input tufte} \stopParagraphTocColumns \section{Sed eram} \section{Sed eram} \stoptext ___________________________________________________________________________________ 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 ___________________________________________________________________________________