* Problem with \nobreak @ 2000-10-17 20:06 Slawek Zak 2000-10-17 21:35 ` Hans Hagen 0 siblings, 1 reply; 10+ messages in thread From: Slawek Zak @ 2000-10-17 20:06 UTC (permalink / raw) 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? /S ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problem with \nobreak 2000-10-17 20:06 Problem with \nobreak Slawek Zak @ 2000-10-17 21:35 ` Hans Hagen 2000-10-18 16:51 ` Slawek Zak 0 siblings, 1 reply; 10+ messages in thread From: Hans Hagen @ 2000-10-17 21:35 UTC (permalink / raw) Cc: ntg-context 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][....] 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] 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 ------------------------------------------------------------------------- ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problem with \nobreak 2000-10-17 21:35 ` Hans Hagen @ 2000-10-18 16:51 ` Slawek Zak 2000-10-19 9:12 ` Hans Hagen 0 siblings, 1 reply; 10+ messages in thread From: Slawek Zak @ 2000-10-18 16:51 UTC (permalink / raw) 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. Full definition of Section is now: \definehead[Section][subject] \setuphead[Section][style=cap,textcommand=\underbar] 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? /S ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problem with \nobreak 2000-10-18 16:51 ` Slawek Zak @ 2000-10-19 9:12 ` Hans Hagen 2000-10-19 16:15 ` Slawek Zak 0 siblings, 1 reply; 10+ messages in thread From: Hans Hagen @ 2000-10-19 9:12 UTC (permalink / raw) Cc: ntg-context 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 ------------------------------------------------------------------------- ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problem with \nobreak 2000-10-19 9:12 ` Hans Hagen @ 2000-10-19 16:15 ` Slawek Zak 2000-10-19 16:25 ` Hans Hagen 2000-10-19 16:26 ` Hans Hagen 0 siblings, 2 replies; 10+ messages in thread From: Slawek Zak @ 2000-10-19 16:15 UTC (permalink / raw) On Thu, Oct 19, 2000 at 11:12:37AM +0200, Hans Hagen wrote: > >\definehead[Section][subject] > >\setuphead[Section][style=cap,textcommand=\underbar] > > this is ok. Well... it is not, as I have one `Section' that has title at the bottom of a page. > no, it's two argument, but actually \definehead is a three one. cont-enp.pdf doesn't mention the third argument. /S -- * Suavek Zak * email: zaks@im.pw.edu.pl voice: +48 (0) 22 674 66 79 * PGP v2.3: 2048/9A7CBF71, finger://zaks@prioris.im.pw.edu.pl ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problem with \nobreak 2000-10-19 16:15 ` Slawek Zak @ 2000-10-19 16:25 ` Hans Hagen 2000-10-19 17:34 ` Slawek Zak 2000-10-19 16:26 ` Hans Hagen 1 sibling, 1 reply; 10+ messages in thread From: Hans Hagen @ 2000-10-19 16:25 UTC (permalink / raw) Cc: ntg-context At 06:15 PM 10/19/00 +0200, Slawek Zak wrote: >On Thu, Oct 19, 2000 at 11:12:37AM +0200, Hans Hagen wrote: >> >\definehead[Section][subject] >> >\setuphead[Section][style=cap,textcommand=\underbar] >> >> this is ok. > >Well... it is not, as I have one `Section' that has title at the >bottom of a page. Then maybe the first command after that is goodbreaking? What is the first command after the section header? 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 ------------------------------------------------------------------------- ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problem with \nobreak 2000-10-19 16:25 ` Hans Hagen @ 2000-10-19 17:34 ` Slawek Zak 2000-10-20 7:37 ` Hans Hagen 0 siblings, 1 reply; 10+ messages in thread From: Slawek Zak @ 2000-10-19 17:34 UTC (permalink / raw) On Thu, Oct 19, 2000 at 06:25:09PM +0200, Hans Hagen wrote: > At 06:15 PM 10/19/00 +0200, Slawek Zak wrote: > >On Thu, Oct 19, 2000 at 11:12:37AM +0200, Hans Hagen wrote: > >> >\definehead[Section][subject] > >> >\setuphead[Section][style=cap,textcommand=\underbar] > >> > >> this is ok. > > > >Well... it is not, as I have one `Section' that has title at the > >bottom of a page. > > Then maybe the first command after that is goodbreaking? What is the first > command after the section header? It's \startitemize and then \item's /S ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problem with \nobreak 2000-10-19 17:34 ` Slawek Zak @ 2000-10-20 7:37 ` Hans Hagen 2000-10-22 22:26 ` Slawek Zak 0 siblings, 1 reply; 10+ messages in thread From: Hans Hagen @ 2000-10-20 7:37 UTC (permalink / raw) Cc: ntg-context At 07:34 PM 10/19/00 +0200, Slawek Zak wrote: >On Thu, Oct 19, 2000 at 06:25:09PM +0200, Hans Hagen wrote: >> At 06:15 PM 10/19/00 +0200, Slawek Zak wrote: >> >On Thu, Oct 19, 2000 at 11:12:37AM +0200, Hans Hagen wrote: >> >> >\definehead[Section][subject] >> >> >\setuphead[Section][style=cap,textcommand=\underbar] >> >> >> >> this is ok. >> > >> >Well... it is not, as I have one `Section' that has title at the >> >bottom of a page. >> >> Then maybe the first command after that is goodbreaking? What is the first >> command after the section header? > >It's \startitemize and then \item's I guessed so, since that command prefers a new page. Actually itemize will also prevent a break between the first two and last two items [second pass optimization]. You may try: \startitemize[intro] which will as good as possible prevent a break (or \page[no]) 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 ------------------------------------------------------------------------- ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problem with \nobreak 2000-10-20 7:37 ` Hans Hagen @ 2000-10-22 22:26 ` Slawek Zak 0 siblings, 0 replies; 10+ messages in thread From: Slawek Zak @ 2000-10-22 22:26 UTC (permalink / raw) On Fri, Oct 20, 2000 at 09:37:43AM +0200, Hans Hagen wrote: > >> Then maybe the first command after that is goodbreaking? What is the first > >> command after the section header? > > > >It's \startitemize and then \item's > > I guessed so, since that command prefers a new page. Actually itemize will > also prevent a break between the first two and last two items [second pass > optimization]. > > You may try: > > \startitemize[intro] Now - that works just fine - thanks :) /S ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problem with \nobreak 2000-10-19 16:15 ` Slawek Zak 2000-10-19 16:25 ` Hans Hagen @ 2000-10-19 16:26 ` Hans Hagen 1 sibling, 0 replies; 10+ messages in thread From: Hans Hagen @ 2000-10-19 16:26 UTC (permalink / raw) Cc: ntg-context At 06:15 PM 10/19/00 +0200, Slawek Zak wrote: >cont-enp.pdf doesn't mention the third argument. There are many hidden secrets, some are there to catch errors or wrong usage, i must admit. 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 ------------------------------------------------------------------------- ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2000-10-22 22:26 UTC | newest] Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2000-10-17 20:06 Problem with \nobreak Slawek Zak 2000-10-17 21:35 ` Hans Hagen 2000-10-18 16:51 ` Slawek Zak 2000-10-19 9:12 ` Hans Hagen 2000-10-19 16:15 ` Slawek Zak 2000-10-19 16:25 ` Hans Hagen 2000-10-19 17:34 ` Slawek Zak 2000-10-20 7:37 ` Hans Hagen 2000-10-22 22:26 ` Slawek Zak 2000-10-19 16:26 ` Hans Hagen
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).