Jilani Khaldi wrote:
Hi All,
Having set this header text:
\setupheadertexts [\vbox{\hbox{AAA}} \hbox{BBB}}}] [{CCC}]
the result is: AAA in the top left corner, BBB just under AAA CCC in the top right corner with the page number in the center
What I want to have is: 1. AAA = the title of the chapter 2. BBB = the title of the section 3. CCC in the top right corner but containing the page number
You already got the answer to this one I guess, just to sum it up: \setupheadertexts [{\framed[align=flushleft,frame=off,offset=0pt]{\getmarking[chapter]\crlf\getmarking[section]}}] [pagenumber] % or empty % and one of the two commands: %----- % this one overwrites the second argument above %\setuppagenumbering[location={header,right}] % this one only removes page number from the center %\setuppagenumbering[location=]
4. Just below all this a long line to separate the page header from its content
\setupbackgrounds[header][text][frame=off,bottomframe=on] (You probably have to adjust some parameters in \setuplayout: header height and distance between header and text.) Mojca