How to control \hrule width in header & footer

Hi all, I'm trying to add \hrule after header and before footer. Here is the testing code: ------------------------------------------------------------------------- \setupheader[after=\hrule] \setupfooter[before=\hrule\blank] \setupheadertexts [text][chapter][section] [section][chapter] \setupfootertexts [text][date][pagenumber][pagenumber][date] \starttext \chapter[ch1]{Toto} \section[sec11]{Sec 11} \input tufte \section[sec12]{Sec 12} \input tufte \stoptext ------------------------------------------------------------------- The result gives me horizontal rules too long. I would like make rule only in "text" location (with the length is \textwidth) not on left and right margins. Anyone could show me how to do that please. Thank you,

Hello, VnPenguin wrote:
I'm trying to add \hrule after header and before footer. Here is the testing code: \setupheader[after=\hrule] \setupfooter[before=\hrule\blank]
Try \setupheader[text][...] By the way using a \hairule or thinrule instead of a \hrule makes it possible to use \setupthinrule. Tobias

On 5/15/05, Tobias Burnus
Hello,
VnPenguin wrote:
I'm trying to add \hrule after header and before footer. Here is the testing code: \setupheader[after=\hrule] \setupfooter[before=\hrule\blank]
Try \setupheader[text][...] By the way using a \hairule or thinrule instead of a \hrule makes it possible to use \setupthinrule.
It works! Thank you a lot for your help. Regards,
participants (2)
-
Tobias Burnus
-
VnPenguin