I'd like to use namerefs within a sentence, and have the case of the resulting text match the position within the sentence. The section title is naturally title case, but is there some command to either a) force lowercase of namerefs (\lowercase{} doesn't work), or b) insert init-case, i.e., uppercase the initial word if it's at the beginning of a sentence, lowercase elsewhere?
Example:
\section{Object}
\label{sec:obj}
[definition of an object]
...
\nameref{sec:obj} instance variables are often called simply "\nameref{sec:obj}".
should produce:
Object
[definition of an object]
...
Object instance variables are often called simply "object".
Note case difference at the start and in the middle of the sentence.
casesenvironment fromamsmath... – SamB Sep 27 '10 at 21:17