ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Empty page at the end of the document
@ 2005-11-25 15:14 Giuseppe Bilotta
  2005-11-25 15:23 ` Tobias Burnus
  0 siblings, 1 reply; 6+ messages in thread
From: Giuseppe Bilotta @ 2005-11-25 15:14 UTC (permalink / raw)


I'm having a totally blank page at the end of the document.
The document has a page number, but nothing is on it.

I remember this being a known bug when front/body/backmatter
was used ... is there a known fix?

-- 
Giuseppe "Oblomov" Bilotta

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

* Re: Empty page at the end of the document
  2005-11-25 15:14 Empty page at the end of the document Giuseppe Bilotta
@ 2005-11-25 15:23 ` Tobias Burnus
  2005-11-25 17:28   ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Tobias Burnus @ 2005-11-25 15:23 UTC (permalink / raw)


Giuseppe Bilotta wrote:
> I'm having a totally blank page at the end of the document.
> The document has a page number, but nothing is on it.
>
> I remember this being a known bug when front/body/backmatter
> was used ... is there a known fix?
>   
You mean the following?

\setupsectionblock[frontpart][page=]
\setupsectionblock[bodypart][page=]
\setupsectionblock[backpart][page=]
\setupsectionblock[appendixpart][page=]

Tobias

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

* Re: Empty page at the end of the document
  2005-11-25 15:23 ` Tobias Burnus
@ 2005-11-25 17:28   ` Hans Hagen
  2005-11-25 17:37     ` Re[2]: " Giuseppe Bilotta
  2005-11-25 18:49     ` Tobias Burnus
  0 siblings, 2 replies; 6+ messages in thread
From: Hans Hagen @ 2005-11-25 17:28 UTC (permalink / raw)


Tobias Burnus wrote:

> Giuseppe Bilotta wrote:
>
>> I'm having a totally blank page at the end of the document.
>> The document has a page number, but nothing is on it.
>>
>> I remember this being a known bug when front/body/backmatter
>> was used ... is there a known fix?
>>   
>
> You mean the following?
>
> \setupsectionblock[frontpart][page=]
> \setupsectionblock[bodypart][page=]
> \setupsectionblock[backpart][page=]
> \setupsectionblock[appendixpart][page=]


beware, if you you nil the page commands, you may need to make sure 
yourself that the pagebreaks between section blocks are forced at the 
right moment in order to reset for instance marks (used in running 
headers);

think of:

end of frontpart (no page break)
some changes to header settings
begin of bodypart (no page break)
start of chapter (forcingpage break)

versus

end of frontpart (page break)
some changes to header settings
begin of bodypart (redundant page break)
start of chapter (forcing (redundant) page break)

in the first case, the header may be wrong on the last page of the 
frontpart because it is set before the page break forced by the chapter

so, the suggested settings are perfectly ok but don't blame me for sync 
problems -)

Hans

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

* Re[2]: Empty page at the end of the document
  2005-11-25 17:28   ` Hans Hagen
@ 2005-11-25 17:37     ` Giuseppe Bilotta
  2005-11-25 18:49     ` Tobias Burnus
  1 sibling, 0 replies; 6+ messages in thread
From: Giuseppe Bilotta @ 2005-11-25 17:37 UTC (permalink / raw)


Friday, November 25, 2005 Hans Hagen wrote:

> beware, if you you nil the page commands, you may need to make sure
> yourself that the pagebreaks between section blocks are forced at the
> right moment in order to reset for instance marks (used in running
> headers);

> think of:

> end of frontpart (no page break)
> some changes to header settings
> begin of bodypart (no page break)
> start of chapter (forcingpage break)

> versus

> end of frontpart (page break)
> some changes to header settings
> begin of bodypart (redundant page break)
> start of chapter (forcing (redundant) page break)

> in the first case, the header may be wrong on the last page of the
> frontpart because it is set before the page break forced by the chapter

> so, the suggested settings are perfectly ok but don't blame me for sync
> problems -)

Yeah, that's the reason why I only used [page=] only on the
last sectionblock.

-- 
Giuseppe "Oblomov" Bilotta

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

* Re: Empty page at the end of the document
  2005-11-25 17:28   ` Hans Hagen
  2005-11-25 17:37     ` Re[2]: " Giuseppe Bilotta
@ 2005-11-25 18:49     ` Tobias Burnus
  2005-11-25 19:52       ` Re[2]: " Giuseppe Bilotta
  1 sibling, 1 reply; 6+ messages in thread
From: Tobias Burnus @ 2005-11-25 18:49 UTC (permalink / raw)


Hi,

Hans Hagen wrote:
> beware, if you you nil the page commands, you may need to make sure 
> yourself that the pagebreaks between section blocks are forced at the 
> right moment in order to reset for instance marks (used in running 
> headers);
>
> end of frontpart (page break)
> some changes to header settings
> begin of bodypart (redundant page break)
> start of chapter (forcing (redundant) page break)
>
> in the first case, the header may be wrong on the last page of the 
> frontpart because it is set before the page break forced by the chapter
Well, somehow reading this above, it sounds different than I get by the 
current settings:

\starttext
setupheadertexts[FontMatter]
\startfrontmatter \chapter{One}\chapter{Two} \stopfrontmatter
\setupheadertexts[BodyMatter]
\startbodymatter \chapter{Three} \stopbodymatter
\stoptext

Gives [One] [Two] [Three] [empty page].
Reading above I'd expect: [One] [Two][Three] or [One][Two][empty 
page][Three].
I actually want to have [One][Two][Three].

If I now set page=, then I get [One][Two][Three], but on page [Two] is 
the wrong header.
What is the proper way of doing so? Or: Why is there a page(break) added 
_after_ the matter and not - like \chapter{} - a pagebreak before?

Tobias

PS: Fortunally, I needed only \setupheadertexts[chapter] so far, which 
poses no problem.

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

* Re[2]: Empty page at the end of the document
  2005-11-25 18:49     ` Tobias Burnus
@ 2005-11-25 19:52       ` Giuseppe Bilotta
  0 siblings, 0 replies; 6+ messages in thread
From: Giuseppe Bilotta @ 2005-11-25 19:52 UTC (permalink / raw)


Friday, November 25, 2005 Tobias Burnus wrote:

> Hi,

> Hans Hagen wrote:
>> beware, if you you nil the page commands, you may need to make sure
>> yourself that the pagebreaks between section blocks are forced at the
>> right moment in order to reset for instance marks (used in running
>> headers);
>>
>> end of frontpart (page break)
>> some changes to header settings
>> begin of bodypart (redundant page break)
>> start of chapter (forcing (redundant) page break)
>>
>> in the first case, the header may be wrong on the last page of the
>> frontpart because it is set before the page break forced by the chapter
> Well, somehow reading this above, it sounds different than I get by the
> current settings:

> \starttext
> setupheadertexts[FontMatter]
> \startfrontmatter \chapter{One}\chapter{Two} \stopfrontmatter
> \setupheadertexts[BodyMatter]
> \startbodymatter \chapter{Three} \stopbodymatter
> \stoptext

> Gives [One] [Two] [Three] [empty page].
> Reading above I'd expect: [One] [Two][Three] or [One][Two][empty
> page][Three].
> I actually want to have [One][Two][Three].

> If I now set page=, then I get [One][Two][Three], but on page [Two] is
> the wrong header.
> What is the proper way of doing so? Or: Why is there a page(break) added
> _after_ the matter and not - like \chapter{} - a pagebreak before?

> Tobias

I think the problem lies in the fact that there is one
"page=" setting that is used both in the \startsectionblock
*and* in the \endsectionblock. Maybe it would be better to
have a pagebefore/pageafter thing, with the default being
pagebefore=yes,pageafter=no.

-- 
Giuseppe "Oblomov" Bilotta

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

end of thread, other threads:[~2005-11-25 19:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-25 15:14 Empty page at the end of the document Giuseppe Bilotta
2005-11-25 15:23 ` Tobias Burnus
2005-11-25 17:28   ` Hans Hagen
2005-11-25 17:37     ` Re[2]: " Giuseppe Bilotta
2005-11-25 18:49     ` Tobias Burnus
2005-11-25 19:52       ` Re[2]: " Giuseppe Bilotta

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