Path: utzoo!attcan!uunet!mcsun!hp4nl!ruuinf!piet From: piet@cs.ruu.nl (Piet van Oostrum) Newsgroups: comp.text.tex Subject: Re: LaTeX Indexing Message-ID: <3430@ruuinf.cs.ruu.nl> Date: 11 Jun 90 09:45:11 GMT References: <486@van-bc.wimsey.bc.ca> Sender: news@ruuinf.cs.ruu.nl Reply-To: piet@cs.ruu.nl (Piet van Oostrum) Organization: Dept of Computer Science, Utrecht University, The Netherlands Lines: 21 In-reply-to: jtc@van-bc.wimsey.bc.ca (J.T. Conklin) In article <486@van-bc.wimsey.bc.ca>, jtc@van-bc (J.T. Conklin) writes: | I tried using \lowercase{}, |but it isn't evaluated until the index is printed. | | \newcommand{\code}[1]{{\bf #1}\index{\lowercase{#1}}} | \uppercase and \lowercase are strange beasts, as they are not expandable (evaluation is a non-TeX term), this means that they only do something when they are processed in TeX's ``stomach'', i.e. when they are about to be processed as output. The converted token list is then again read as input. So in this case the following will probably work: \lowercase{\index{#1}} I don't know why Knuth choose this way rather than making them expandable. -- Piet* van Oostrum, Dept of Computer Science, Utrecht University, Padualaan 14, P.O. Box 80.089, 3508 TB Utrecht, The Netherlands. Telephone: +31-30-531806 Uucp: uunet!mcsun!ruuinf!piet Telefax: +31-30-513791 Internet: piet@cs.ruu.nl (*`Pete')