From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/108 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Tried it myself first... ;=} Date: Fri, 31 Jul 1998 10:39:28 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <35C182C0.BA1B3BB4@wxs.nl> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035390984 21362 80.91.224.250 (23 Oct 2002 16:36:24 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 16:36:24 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: Frans Goddijn Xref: main.gmane.org gmane.comp.tex.context:108 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:108 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 -----------------------------------------------------------------