ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Michael Scholtz <scmicha@gmail.com>
To: ntg-context@ntg.nl
Subject: Setting `before` option of chapter breaks header text
Date: Tue, 3 Sep 2013 16:02:47 +0200	[thread overview]
Message-ID: <89A80267-412F-4F53-9EF3-7EC771A1C6A8@gmail.com> (raw)

If chapter titles are styled using the `before` option, the header texts on each first page of the documents (body|back|appendix)part are incorrect, because chapter name and number are empty. 
(Tested with ConTeXt version 2013.05.28 00:36 and 2013.09.03 10:22)

Is this a bug? (If not, is there any other way to set `before` without breaking the headers?)

Here an example:

    \setuphead[chapter][
        before=\hairline\blank,  %<<< headers work, if this line is removed
        after=\nowhitespace\hairline,
    ]

    \setuppagenumbering[location=]  % clear page numbers

    \startsectionblockenvironment[frontpart]
        \setupheadertexts[chapter][pagenumber]
    \stopsectionblockenvironment

    \startsectionblockenvironment[bodypart]
        \setupheadertexts[{Chapter \getmarking[chapternumber]: \getmarking[chapter]}][pagenumber]
    \stopsectionblockenvironment

    \startsectionblockenvironment[backpart]
        \setupheadertexts[chapter][pagenumber]
    \stopsectionblockenvironment

    \startsectionblockenvironment[appendix]
        \setupheadertexts[{Appendix \getmarking[chapternumber]: \getmarking[chapter]}][pagenumber]
    \stopsectionblockenvironment


    \starttext
        \startfrontmatter
            \chapter{Front One}
            Here the header is correct.
            \chapter{Front Two}
        \stopfrontmatter

        \startbodymatter
            \chapter{Body One}
            Incorrect header on this page.
            \page[yes]
            Here the header is correct.
            \chapter{Body Two}
        \stopbodymatter

        \startbackmatter
            \chapter{Back One}
            Incorrect (none) header on this page.
            \chapter{Back Two}
        \stopbackmatter
        
        \startappendices 
            \chapter{Appedix One}
            Incorrect header on this page.
            \chapter{Appedix Two}
        \stopappendices
    \stoptext
        

Regards,
Michael

___________________________________________________________________________________
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
___________________________________________________________________________________


             reply	other threads:[~2013-09-03 14:02 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-03 14:02 Michael Scholtz [this message]
2013-09-03 14:13 ` Wolfgang Schuster
2013-09-03 14:32   ` Michael Scholtz
2013-09-03 15:54     ` Wolfgang Schuster
2013-09-03 18:22       ` Michael Scholtz
2013-09-03 18:32         ` Wolfgang Schuster
2013-09-03 18:50           ` Michael Scholtz
2014-01-14 21:59           ` john Culleton
2014-01-15  9:10             ` Hans Hagen
2014-01-15 19:42             ` john Culleton

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=89A80267-412F-4F53-9EF3-7EC771A1C6A8@gmail.com \
    --to=scmicha@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).