Hi.

Many thanks for your kind answer.

\setuppagenumbering[alternative=doublesided,
   location={header,marginedge}]
\setupheadertexts
   [section][{\headnumber[section]}][chapter][{\headnumber[chapter]}]

Your code is rather nice (I have learned one nice trick from it), but it doesn't what I need. I want all the header stuff to go just separated by spaces, not on different sides of the header. Something like this
117_This_is_an_chapter_name_(chap._5)___________________________________________________________________
where "_" stands for a space.


Well, with your trick I could possibly to it with some \hfill, but it's a rather tricky solution. Moreover, I may need the name of a current chapter and section in the document itself. I guess there must be some system solution for such a case in the ConTeXt (I think there is almost everything in it.) :-)

Of course, as the last instance I can redefine \chapter and \section in a way like this
\let\OriChapter=\chapter
\def\chapter#1{\def\currentchaptername{#1}\chapter{#1}}
but I don't want to do it -- it is dirty and involves more programming to cover crossreferences.


Any more hint how to get the name of current chapter/section?

With best regards
Michal Kvasnicka


_______________________________________________ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to