How do you make a macro that takes 1 argument and forces the very first character to low?
So you could write the following:
\firstToLow{SOME TEXT INPUT OF VARIATING LENGTH}
And then get this output:
sOME TEXT INPUT OF VARIATING LENGTH
It should be supporting hyperref sou I will be able to write this:
\firstToLow{\textit{\nameref{label}}}
Best Answer
This is the reverse of
\makefirstuc
provided bymfirstuc
, which converts the first letter to uppercase. You can adapt it to lowercase by redefining\mfirstucMakeUppercase
. This behaves similarly to Bernard's comment, but can deal with any text-block font changing command applied to the text, provided the text to be changed is the first argument of the text-block command, as in the example below:Alternatively, wrapping it up in a command so that it doesn't interfere with any other use of
\makefirstuc
:In both cases the result is: