# [NTG-context] Header design

Alexander Lazic al-context at none.at
Thu Oct 6 01:58:51 CEST 2005

Hi,

i have now try to setup the CD pagedesign.

Please can anyone help me to find a solution for this setup ;-)

What i need is:

Title_of_the_document | section

on the left hand side in the header. I have found a solution for the
headerrule but for the text ...

I have added my solution on the bottom of this mail what i have also
tryed:

from:

http://www.ntg.nl/pipermail/ntg-context/2003/003438.html

which don't work because i get the following error:

---
! Argument of \next has an extra }.
<inserted text>
\par
<to be read again>
}
\doattributes ...name #1#2\@EA \endcsname \fi {#4}
\dostopattributes
\dosingletexts ...atetexts {#1#2#5}{#6{}{}{}}}}}}}
\egroup
<argument> ...?tk \v!header \v!text \c!righttext }
\@@nmpos {\getvalue {\??tk...

\dododoplacelayouttextline ...#2 #3}\hbox to #1{#4
}\stoplayoutcomponent \get...
...
l.74 \section
{sec2}
?
---

Here know my texfile:
---
\setuppapersize [A4][A4]
\setupcolors[state=start]

\setuppagenumbering[location={footer,right}]

% Solution from http://archive.contextgarden.net/message/20050515.201803.67299570.html
\setupthinrules[color=red,height=1mm]

\starttext
\section{sec1}
\page
\section{sec2}
\stoptext
---

Thanks in advaned for our help ;-)

Greetings

al ;-)