[comp.text.tex] Uppercase question

NN1@awiwuw11.wu-wien.ac.at (10/15/90)

I have unsuccessfully tried my luck on the following TeX challenge:

Suppose you have a macro, say \a@thor, which will expand to a sequence
of tokens containing further macros, etc. For definiteness sake assume
it expands to "John Doe\address{Univ. of Minnesota}\thanks{to nobody}
                    \and Mike Doe"
(without the quotation marks). The goal is to write a macro which would
uppercase everything that is not the argument of another macro. In our
example, we should uppercase "John Doe" and "Mike Doe", but we should not
affect anything else (and \address, \thanks, and \and should expand to
their normal meanings, but be unaffected by the uppercase).

Simply putting uppercase there won't work, since we end up uppercasing
everything (the expansion of \address, \thanks, ...). I have tried breaking
up expansion of \a@thor similar the way verbatim is doing it, but had
no luck due to the catcode of \ which I could not match.

Any hints?

Thomas Weigert, K316670@aearn.bitnet