ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* firstpageheader -- lastpagefooter
@ 2003-10-28 12:00 Bernd Militzer
  0 siblings, 0 replies; only message in thread
From: Bernd Militzer @ 2003-10-28 12:00 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-10-28 12:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-28 12:00 firstpageheader -- lastpagefooter Bernd Militzer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).