jtc@van-bc.wimsey.bc.ca (J.T. Conklin) (06/12/90)
In article <3430@ruuinf.cs.ruu.nl> piet@cs.ruu.nl (Piet van Oostrum) writes: >\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}} Thanks Piet, I tried reversing the \index and \lowercase in the macros and they worked fine. No more editing the index file by hand... for now. But eventually, I may need to add an index entry which is an acronym or something like that and shouldn't be lowercased. Is there any way to build a \dictcase macro that would convert text as follows: TEXT -> TEXT Text -> text text -> text --jtc -- J.T. Conklin UniFax Communications Inc. ...!{uunet,ubc-cs}!van-bc!jtc, jtc@wimsey.bc.ca
piet@cs.ruu.nl (Piet van Oostrum) (06/13/90)
In article <488@van-bc.wimsey.bc.ca>, jtc@van-bc (J.T. Conklin) writes: | |But eventually, I may need to add an index entry which is |an acronym or something like that and shouldn't be lowercased. You can make a \code macro that does the lowercasing and a \CODE macro that doesn't. Why should you make a tool if you can specify it yourself? -- Piet van Oostrum <piet@cs.ruu.nl>