ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Cc: ntg-context@ntg.nl
Subject: Re: Tried it myself first... ;=}
Date: Fri, 31 Jul 1998 10:39:28 +0200	[thread overview]
Message-ID: <35C182C0.BA1B3BB4@wxs.nl> (raw)

Frans Goddijn wrote:

> 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 due to suppressed expansion when saving the titles. 

\stellijstin[hoofdstuk][expansie=ja] 

is ene oplossing, maar beter kun je het synoniemen mechanisme gebruiken,
zie \afkorting (\abbreviation). Bijkoment voordeel is dat je dan de
gebruikte auteurs kan oproepen. 

> This is the present code:
> 
> [...]
> \def\deauteur{} % (re)define before each chapter
> \def\zijnboek{} % (re)define before each chapter

\definieersynoniem[Auteur][Auteurs][\Boek]

\Auteur {FRANS} {Frans Goddijn} { \ConTeXt\ voor experts}

\stelhoofdtekstenin [\FRANS] [\Boek{FRANS}]

Nu kun je ook opvragen

\plaatslijstmetAuteurs

> % 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.

Just turn expansion on. 

\expanded{\hoofdstuk{...}} would have worked also

> 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 ;=}

Just use \def. Suggestion: use capitals to prevent name clashes with
internal commands. 

Hans

-----------------------------------------------------------------
                                              Hans Hagen | PRAGMA
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | fax: 038 477 53 74 | mail: pragma@wxs.nl
-----------------------------------------------------------------


             reply	other threads:[~1998-07-31  8:39 UTC|newest]

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

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=35C182C0.BA1B3BB4@wxs.nl \
    --to=pragma@wxs.nl \
    --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).