Re: [NTG-context] Draw a line below the header texts

2013-04-29 Thread Wolfgang Schuster

Am 27.04.2013 um 11:00 schrieb Tim Li timli2...@outlook.com:

 Hi,
  
 now I need a line below the header text to seperate the header texts from the 
 text area. I have't soloved this problem, have to ask for help
  
 (the method from google doesn't work any more. This new one is from Aditya, 
 but still has some problem that I don't know how to deal with)
  
 \setupbackgrounds
   [header][text]
   [bottomframe=on]

\setupheader[text][after=\hrule]

Wolfgang
___
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
___


[NTG-context] Draw a line below the header texts

2013-04-27 Thread Tim Li
Hi, now I need a line below the header text to seperate the header texts from 
the text area. I have't soloved this problem, have to ask for help (the method 
from google doesn't work any more. This new one is from Aditya, but still has 
some problem that I don't know how to deal with) \setuplayout
  [header=\lineheight,
   headerdistance=\lineheight,
   footer=\lineheight,
   footerdistance=\lineheight] \setuppagenumbering
  [location=,
   alternative=doublesided] \definepagebreak
  [chapterpagebreak]
  [yes,header,footer,right] \definetext
  [chapterstart]
  [footer]
  [{\hfill\it\pagenumber}] \setuphead
  [chapter]
  [style=\bfc,
   header=empty,   footer=chapterstart,
   page=chapterpagebreak] \setupheader
  [style=\it]
\setupheadertexts
  [{\getmarking[sectionnumber]\hskip1em\getmarking[section][first]}]
  [pagenumber]
  [{Chapter~\getmarking[chapternumber]\hskip1em\getmarking[chapter]}]
  [pagenumber] \setupbackgrounds  [header][text]  [bottomframe=on] \starttext
\chapter{First Chapter}
this is the first chapter
\section{section 1}
\page   
\section{section 2}
the second page of the first chapter
\page
\section{section 3}
the third page of the first chapter
\chapter{Second Chapter}
this is the second chapter
\section{section 1}
\page
\section{section 2}
the second page of the second chapter
\stoptext The rule shouldn't be above the chapter head ``1 First Chapter at 
page 1 and page 4 should be true empty, since it is just before Chapter 2 and 
has no contents. Of course, I hope that I can solve these two problems by 
myself, but ... I really need some help from you. Best regards, Tim
  ___
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
___