On 7/2/07, Aditya Mahajan
On Mon, 2 Jul 2007, Peter I. Hansen wrote:
On 7/1/07, Aditya Mahajan
wrote: On Sun, 1 Jul 2007, Peter I. Hansen wrote:
Hello
Just getting started with ConTeXt, and liking it so far :)
However, I would like to use something similar to the LaTeX
'fancyhdr'
package. I've been poking around trying to find such a thing and the closest I could get is:
http://osdir.com/ml/tex.context/2001-10/msg00094.html
I can't find it in the manual, so if it is built in maybe one of you guys can tell how to use it?
Look at Section 4.17 of ConTeXt manual http://www.pragma-ade.com/general/manuals/cont-enp.pdf
What I would like to do is for example to frame the headertext, and I tried with eg.
\setupheadertexts [chapter][pagenumber] \setupheader [style=\inframed]
But this creates a framed chapter text and a framed pagenumber. How do I put both in one frame?
\setupbackgrounds [header][text][frame=on]
To get a decent visual effect, you need to set the header height to be something reasonable, for example
\setuplayout[header=2\lineheight]
Thanks, this works for me. One thing though, I would like to turn the framing off on pages where a chapter begins. I tried \setuphead[chapter][header=empty], but this just gives me an empty frame. Is there a way to selectively turn of backgounds on for example chapter pages?