I need a special headertext for the first page and a special footertext
for the last page. 
With \firstpage and \lastpage I found no solution. 
How can I manage my problem?

thanks

Bernd

%
\def\sj{2003/04}        % Schuljahr
\def\art{Klassenarbeit}
\def\lfd{1}
\def\fach{WVK}
\def\thema{Verkaufsformen}
\def\kla{E23}           % Klasse

\defineenumeration[question][location=inmargin,text=]

\def\my1Header%
   {\framed[width=\hsize,align=right,frame=off]
    {\art\ Nr. \lfd\hfill\fach  \hfill
\sj\inright{\hfill\pagenumber~/~\lastpage~}\\
     Klasse: \kla\\
     Thema: \thema} 
   }
%
\def\myHeader%
   {\framed[width=\hsize,align=right,frame=off]
    {\kla\ %
     \art\ %
     Nr. \lfd %
     \hfill\fach%
     \inright{\hfill\pagenumber~/~\lastpage~}%
     \hairline}
   }
%
\setupheadertexts[\if{\firstpage}\my1Header\else\my1Header\fi]
%
\setupfootertexts[\txx \cap{\jobname}  \date]%
[\if{\lastpage}Ende \else \dots \fi]

\starttext

\question \dorecurse{20}{testquestion  } \par

\question \dorecurse{20}{testquestion  } \par

\page
\question \dorecurse{20}{testquestion  } \par

\stoptext

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

Reply via email to