I'm writing a textboox in latex, and I have things like
\textit{some definition}\index{Some Definition}
all over the place. I'd like to combine them into something like
\define{some definition}
and have it expand automagically. So I can have
\newcommand{\define}[2]{\textit{#1}\index{#2}}
which works, but forces me to include both arguments. The second argument is almost always the first argument with the first letter of each word uppercased. How can I write a command which uppercases the first character of each word?
Suggestions of better indexing best practices would also be appreciated.