From: Bernd Militzer <bernd@militzer.net>
Subject: firstpageheader -- lastpagefooter
Date: 28 Oct 2003 13:00:04 +0100 [thread overview]
Message-ID: <1067342404.1772.2.camel@eagle.militzer.net.local> (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
reply other threads:[~2003-10-28 12:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1067342404.1772.2.camel@eagle.militzer.net.local \
--to=bernd@militzer.net \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).