ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Jeff Smith" <ascarel@gmail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: TOC: page headers
Date: Wed, 28 Nov 2007 19:35:58 -0500	[thread overview]
Message-ID: <2e8813a0711281635l2202d7cdyf0878b4a285c3f88@mail.gmail.com> (raw)
In-Reply-To: <115224fb0711150302q8ade6dck9b5b7673009ee551@mail.gmail.com>

On Nov 15, 2007 6:02 AM, Wolfgang Schuster
<schuster.wolfgang@googlemail.com> wrote:
> \usemodule[visual] % example with faked text
>
> \setuplayout
>   [width=middle,
>   footer=2cm,
>   topspace=2cm,
>   header=1.3em,
>   height=middle,
>   backspace=3cm,
>   headerdistance=0.3cm,
>   footerdistance=0cm]
>
> \startsetups header:bodymatter
>
> \setupbackgrounds[header][text][frame=off,bottomframe=on]
>
> % Hans mentioned this method long ago on the list
>
> \setupheader
>   [text]
>   [lefttext={\it\getmarking[chapternumber].\space\getmarking[chapter]},
>    righttext=\pagenumber]
>
> \stopsetups
>
> \startsetups header:frontmatter
>
> \setupheader
>   [text]
>   [righttext=\pagenumber]
>
> \stopsetups
>
> \setupsectionblock
>   [frontpart]
>   [page=yes, % else problem with last page of the table of contents
>    before=\setups{header:frontmatter}]
>
> \setupsectionblock
>   [bodypart]
>   [page=no,
>    before=\setups{header:bodymatter}]
>
> \setupsectionblock[appendix] [page=no]
> \setupsectionblock[backpart] [page=no]
>
> \setuppagenumbering
>   [state=start,
>    location=, % already set with \setupheadertexts
>    way=bytext,
>    partnumber=no,
>    conversion=numbers] % default
>
> \definetext[chapter][footer][pagenumber]
> \setuphead[chapter][header=high,footer=chapter]
>
> \setuphead
>   [part]
>   [%header=high, % already done for the chapter header
>    %footer=high, % overloads the chapter setting, footer=pagenumber
>    placehead=no,
>    resetnumber=no]
>
> \setupheadtext[fr][content=Table des mati\egrave res]
> \mainlanguage[fr]
>
> \starttext
>
> \startfrontmatter
>
> \completecontent
>
> \stopfrontmatter
>
> \startbodymatter
>
> \dorecurse{3}
>   {\part{\fakewords{5}{10}}
>    \dorecurse{3}
>      {\chapter{\fakewords{5}{10}}
>       \dorecurse{2}
>         {\section{\fakewords{5}{10}}
>          \fakewords{150}{200}
>          \dorecurse{2}
>            {\subsection{\fakewords{5}{10}}
>             \fakewords{150}{200}}}}}
>
> \stopbodymatter
>
> \stoptext

Hi,

I'm bringing that example up again because there is a small problem with it. :-)

The very last page of the resulting document has no header!

I've been having this problem before, and I mentioned it on this list
a while ago.

What I did was lazily abandon the frontmatter/bodymatter structure and
it was solved. So I guess this is part of the problem as well here.

Or at least, on my side of things. When I compile the example above,
as is, there is no header on the very last page. The header should
have a bottom frame with the chapter number and title on the left, and
page number of the right. The exception to this is the first page of a
chapter. And indeed, everything is as expected in the document, until
the very last page, as I said, which is not the beginning of a new
chapter.

So, what to do here? I do need the frontmatter/bodymatter structure
anyway. So there must be something else...

Thanks!
Jeff
___________________________________________________________________________________
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
___________________________________________________________________________________


  parent reply	other threads:[~2007-11-29  0:35 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-15  1:03 Jeff Smith
2007-11-15  1:15 ` Idris Samawi Hamid
2007-11-15  2:09   ` Jeff Smith
2007-11-15 11:02     ` Wolfgang Schuster
2007-11-16 16:17       ` Jeff Smith
2007-11-16 18:31         ` luigi scarso
2007-11-17 12:56         ` Wolfgang Schuster
2007-11-29  0:35       ` Jeff Smith [this message]
2007-11-29  9:12         ` Hans Hagen
2007-11-29 10:41           ` Wolfgang Schuster
2007-11-30  2:51             ` Jeff Smith

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=2e8813a0711281635l2202d7cdyf0878b4a285c3f88@mail.gmail.com \
    --to=ascarel@gmail.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).