Hi all, While developing a manual I encounter the following problem. Each document of the manual carries a header, where a version number is placed. In this case the version number is a date. The manual table of contents requires, that the name of the document (chapter name) is placed followed by the version number which Ii mentioned above. I spent some hours to try to tweak things to get the desired result. - Unfortunately unsuccesfully. May be that I want to achieve something which is impossible due to the way TeX is generating the table of contents. - If you compile hte attached file you get a table of contents which looks in first instance as it is required. The 'only' problem is, that all documents get the version number defined in the setuparea (Compare the presentation of the version number to the versionnumbers as they appear in the header) Any suggestions? Thanks Willi
Hi Patrick, Thanks a lot for your perfect answer. - It works as I had it in mind! Indeed I tried to place \expanded but never put it in front of the whole as you did. - Gosh when am I going to understand TeX?? - Oh no, its no reason to stop loving and using it! :-)
\expanded{\writetolist[Mychapter]{Troubleshooting}{\hfill \Version}}
Willi
At 10:49 AM 2/5/2003 +0100, Willi Egger wrote:
Hi all,
While developing a manual I encounter the following problem.
Each document of the manual carries a header, where a version number is placed. In this case the version number is a date. The manual table of contents requires, that the name of the document (chapter name) is placed followed by the version number which Ii mentioned above.
I spent some hours to try to tweak things to get the desired result. -
here is a 10 second solution: \setuplist[Mychapter][expansion=yes] % yes|command|no % or \expanded{...} ... Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Patrick Gundlach
-
Willi Egger