ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Unwanted empty last page in doublesided document
@ 2009-07-03 10:08 B. Tommy Jensen
  2009-07-03 11:38 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: B. Tommy Jensen @ 2009-07-03 10:08 UTC (permalink / raw)
  To: ntg-context

I am using Context mkII and have the following challenge:

I am using a doblesided layout and want to have an even total number of  
pages. The last chapter
should have an empty trailing page (if necessary) to add up to the right  
number.

The problem is that I always get an ODD number of pages, and there are  
_two_ empty
last pages at the end of the document. I have tried  
\installpagebreakhandler with
no effect.

The attached sample shows the problem - two empty pages at end. I would  
have expected
the document to stop at page 10, but there is an empty page 11 as well.

Does anyone have a clue here?

Regards,
Tommy Jensen

Sample text follows:


\setuppagenumbering[alternative=doublesided]
\starttext
\startbodymatter
\chapter[]{Kap 1}
\chapter[]{Kap 2}
\chapter[]{Kap 3}
\chapter[]{Kap 4}
\chapter[]{Kap 5}
\stopbodymatter

%-----------------------------------------------------------------------------
% Necessary to suppress emtpy last page in doublesided pagenumbering mode  
(no effect!)
\installpagebreakhandler{last}{}

\stoptext
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Unwanted empty last page in doublesided document
  2009-07-03 10:08 Unwanted empty last page in doublesided document B. Tommy Jensen
@ 2009-07-03 11:38 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2009-07-03 11:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 03.07.2009 um 12:08 schrieb B. Tommy Jensen:

> I am using Context mkII and have the following challenge:
>
> I am using a doblesided layout and want to have an even total number  
> of pages. The last chapter
> should have an empty trailing page (if necessary) to add up to the  
> right number.
>
> The problem is that I always get an ODD number of pages, and there  
> are _two_ empty
> last pages at the end of the document. I have tried  
> \installpagebreakhandler with
> no effect.
>
> The attached sample shows the problem - two empty pages at end. I  
> would have expected
> the document to stop at page 10, but there is an empty page 11 as  
> well.
>
> Does anyone have a clue here?

That's a side effect of the marking (what place header texts in  
headers/footer) mechanism
and there is now elegant solution to prevent this but I posted a hack  
(brr) a while ago,
search for \setupsectionblock or empty last page in the mail archive  
to find it.

Wolfgang

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-07-03 11:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-03 10:08 Unwanted empty last page in doublesided document B. Tommy Jensen
2009-07-03 11:38 ` Wolfgang Schuster

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).