Hello, Is it possible to detect if a macro is expanded at the beginning of a sentence and thereby capitalize the first letter? Say I have a macro \newcommand{\fref}[1]{figure \ref{#1}} and a sentence begins with \fref{}. In this case how do I capitalize the "f" in the "figure"? thanks, Krishna.