How to control \hrule width in header & footer
![](https://secure.gravatar.com/avatar/38944d5653a9e373103aaa7ff8562d8a.jpg?s=120&d=mm&r=g)
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,
![](https://secure.gravatar.com/avatar/beb21d63be6b38adb42d86cdc76e86a7.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/38944d5653a9e373103aaa7ff8562d8a.jpg?s=120&d=mm&r=g)
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