* Bad page breaks!
@ 2005-02-11 19:18 G.C.H.M. Verhaag
2005-02-13 13:10 ` h h extern
0 siblings, 1 reply; 7+ messages in thread
From: G.C.H.M. Verhaag @ 2005-02-11 19:18 UTC (permalink / raw)
Dear ConTeXt-users,
I'm trying to typeset a small book using ConTeXt (TeXLive 2004), and use
the following setup:
\setupbodyfont[rm,12pt]
\definepapersize[BOOK][width=140mm,height=210mm]
\setuppapersize[BOOK][A4]
\setuplayout[
[topspace=24mm,
header=8mm,
headerdistance=10mm,
backspace=19.5mm,
leftmargin=15.5mm,
rightmargin=23mm,
footerdistance=5mm,
footer=4mm,
height=fit,
width=fit,
marking=on,
location=middle]
Page breaks are usually calculated automatically by TeX, but I notice
that in my case they turn out to be very bad. A lot of pages are
involved, so I wonder how this can be improved? Sometimes even 3 lines
could be added without any difficulty to a page by TeX before inserting
a page break!
I've tried to use \adaptlayout but it doesn't seem to work, no effect!
Has it perhaps something to do with the setup I use?
Regards,
Geert
--
Geert C.H.M. Verhaag
St. Jorisstraat 29
5954 AN Beesel
NETHERLANDS
Tel.: (+31)-774742493, E-mail: verhaaggchm@ision.nl
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Bad page breaks!
2005-02-11 19:18 Bad page breaks! G.C.H.M. Verhaag
@ 2005-02-13 13:10 ` h h extern
2005-02-20 10:25 ` G.C.H.M. Verhaag
0 siblings, 1 reply; 7+ messages in thread
From: h h extern @ 2005-02-13 13:10 UTC (permalink / raw)
G.C.H.M. Verhaag wrote:
> Dear ConTeXt-users,
>
> I'm trying to typeset a small book using ConTeXt (TeXLive 2004), and use
> the following setup:
>
> \setupbodyfont[rm,12pt]
>
> \definepapersize[BOOK][width=140mm,height=210mm]
>
> \setuppapersize[BOOK][A4]
> \setuplayout[
> [topspace=24mm,
> header=8mm,
> headerdistance=10mm,
> backspace=19.5mm,
> leftmargin=15.5mm,
> rightmargin=23mm,
> footerdistance=5mm,
> footer=4mm,
> height=fit,
> width=fit,
> marking=on,
> location=middle]
>
> Page breaks are usually calculated automatically by TeX, but I notice
> that in my case they turn out to be very bad. A lot of pages are
> involved, so I wonder how this can be improved? Sometimes even 3 lines
> could be added without any difficulty to a page by TeX before inserting
> a page break!
>
> I've tried to use \adaptlayout but it doesn't seem to work, no effect!
>
> Has it perhaps something to do with the setup I use?
no, more with the default penalties, compare:
(for adam: take a look at core-spa, the default setups in there may answer a few
of the questions in your postings)
\starttext
\startsetups [test]
\resetpenalties\widowpenalties
\resetpenalties\clubpenalties
\resetpenalties\interlinepenalties
\stopsetups
\startsetups [test]
\nopenalties
\stopsetups
\setuplayout[lines=25,setups=test] \showframe
\dorecurse{10}{\input tufte \endgraf}
\stoptext
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Bad page breaks!
2005-02-13 13:10 ` h h extern
@ 2005-02-20 10:25 ` G.C.H.M. Verhaag
2005-02-21 12:16 ` Hans Hagen
0 siblings, 1 reply; 7+ messages in thread
From: G.C.H.M. Verhaag @ 2005-02-20 10:25 UTC (permalink / raw)
h h extern wrote:
> .....
> no, more with the default penalties, compare:
>
> (for adam: take a look at core-spa, the default setups in there may
> answer a few of the questions in your postings)
>
> \starttext
>
> \startsetups [test]
> \resetpenalties\widowpenalties
> \resetpenalties\clubpenalties
> \resetpenalties\interlinepenalties
> \stopsetups
I suppose this is another test setup!
>
> \startsetups [test]
> \nopenalties
> \stopsetups
>
Sorry, but I keep struggling with the bad page breaks! I've tried both
suggested setups, but my document (approx. 80 pages) hardly improved,
despite the fact that it only deals with a few figures!
I want all pages to be of the same length, one missing line is allowed
but no more!
It's not a ConTeXt problem I suppose, so switching to LaTeX won't solve
the problem! Do you've any suggestions for further reading regarding
these various penalties?
Regards,
Geert
--
Geert C.H.M. Verhaag
St. Jorisstraat 29
5954 AN Beesel
NETHERLANDS
Tel.: (+31)-774742493, E-mail: verhaaggchm@ision.nl
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Bad page breaks!
2005-02-20 10:25 ` G.C.H.M. Verhaag
@ 2005-02-21 12:16 ` Hans Hagen
2005-02-27 10:15 ` G.C.H.M. Verhaag
0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2005-02-21 12:16 UTC (permalink / raw)
G.C.H.M. Verhaag wrote:
> h h extern wrote:
>
>> .....
>> no, more with the default penalties, compare:
>>
>> (for adam: take a look at core-spa, the default setups in there may
>> answer a few of the questions in your postings)
>>
>> \starttext
>>
>> \startsetups [test]
>> \resetpenalties\widowpenalties
>> \resetpenalties\clubpenalties
>> \resetpenalties\interlinepenalties
>> \stopsetups
>
>
> I suppose this is another test setup!
>
>>
>> \startsetups [test]
>> \nopenalties
>> \stopsetups
>>
> Sorry, but I keep struggling with the bad page breaks! I've tried both
> suggested setups, but my document (approx. 80 pages) hardly improved,
> despite the fact that it only deals with a few figures!
>
> I want all pages to be of the same length, one missing line is allowed
> but no more!
>
> It's not a ConTeXt problem I suppose, so switching to LaTeX won't solve
> the problem! Do you've any suggestions for further reading regarding
> these various penalties?
did you try:
\widowpenalty=0
\clubpenalty=0
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Bad page breaks!
2005-02-21 12:16 ` Hans Hagen
@ 2005-02-27 10:15 ` G.C.H.M. Verhaag
2005-02-27 20:53 ` h h extern
0 siblings, 1 reply; 7+ messages in thread
From: G.C.H.M. Verhaag @ 2005-02-27 10:15 UTC (permalink / raw)
Hans Hagen wrote:
......
>
> did you try:
>
> \widowpenalty=0
> \clubpenalty=0
Sorry, for the somewhat delayed response!
I tried these penalty settings but they seem to have not effect at all!
The only way out is probably rearranging several paragraphs.
However I find it strange that I can't influence this page breaking at all!
Geert
--
Geert C.H.M. Verhaag
St. Jorisstraat 29
5954 AN Beesel
NETHERLANDS
Tel.: (+31)-774742493, E-mail: verhaaggchm@ision.nl
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Bad page breaks!
2005-02-27 10:15 ` G.C.H.M. Verhaag
@ 2005-02-27 20:53 ` h h extern
2005-03-07 19:09 ` G.C.H.M. Verhaag
0 siblings, 1 reply; 7+ messages in thread
From: h h extern @ 2005-02-27 20:53 UTC (permalink / raw)
G.C.H.M. Verhaag wrote:
> Hans Hagen wrote:
>
> ......
>
>>
>> did you try:
>>
>> \widowpenalty=0
>> \clubpenalty=0
>
>
> Sorry, for the somewhat delayed response!
>
> I tried these penalty settings but they seem to have not effect at all!
> The only way out is probably rearranging several paragraphs.
>
> However I find it strange that I can't influence this page breaking at all!
can you make a small sample file that you would like to see different?
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Bad page breaks!
2005-02-27 20:53 ` h h extern
@ 2005-03-07 19:09 ` G.C.H.M. Verhaag
0 siblings, 0 replies; 7+ messages in thread
From: G.C.H.M. Verhaag @ 2005-03-07 19:09 UTC (permalink / raw)
h h extern wrote:
> can you make a small sample file that you would like to see different?
>
Sorry, but I find that a bit to cumbersome to do at the moment!
The layout of another book I'm trying to prepare using ConTeXt appears
perfect, pages stay the same length, a very pleasing look! But this time
the book contains only simple paragraphs and no figures at all.
Thanks!
Geert
--
Geert C.H.M. Verhaag
St. Jorisstraat 29
5954 AN Beesel
NETHERLANDS
Tel.: (+31)-774742493, E-mail: verhaaggchm@ision.nl
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2005-03-07 19:09 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-11 19:18 Bad page breaks! G.C.H.M. Verhaag
2005-02-13 13:10 ` h h extern
2005-02-20 10:25 ` G.C.H.M. Verhaag
2005-02-21 12:16 ` Hans Hagen
2005-02-27 10:15 ` G.C.H.M. Verhaag
2005-02-27 20:53 ` h h extern
2005-03-07 19:09 ` G.C.H.M. Verhaag
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).