ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* only page number in the header of the chapter title page
@ 2015-11-09 13:51 massifr
  2015-11-10 11:50 ` massifr
  0 siblings, 1 reply; 4+ messages in thread
From: massifr @ 2015-11-09 13:51 UTC (permalink / raw)
  To: ntg-context

Hello list,
how can I keep the page number but not the header text in the page of a chapter title?

\setuphead[chapter][header=empty] makes all the header disappear. Is there an option
to keep the page number?

Thanks, Massi
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: only page number in the header of the chapter title page
  2015-11-09 13:51 only page number in the header of the chapter title page massifr
@ 2015-11-10 11:50 ` massifr
  2015-11-10 17:35   ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: massifr @ 2015-11-10 11:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1214 bytes --]

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

In data lunedì 9 novembre 2015 14:51:31, massifr@fastwebnet.it ha scritto:
> Hello list,
> how can I keep the page number but not the header text in the page of a chapter title?
> 
> \setuphead[chapter][header=empty] makes all the header disappear. Is there an option
> to keep the page number?
> 
> Thanks, Massi
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________

[-- Attachment #1.2: Type: text/html, Size: 6818 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: only page number in the header of the chapter title page
  2015-11-10 11:50 ` massifr
@ 2015-11-10 17:35   ` Wolfgang Schuster
  2015-11-10 17:53     ` massifr
  0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2015-11-10 17:35 UTC (permalink / raw)
  To: massifr, mailing list for ConTeXt users


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: only page number in the header of the chapter title page
  2015-11-10 17:35   ` Wolfgang Schuster
@ 2015-11-10 17:53     ` massifr
  0 siblings, 0 replies; 4+ messages in thread
From: massifr @ 2015-11-10 17:53 UTC (permalink / raw)
  To: Wolfgang Schuster, ntg-context


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-11-10 17:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-09 13:51 only page number in the header of the chapter title page massifr
2015-11-10 11:50 ` massifr
2015-11-10 17:35   ` Wolfgang Schuster
2015-11-10 17:53     ` massifr

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).