From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/32096 Path: news.gmane.org!not-for-mail From: "Idris Samawi Hamid" Newsgroups: gmane.comp.tex.context Subject: Re: \head and pagebreak Date: Mon, 11 Dec 2006 10:52:44 -0700 Organization: Colorado State University Message-ID: References: <457D48BB.5000102@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1165859620 16916 80.91.229.10 (11 Dec 2006 17:53:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 11 Dec 2006 17:53:40 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Dec 11 18:53:37 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by dough.gmane.org with esmtp (Exim 4.50) id 1GtpLH-0001lj-G2 for gctc-ntg-context-518@m.gmane.org; Mon, 11 Dec 2006 18:53:31 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5CA9E1FF40; Mon, 11 Dec 2006 18:50:08 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 27616-05; Mon, 11 Dec 2006 18:50:01 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 186831FF45; Mon, 11 Dec 2006 18:50:01 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DAE2A1FF4E for ; Mon, 11 Dec 2006 18:49:58 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 27699-03-6 for ; Mon, 11 Dec 2006 18:49:53 +0100 (CET) Original-Received: from trueband.net (trueband.net [216.163.120.10]) by ronja.ntg.nl (Postfix) with SMTP id A304D1FF40 for ; Mon, 11 Dec 2006 18:49:42 +0100 (CET) Original-Received: (qmail 8802 invoked by uid 1006); 11 Dec 2006 17:53:02 -0000 Original-Received: from ishamid@colostate.edu by rs0 by uid 1003 with qmail-scanner-1.16 (spamassassin: 3.1.4. Clear:SA:0(0.0/100.0):. Processed in 2.827688 secs); 11 Dec 2006 17:53:02 -0000 Original-Received: from unknown (HELO trueband.net) (172.16.0.5) by -v with SMTP; 11 Dec 2006 17:52:59 -0000 Original-Received: (qmail 29494 invoked from network); 11 Dec 2006 17:52:55 -0000 Original-Received: from unknown (HELO walayah-main) (67.54.131.34) by -v with SMTP; 11 Dec 2006 17:52:55 -0000 Original-To: "mailing list for ConTeXt users" In-Reply-To: <457D48BB.5000102@wxs.nl> User-Agent: Opera Mail/9.02 (Win32) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:32096 Archived-At: On Mon, 11 Dec 2006 05:02:03 -0700, Hans Hagen wrote: >>> Is there a way to absolutely forbid a pagebreak between \head and its >>> following paragraph? [intro] tries hard but sometimes fails. I tried >>> >>> \setupitemize[each] [inmargin,autointro] >>> \setuptolerance[vertical,stretch] >>> >>> but I still get pagebreaks. >>> >> >> One problem that occurs is the following: >> >> ================= >> \head text >> >> \index{more text}{more text} >> ================= >> >> If there is a page break after \head then in the index 'more text' will >> be >> listed as ocurring on page n when in fact it occurs on page n+1. This >> makes the problem that much more urgent:-) >> >> > head text\index{...} But I want the indexed entry to be registered in the second paragraph eg ================= \head Asani, Ali S. \index{The Bujh Niranjan: An Ismaili Mystical Poem}{\bf The Bujh Niranjan: An Ismaili Mystical Poem}, Cambridge, Mass: Harvard University Press, 1991. ================= if I do ================= \head Asani, Ali S.\index{The Bujh Niranjan: An Ismaili Mystical Poem} {\bf The Bujh Niranjan: An Ismaili Mystical Poem}, Cambridge, Mass: Harvard University Press, 1991. ================= That just compounds the problem. EUREKA! I just found something that seems to work: \leavemode\index When I do this there no pagebreaks after \head at all. I wonder why this affects the pagebreaks... What is the proper way to define my own \INDEX in terms of index? \def\INDEX#1#2#3{\leavevmode\index[#1]{#2}{#3}} does not work properly (maybe because the [] option is not always used). Best Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/