From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/3034 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Problem with \nobreak Date: Thu, 19 Oct 2000 11:12:37 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.20001019111237.008f6e60@pop.wxs.nl> References: <3.0.6.32.20001017233529.01487800@pop.wxs.nl> <20001017220623.A4185@prioris.mini.pw.edu.pl> <3.0.6.32.20001017233529.01487800@pop.wxs.nl> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: main.gmane.org 1035393797 13735 80.91.224.250 (23 Oct 2002 17:23:17 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:23:17 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: Slawek Zak In-Reply-To: <20001018185158.C42784@prioris.mini.pw.edu.pl> Xref: main.gmane.org gmane.comp.tex.context:3034 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:3034 At 06:51 PM 10/18/00 +0200, Slawek Zak wrote: >On Tue, Oct 17, 2000 at 11:35:29PM +0200, Hans Hagen wrote: >> At 10:06 PM 10/17/00 +0200, Slawek Zak wrote: >> >I tried to define my own sectioning command, like this: >> > >> > \setuphead[Section][style=cap,textcommand=\underbar,after=\nobreak] >> > >> >I don't know why, but after one of so defined `Sections' the page is >> >broken. Can I somehow prevent this? >> >> \setuphead[Section][section][....] > >Hmm. The above doesn't work. It's not mentioned in the manual, the >english one, that \setuphead has 3 arguments and it seems not to have >3. Sorry, my fault. I was thinking of a definition. >Full definition of Section is now: > >\definehead[Section][subject] >\setuphead[Section][style=cap,textcommand=\underbar] this is ok. >I use subject to avoid numbering (it's the same as section in other >respects, right?), and to have subpages. If I change subject to >section it's still the same (but the numbers of course). > >> you need a parent sectioning id, and: no \nobeak! ! ! since context already >> uses a weighted system of not breaking after headers [so that successive >> ones all move to the next page] > >Great to hear that. Is the 3-argument setuphead available only in >beta? no, it's two argument, but actually \definehead is a three one. Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com -------------------------------------------------------------------------