[Tugindia] capitalization of the first letter in a sentence

Krishna Mohan Gundu gkmohan at gmail.com
Fri May 26 05:23:30 CEST 2006


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.


More information about the tugindia mailing list