From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/76853 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: preventing page breaks after headings Date: Sun, 10 Jun 2012 21:13:38 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1339355738 21516 80.91.229.3 (10 Jun 2012 19:15:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 10 Jun 2012 19:15:38 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jun 10 21:15:35 2012 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 1Sdna7-0006Ra-LB for gctc-ntg-context-518@m.gmane.org; Sun, 10 Jun 2012 21:13:47 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5E782101E4; Sun, 10 Jun 2012 21:13:47 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id D5BdgMWiFS-7; Sun, 10 Jun 2012 21:13:45 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D92DE101DF; Sun, 10 Jun 2012 21:13:45 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CE171101DF for ; Sun, 10 Jun 2012 21:13:44 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id H8kJ5MvL+nRo for ; Sun, 10 Jun 2012 21:13:43 +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 7CA32101DD for ; Sun, 10 Jun 2012 21:13:43 +0200 (CEST) Original-Received: from mail-we0-f169.google.com (mail-we0-f169.google.com [74.125.82.169]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q5AJDgkZ030101 for ; Sun, 10 Jun 2012 21:13:43 +0200 Original-Received: by wefh52 with SMTP id h52so2226908wef.14 for ; Sun, 10 Jun 2012 12:13:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=iQC7z2oLjgUVA7gO4R4sDYjkcfcq3n0v3ZLYIM/0ifw=; b=HFifRPodJ7ICg7tEB8klUWPoTTvT1DKiHA7ObXAD7eVVYjYcRS/OMJYqcf2Hqp1G4B LKtPeTL1WuxuBWKXO1blTDe/vJUV9aGYO65KwhA85gipCCOsM+4h+Sg40Z5Cxuc/RAh2 Ve45mqedG50pKx1v8G8OaCbuzXM+djPrDxNIGhwcPxbzKfoA7NDlL7Ge2+DNkeGwTcbs JgtYtGAhfjDU7cyxyc6Y7YmVHf6XvzEYpEaQTlYHSnvgjYwo6F4o5fnvgzMp+LCAM8Vl HCKD3Nd+ru1F4ix/rNRxi8WkQlXJBe7Y8eUnqnamdJzV7Ltqo8v00nQh+G/NBgT3s9aO 340A== Original-Received: by 10.180.106.137 with SMTP id gu9mr15264357wib.8.1339355621916; Sun, 10 Jun 2012 12:13:41 -0700 (PDT) Original-Received: from [192.168.2.36] (p57AFA29F.dip.t-dialin.net. [87.175.162.159]) by mx.google.com with ESMTPS id e20sm18925517wiv.7.2012.06.10.12.13.39 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 10 Jun 2012 12:13:40 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1278) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.82.169; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0NHkHdGfb - 9bcd2ab4cf9d - 20120610 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.13 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:76853 Archived-At: Am 10.06.2012 um 20:52 schrieb Alan Bowen: > Is there a way in MKII to ensure that there is never a page break between= a heading and the following text? = > = > \setuphead[after=3D{\page[no]}] does not seem to work without entering ve= rtical mode before \page. But, so far, I have not found a way to enter vert= ical mode in after=3D{=85} that does not add interlinespace and thus place = the text too far from the heading. > = > Any suggestion or alternatives? Do you have a example where you get an unwanted page break because context = tries to prevent it. When you can=92t make one in a short time try one of the following methods: 1. Insert a page break before the heading when not enough space is availabl= e. \setuphead[=85][before=3D{\testpage[6]\blank[=85]}] 2. Add a big penalty before the vertical space after the heading (don=92t u= se this method in mkiv). \setuphead[=85][after=3D{\nobreak\blank[=85]}] Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________