From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: massifr@fastwebnet.it,
mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: only page number in the header of the chapter title page
Date: Tue, 10 Nov 2015 18:35:55 +0100 [thread overview]
Message-ID: <56422AFB.3030203@gmail.com> (raw)
In-Reply-To: <6270148.Bon2RoTyEi@max>
[-- Attachment #1.1: Type: text/plain, Size: 1008 bytes --]
> massifr@fastwebnet.it <mailto:massifr@fastwebnet.it>
> 10. November 2015 um 12:50
>
> I mean something like this:
>
> On the top of a chapter title page:
>
> +-----------------------------------
>
> | 34
> |
>
> On the top of a page without chapter title:
>
> +-----------------------------------
>
> | 36 - Chapter title
> |
>
> Or (odd page):
>
> ----------------------------------+
>
> Chapter title - 35 |
> |
>
> Thanks, Massi
>
>
You can use the \definetext command to set a different header (or
footer) for chapter pages.
\setuppagenumbering[alternative=doublesided,location=]
\setupheadertexts
[][{\getmarking[chapter] – \convertedcounter[userpage]}]
[{\convertedcounter[userpage] – \getmarking[chapter]}][]
\definetext[chapterheader][header][][pagenumber]
\setuphead[chapter][header=chapterheader]
\starttext
\dorecurse{4}
{\expanded{\chapter{Chapter \recurselevel}}
\dorecurse{10}{\input knuth\par}}
\stoptext
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 4355 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2015-11-10 17:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-09 13:51 massifr
2015-11-10 11:50 ` massifr
2015-11-10 17:35 ` Wolfgang Schuster [this message]
2015-11-10 17:53 ` massifr
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=56422AFB.3030203@gmail.com \
--to=schuster.wolfgang@gmail.com \
--cc=massifr@fastwebnet.it \
--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).