Re: [NTG-context] \index + \definedescription
Hm, I have never been a programmer. Willi Pavel wrote: Your solution works, but I've figured out a very simple, though probably not very elegant one: defined \def\dictind#1{\startDictEntry{#1}\index{#1}} and replaced all \startDictEntry w/ \dictind. ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \index + \definedescription
On Thu, 09 Oct 2003 09:47:51 +0200 Willi Egger <[EMAIL PROTECTED]> wrote: > Possibly the following approach can help: > > Define a list \definelist[name][options] > Write to this list at each entry of the description \writetolist[name]{text} > At the spot where the list should occur \placelist[name] > > Programmers might write a macro which could be used in the description > definition together with e.g. [after=\TheMacro] which writes into the list. Thank you, Willi! Your solution works, but I've figured out a very simple, though probably not very elegant one: defined \def\dictind#1{\startDictEntry{#1}\index{#1}} and replaced all \startDictEntry w/ \dictind. Best, Pavel. ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \index + \definedescription
Hi Pavel At 06:27 09.10.2003, Pavel Stupin wrote: Hello, In my document, I have a description defined in this way: \definedescription[DictEntry][headstyle=bold,location=serried,width=broad] I use the DictEntry description like this: * \startDictEntry{Walters, Barbara (1931- )} a US television journalist known especially for her series Barbara Walters Special... \stopDictEntry \startDictEntry{Waterhouse, Keith (1929- )} an English journalist and writer of novels and plays... \stopDictEntry \startDictEntry{West, Rebecca (1892-1983)} an English writer and journalist. She wrote many novels... \stopDictEntry ... etc. * What I would like to do is to automatically create an \index{} for every DictEntry so that every entry then appear in the register. Probably, I should use 'between' parameter when defining my DictEntry description, but I'm confused with what should be the proper argument in 'between=\index{???}. I would appreciate any help. Possibly the following approach can help: Define a list \definelist[name][options] Write to this list at each entry of the description \writetolist[name]{text} At the spot where the list should occur \placelist[name] Programmers might write a macro which could be used in the description definition together with e.g. [after=\TheMacro] which writes into the list. Willi ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \index + \definedescription
Hello, In my document, I have a description defined in this way: \definedescription[DictEntry][headstyle=bold,location=serried,width=broad] I use the DictEntry description like this: * \startDictEntry{Walters, Barbara (1931- )} a US television journalist known especially for her series Barbara Walters Special... \stopDictEntry \startDictEntry{Waterhouse, Keith (1929- )} an English journalist and writer of novels and plays... \stopDictEntry \startDictEntry{West, Rebecca (1892-1983)} an English writer and journalist. She wrote many novels... \stopDictEntry ... etc. * What I would like to do is to automatically create an \index{} for every DictEntry so that every entry then appear in the register. Probably, I should use 'between' parameter when defining my DictEntry description, but I'm confused with what should be the proper argument in 'between=\index{???}. I would appreciate any help. Thank you in advance. Best, Pavel. ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context