From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/64533 Path: news.gmane.org!not-for-mail From: Marco Pessotto Newsgroups: gmane.comp.tex.context Subject: Re: How to avoid that \writetolist becomes a page-breaker Date: Tue, 14 Dec 2010 22:32:18 +0100 Message-ID: <87wrnc3usd.fsf@universe.krase.net> References: <8762uw5dm7.fsf@universe.krase.net> 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 1292362378 25576 80.91.229.12 (14 Dec 2010 21:32:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 14 Dec 2010 21:32:58 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 14 22:32:52 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 1PScUG-0000gz-4y for gctc-ntg-context-518@m.gmane.org; Tue, 14 Dec 2010 22:32:44 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4443ECA8DA; Tue, 14 Dec 2010 22:32:43 +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 VMw4e4PiNtmr; Tue, 14 Dec 2010 22:32:40 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 13BB3CA8E7; Tue, 14 Dec 2010 22:32:40 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 902FCCA8E7 for ; Tue, 14 Dec 2010 22:32:38 +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 P5u7bIdq1iin for ; Tue, 14 Dec 2010 22:32:36 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 088FCCA8DA for ; Tue, 14 Dec 2010 22:32:36 +0100 (CET) Original-Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oBELWZhJ029060 for ; Tue, 14 Dec 2010 22:32:35 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PScU5-0000YL-3h for ntg-context@ntg.nl; Tue, 14 Dec 2010 22:32:33 +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 22:32:32 +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 22:32:32 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 50 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:HBA4jwU6ZZDrs/1DNBp9cDufjsY= 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: 0rDH9wzx4 - 1d4c14f5c65b - 20101214 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:64533 Archived-At: Marco Pessotto writes: > Probably due to my abuse of \writetolist, I noticed that inserting > \writetolist right after \subject makes TeX to think that it can break > the page there without problems. > > See the following minimal example: > > %===============cut here============= > > \definelist[myrandompart] > > \starttext > > \dorecurse{12}{ > \input reich > } > \subject{\bf Wrong!} > \writetolist[myrandompart]{It's a test} > > \input knuth > > \page > > \dorecurse{12}{ > \input reich > } > \subject{\bf Correct!} > %\writetolist[myrandompart]{It's a test} > > \input knuth > > %===============cut here============= > > I'm pretty sure the solution is out there. > Some hints would be very welcome. > > Thanks in advance To answer to my own question, it looks like that \subject{\bf My title!} \dontleavehmode \writetolist[myrandompart]{}{It's a test} works. The question if is this the right thing to do, still remains, though -- 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 ___________________________________________________________________________________