[NTG-context] only page number in the header of the chapter title page

massifr at fastwebnet.it massifr at fastwebnet.it
Tue Nov 10 18:53:46 CET 2015


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 at fastwebnet.it <mailto:massifr at 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20151110/ba784094/attachment-0001.html>


More information about the ntg-context mailing list