From: massifr@fastwebnet.it
To: Wolfgang Schuster <schuster.wolfgang@gmail.com>, ntg-context@ntg.nl
Subject: Re: only page number in the header of the chapter title page
Date: Tue, 10 Nov 2015 18:53:46 +0100 [thread overview]
Message-ID: <1907082.j5WJyyy1j6@max> (raw)
In-Reply-To: <56422AFB.3030203@gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 1876 bytes --]
Thanks a lot, Wolfgang
just now I was posting a solution of mine,
but yours is more elegant and concise.
Best regards,
Massi
PS: here's my solution (but I'll use yours):
\definemarking[headertitle]
\setupheadertexts[]
\setupheadertexts[\setups{oddpages}][][][\setups{evenpages}]
\startsetups[evenpages]
\pagenumber
\emspace
\getmarking[headertitle][top]
\hfill
\stopsetups
\startsetups[oddpages]
\hfill
\getmarking[headertitle][top]
\emspace
\pagenumber
\stopsetups
\starttext
\startchapter[title=Trial chapter]
\marking[headertitle]{\space}
\marking[headertitle]{Trial chapter}
\dorecurse{11}{\input knuth\par}
\stopchapter
\stoptext
In data martedì 10 novembre 2015 18:35:55, hai scritto:
> > 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: 15896 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
___________________________________________________________________________________
prev parent reply other threads:[~2015-11-10 17:53 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
2015-11-10 17:53 ` massifr [this message]
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=1907082.j5WJyyy1j6@max \
--to=massifr@fastwebnet.it \
--cc=ntg-context@ntg.nl \
--cc=schuster.wolfgang@gmail.com \
/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).