ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \definepagebreak[header, footer] not working when changing matters
@ 2012-03-24  8:54 Pablo Rodríguez
  2012-03-24 10:39 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Pablo Rodríguez @ 2012-03-24  8:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users

I have discovered that \definepagebreak[header,footer] doesn't right
with chapters when changing from frontmatter to bodymatter (and similar
divisions).

Here you have a sample:

\definepagebreak[firstpagebreak][yes,header,footer,right]
\setuphead[chapter][page=firstpagebreak]
\setuppagenumbering[alternative=doublesided,location={botton}]
\starttext
\startfrontmatter
\dorecurse{4}{\chapter{front}}
\stopfrontmatter
\startbodymatter
\dorecurse{4}{\chapter{body}}
\stopbodymatter
\startappendices
\dorecurse{4}{\chapter{body}}
\stopappendices
\startbackmatter
\dorecurse{4}{\chapter{body}}
\stopbackmatter
\stoptext

Pages previous to chapters with no text should also lack header and
footer, but in the example above this doesn't work when text divisions
(such as front matter, body matter, appendices and back matter) change.

I guess this might be a bug.

Many thanks for your help,


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


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

* Re: \definepagebreak[header, footer] not working when changing matters
  2012-03-24  8:54 \definepagebreak[header, footer] not working when changing matters Pablo Rodríguez
@ 2012-03-24 10:39 ` Wolfgang Schuster
  2012-03-25 15:28   ` Pablo Rodríguez
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2012-03-24 10:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 24.03.2012 um 09:54 schrieb Pablo Rodríguez:

> I have discovered that \definepagebreak[header,footer] doesn't right
> with chapters when changing from frontmatter to bodymatter (and similar
> divisions).
> 
> Here you have a sample:
> 
> \definepagebreak[firstpagebreak][yes,header,footer,right]
> \setuphead[chapter][page=firstpagebreak]
> \setuppagenumbering[alternative=doublesided,location={botton}]
> \starttext
> \startfrontmatter
> \dorecurse{4}{\chapter{front}}
> \stopfrontmatter
> \startbodymatter
> \dorecurse{4}{\chapter{body}}
> \stopbodymatter
> \startappendices
> \dorecurse{4}{\chapter{body}}
> \stopappendices
> \startbackmatter
> \dorecurse{4}{\chapter{body}}
> \stopbackmatter
> \stoptext
> 
> Pages previous to chapters with no text should also lack header and
> footer, but in the example above this doesn't work when text divisions
> (such as front matter, body matter, appendices and back matter) change.

Section blocks do have a page key which is used ti switch to a right page at
the begin/end of the environment and this happens before the chapter
page break happens. You have to disable the page breaks for the section block
to have the right header/footer on empty pages.

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

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


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

* Re: \definepagebreak[header, footer] not working when changing matters
  2012-03-24 10:39 ` Wolfgang Schuster
@ 2012-03-25 15:28   ` Pablo Rodríguez
  0 siblings, 0 replies; 3+ messages in thread
From: Pablo Rodríguez @ 2012-03-25 15:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 24/03/12 11:39, Wolfgang Schuster wrote:
> Am 24.03.2012 um 09:54 schrieb Pablo Rodríguez:
>> [...]
>> Pages previous to chapters with no text should also lack header and
>> footer, but in the example above this doesn't work when text divisions
>> (such as front matter, body matter, appendices and back matter) change.
> 
> Section blocks do have a page key which is used ti switch to a right page at
> the begin/end of the environment and this happens before the chapter
> page break happens. You have to disable the page breaks for the section block
> to have the right header/footer on empty pages.
> 
> \setupsectionblock[frontpart][page=]
> \setupsectionblock[bodypart] [page=]
> \setupsectionblock[backpart] [page=]

Many thanks for your help, Wolfgang.

It works like charm.

Thank you very much,


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


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

end of thread, other threads:[~2012-03-25 15:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-24  8:54 \definepagebreak[header, footer] not working when changing matters Pablo Rodríguez
2012-03-24 10:39 ` Wolfgang Schuster
2012-03-25 15:28   ` Pablo Rodríguez

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