ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Draw a line under the headertext in ConTeXt except some pages
@ 2017-08-24 15:10 Fabrice Couvreur
  2017-08-24 16:12 ` Pablo Rodriguez
  0 siblings, 1 reply; 3+ messages in thread
From: Fabrice Couvreur @ 2017-08-24 15:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hi,
How to proceed so that the text of the head is not on the page with the
table of contents and pages with the title of the chapter ?
Thanks
Fabrice

\setuplayout
  [
    header=\lineheight,
    headerdistance=\lineheight,
  ]

\setupbackgrounds[header][text][bottomframe=on]

\setupheadertexts[{\getmarking[section]}][pagenumber]
                 [{\getmarking[chapter]}][pagenumber]

\setuppagenumbering[alternative=,location=]

\definestructureconversionset
  [structure]
  [numbers, Romannumerals, numbers, numbers, numbers]
  [numbers]

\setupheads [sectionconversionset=structure]


\setuplist
  [chapter]
  [
   style=bold,
  ]

\starttext
\placelist[chapter,section][alternative=c]
\startchapter[title=Espaces probabilisés]
  \startsection[title=Expérience aléatoire  et univers]
    \dorecurse{5}{\input knuth}
  \stopsection
  \startsection[title=Événements]
    \dorecurse{5}{\input knuth}
\stopsection
\stopchapter
\startchapter[title=Variables aléatoires : généralités]
  \startsection[title=Définition]
     \dorecurse{5}{\input knuth}
  \stopsection
  \startsection[title=Loi de probabilité d'une variable aléatoire]
     \dorecurse{5}{\input knuth}
  \stopsection
\stopchapter
\stoptext

[-- Attachment #1.2: Type: text/html, Size: 1946 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Draw a line under the headertext in ConTeXt except some pages
  2017-08-24 15:10 Draw a line under the headertext in ConTeXt except some pages Fabrice Couvreur
@ 2017-08-24 16:12 ` Pablo Rodriguez
  2017-08-24 22:44   ` Fabrice Couvreur
  0 siblings, 1 reply; 3+ messages in thread
From: Pablo Rodriguez @ 2017-08-24 16:12 UTC (permalink / raw)
  To: ntg-context

On 08/24/2017 05:10 PM, Fabrice Couvreur wrote:
> Hi,
> How to proceed so that the text of the head is not on the page with the
> table of contents and pages with the title of the chapter ?

Hi Fabrice,

to the first question:

  \setuphead
    [chapter]
    [header=empty]

You might not want the rule in those pages. Play with the options:

  %~ \setupheader[text][after=\vskip 3pt \hrule]
  \setupheader[text][after={\blackrule[
      width=\textwidth,
      height=1em]}]

It is wiser (not only to solve the problem), that you write a \title
before \placelist.

I hope it helps,

Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Draw a line under the headertext in ConTeXt except some pages
  2017-08-24 16:12 ` Pablo Rodriguez
@ 2017-08-24 22:44   ` Fabrice Couvreur
  0 siblings, 0 replies; 3+ messages in thread
From: Fabrice Couvreur @ 2017-08-24 22:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hi Pablo,
Thank you so much !
Fabrice

%\setupbackgrounds[header][text][bottomframe=on]
\setuphead
    [chapter]
    [header=empty]

\setupheader[text][after=\vskip 1pt \hrule]

\starttext
\starttitle[title={\bf My Book}]
\stoptitle
\placelist[chapter,section][alternative=c]
\stoptext



2017-08-24 18:12 GMT+02:00 Pablo Rodriguez <oinos@gmx.es>:

> On 08/24/2017 05:10 PM, Fabrice Couvreur wrote:
> > Hi,
> > How to proceed so that the text of the head is not on the page with the
> > table of contents and pages with the title of the chapter ?
>
> Hi Fabrice,
>
> to the first question:
>
>   \setuphead
>     [chapter]
>     [header=empty]
>
> You might not want the rule in those pages. Play with the options:
>
>   %~ \setupheader[text][after=\vskip 3pt \hrule]
>   \setupheader[text][after={\blackrule[
>       width=\textwidth,
>       height=1em]}]
>
> It is wiser (not only to solve the problem), that you write a \title
> before \placelist.
>
> I hope it helps,
>
> Pablo
> --
> http://www.ousia.tk
> ____________________________________________________________
> _______________________
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ____________________________________________________________
> _______________________

[-- Attachment #1.2: Type: text/html, Size: 3164 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2017-08-24 22:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-24 15:10 Draw a line under the headertext in ConTeXt except some pages Fabrice Couvreur
2017-08-24 16:12 ` Pablo Rodriguez
2017-08-24 22:44   ` Fabrice Couvreur

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