Draw a line under the headertext in ConTeXt except some pages
![](https://secure.gravatar.com/avatar/d7c3317235884569312c31f786d43bbc.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/5955e8e90611e77ccbfc7721b6112027.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/d7c3317235884569312c31f786d43bbc.jpg?s=120&d=mm&r=g)
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
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 ____________________________________________________________ _______________________
participants (2)
-
Fabrice Couvreur
-
Pablo Rodriguez