For typesetting in italics LaTeX provides the command \textit{<some text>} and also the declaration \itshape used as {\itshape <some text>}.
There is also the command \MakeUppercase{<some text>}. I would like to be able to have a declarative form like {UppercaseIt <some text>} but I have been unable to produce one. I tried to find the definitions of textit and \itshape in the hopes of doing something similar in transforming one into the other. I tried texdoc article but that didn't have the definitions so they must be somewhere else.
}not a table cell or end of environment etc then it's posssible to fake something. – David Carlisle Sep 22 '21 at 17:17