From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86275 Path: news.gmane.org!not-for-mail From: "Jan Tosovsky" Newsgroups: gmane.comp.tex.context Subject: Re: Divider in grid environment Date: Thu, 13 Feb 2014 18:13:14 +0100 Message-ID: <12573.0455307805$1392311618@news.gmane.org> References: <007401cf24c9$29d030d0$7d709270$@tosovsky@email.cz> <001801cf24eb$60de9c70$229bd550$@tosovsky@email.cz> 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 1392311605 27594 80.91.229.3 (13 Feb 2014 17:13:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Feb 2014 17:13:25 +0000 (UTC) To: "'mailing list for ConTeXt users'" Original-X-From: ntg-context-bounces@ntg.nl Thu Feb 13 18:13:33 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WDzqq-00006i-24 for gctc-ntg-context-518@m.gmane.org; Thu, 13 Feb 2014 18:13:28 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9208D101EC; Thu, 13 Feb 2014 18:13:27 +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 ncu27ov-Tppa; Thu, 13 Feb 2014 18:13:26 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 3D925101E7; Thu, 13 Feb 2014 18:13:26 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8C558101E7 for ; Thu, 13 Feb 2014 18:13:24 +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 xOQPHhKppYrZ for ; Thu, 13 Feb 2014 18:13:23 +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 A219D101E2 for ; Thu, 13 Feb 2014 18:13:13 +0100 (CET) Original-Received: from fep32.mx.upcmail.net (fep32.mx.upcmail.net [62.179.121.50]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s1DHDC75028571 for ; Thu, 13 Feb 2014 18:13:13 +0100 Original-Received: from edge04.upcmail.net ([192.168.13.239]) by viefep32-int.chello.at (InterMail vM.8.01.05.05 201-2260-151-110-20120111) with ESMTP id <20140213171312.ZYVY19534.viefep32-int.chello.at@edge04.upcmail.net> for ; Thu, 13 Feb 2014 18:13:12 +0100 Original-Received: from emk ([78.102.140.160]) by edge04.upcmail.net with edge id RtDB1n01f3Tq9wW03tDCPA; Thu, 13 Feb 2014 18:13:12 +0100 X-SourceIP: 78.102.140.160 In-Reply-To: <001801cf24eb$60de9c70$229bd550$@tosovsky@email.cz> X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac8kxxjXuwtD/MCVSXyPbxGWCd4K5wAIhtJQAP0X5yA= Content-Language: cs X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=62.179.121.50; country=AT; latitude=47.3333; longitude=13.3333; http://maps.google.com/maps?q=47.3333,13.3333&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06LpRdcsd - 07ef82c21880 - 20140213 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 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:86275 Archived-At: On 2014-02-08 Jan Tosovsky wrote: > On 2014-02-08 Jan Tosovsky wrote: > > Additionally, I'd like to keep that divider with the previous content > (paragraph). > > In this case AFAIK \testpage[n] cannot be used directly in the divider > definition as it breaks the page at position of this command. > > I'd like to express rather: If there is no space for three lines, > break the page, but grab few previous lines (at least 2) together > with me (according to orphan/widow settings). > > The current behaviour can be demonstrated using this example: > > \startsetups[grid][mypenalties] > \setdefaultpenalties > \setpenalties\widowpenalties{2}{10000} > \setpenalties\clubpenalties {2}{10000} > \stopsetups > > \setuplayout[grid=yes, setups=mypenalties] > \showgrid > \showlayoutcomponents > > \starttext > \blank[force, 30*line] > \input{tufte} > \blank[4mm]\middlealigned{\hl[4]}\blank[6mm] > \stoptext > I found that \page[no] does exactly what I wanted. If needed, it breaks the page not at the positon of a divider, but sooner, so that divider is preceded at least with 2 lines of text. \page[no]\blank[4mm]\middlealigned{\hl[4]}\blank[6mm] Jan ___________________________________________________________________________________ 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 ___________________________________________________________________________________