ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Wolfgang Schuster" <schuster.wolfgang@googlemail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: startbodymatter question
Date: Wed, 23 Jul 2008 17:00:41 +0200	[thread overview]
Message-ID: <115224fb0807230800l6e614810sa1958fa777ef31cd@mail.gmail.com> (raw)
In-Reply-To: <326847810807230746x61f24a93j30629458b826f98c@mail.gmail.com>

On Wed, Jul 23, 2008 at 4:46 PM, Alan Stone
<software.list.1es9s@gmail.com> wrote:
> Correction ( disregard the previous example)...
>
> \setuppapersize [A4][A4]
>
> %\setuppagenumbering[alternative=singlesided]
> \setuppagenumbering[alternative=doublesided]
>
> \definepagebreak[myChapterPageBreak][yes,header,footer,right]
> \setuphead[chapter][page=myChapterPageBreak]
>
> \startsectionblockenvironment[frontpart]
>     \setupheader[state=stop]
>     \setupfooter[state=stop]
> \stopsectionblockenvironment
>
> \startsectionblockenvironment[bodypart]
>     \setupheader[state=start]
>     \setupfooter[state=start]
> \stopsectionblockenvironment
>
> \startsectionblockenvironment[backpart]
>     \setupheader[state=stop]
>     \setupfooter[state=stop]
> \stopsectionblockenvironment
>
> \setupsectionblock[backpart][before={\page[left]}]

You need

\setupsectionblock[bodypart][page=yes]
\setupsectionblock[backpart][page=yes,before={\page[left]}]

The output from your settings is weird but correct because the last page
of the bodymatter is a right page and with the default value for "page" you're
going to the next right page, in your case page 11.

On page 11 starts now the backmatter with empty header and footer lines,
your setting for the backmatter inserts the "\page[left]" command and because
we're at the moment on a right page the current page is empty and the back
page is placed on page 12.

You see, nothing is wrong with ConTeXt, only the settings for the sectionblocks
are a bit confusing and you have to take care of this.

> \starttext
>
> \startstandardmakeup
>     Title
>     \blank[3*big]
>     Author
> \stopstandardmakeup
>
> \startfrontmatter
>     Table of Contents
>     \blank[3*big]
>     \placecontent
> \stopfrontmatter
>
> \startbodymatter
>     \chapter{Chapter 1}
>     \section{Section 1.1}
>         \input knuth
>         \blank
>         \input knuth
>         \blank
>         \input knuth
>
>     \section{Section 1.2}
>         \input tufte
>         \blank
>         \input tufte
>         \blank
>         \input tufte
>
>     \section{Section 1.3}
>         \input zapf
>         \blank
>         \input zapf
>         \blank
>         \input zapf
>
>     \chapter{Chapter 2}
>     \section{Section 2.1}
>         \input knuth
>         \blank
>         \input knuth
>         \blank
>         \input knuth
>
>     \section{Section 2.2}
>         \input tufte
>         \blank
>         \input tufte
>         \blank
>         \input tufte
>
>     \section{Section 2.3}
>         \input zapf
>         \blank
>         \input zapf
>         \blank
>         \input zapf
> \stopbodymatter
>
> \startbackmatter
>     back page
> \stopbackmatter
>
> \stoptext

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
___________________________________________________________________________________


  reply	other threads:[~2008-07-23 15:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-22 17:55 Alan Stone
2008-07-23  6:15 ` Wolfgang Schuster
2008-07-23 13:33   ` Alan Stone
2008-07-23 13:55     ` Wolfgang Schuster
2008-07-23 14:41       ` Alan Stone
2008-07-23 14:46         ` Alan Stone
2008-07-23 15:00           ` Wolfgang Schuster [this message]
2008-07-23 15:37             ` Alan Stone
2008-07-23 16:04               ` Alan Stone
2008-07-24  6:32               ` Wolfgang Schuster
2008-07-24  8:30                 ` Alan Stone
2008-07-23 15:19       ` John Devereux
2008-07-23 15:29         ` Wolfgang Schuster
2008-07-23 17:24           ` John Devereux
2008-07-24  6:35             ` Wolfgang Schuster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=115224fb0807230800l6e614810sa1958fa777ef31cd@mail.gmail.com \
    --to=schuster.wolfgang@googlemail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).