From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/105 Path: main.gmane.org!not-for-mail From: fg@fgbbs.iaf.nl (Frans Goddijn) Newsgroups: gmane.comp.tex.context Subject: Tried it myself first... ;=} Date: 30 Jul 98 19:16:01 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <2b8_9807302200@fgbbs.iaf.nl> NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035390981 21351 80.91.224.250 (23 Oct 2002 16:36:21 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 16:36:21 +0000 (UTC) Original-To: ntg-context@ntg.nl Xref: main.gmane.org gmane.comp.tex.context:105 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:105 About my wishes for clever headers, Hans Hagen said: HH> Try it yourself first ... That inspired me to have a go at it! I have it working now, although I think I should be able to get the commands shorter. Only problem is that the author and his booktitle are ingored in the table of contents, where only the colon is shown as chapter title information... This is the present code: [...] \def\deauteur{} % (re)define before each chapter \def\zijnboek{} % (re)define before each chapter % author's name on left of verso page, % the booktitle on right of recto page % see the use of \hoofdstuk command later on \stelhoofdtekstenin [ ] [\zijnboek] [\deauteur] [ ] % the following line keeps headers on first chapter page empty \stelkopin[hoofdstuk][hoofd=leeg] \volledigeinhoud \def\deauteur{HAN B. AALBERSE} \def\zijnboek{Liesbeth en de wereld van Bob en Daphne} % the folowing line gets only ":" in the table of contents for this chapter \hoofdstuk{\deauteur:\\ \zijnboek} % I tried the following additions, no success % \hoofdstuk{\geentest\deauteur:\\ \geentest\zijnboek} % also tried \noexpand and \expandafter instead of \geentest % (even though I don't have a real clue what these do) % one of them made the title also vanish on the chapter page, % the other made no difference. tekst of chapter... \hoofdstuk{Tweede hoofdstuk} tekst tekstteksttekstteksttekst \stoptekst PS: In LaTeX, I could define a \newcommand{\deauteur}{} and later issue a new command \renewcommand{\deauteur}{Han B. AALBERSE} and/or then have a command \newcommand\auteur[1]{\renewcommand{\deauteur}{#1}} but I must find out how to re-\def an already \def'd command ;=} Met hartelijke groet! Frans Goddijn | bbs: +31 (0)26 3217041 Postbus 30196 | email: fg@fgbbs.iaf.nl 6803 AD Arnhem | tel: +31 (0)26 3219342 The Netherlands | http://www.iaf.nl/Users/Meridian -- You are what you is