ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: fg@fgbbs.iaf.nl (Frans Goddijn)
Subject: Tried it myself first... ;=}
Date: 30 Jul 98 19:16:01 +0100	[thread overview]
Message-ID: <2b8_9807302200@fgbbs.iaf.nl> (raw)

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


             reply	other threads:[~1998-07-30 18:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-07-30 18:16 Frans Goddijn [this message]
1998-07-31  8:39 Hans Hagen
1998-07-31 12:13 Frans Goddijn
1998-07-31 16:23 Hans Hagen

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=2b8_9807302200@fgbbs.iaf.nl \
    --to=fg@fgbbs.iaf.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).