[NTG-context] Draw a line under the headertext in ConTeXt except some pages
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 ___ 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 ___
Re: [NTG-context] Draw a line under the headertext in ConTeXt except some pages
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 ___
Re: [NTG-context] Draw a line under the headertext in ConTeXt except some pages
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 > > ___ ___ 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 ___