I used to set section headings in uppercase with the sectsty package \MakeUppercase. But this gives problems when using references in section headings. So how does one do it properly?
Here is a minimal example:
\documentclass{article}
\usepackage{nameref}
\usepackage{sectsty}
\sectionfont{\MakeUppercase}
\begin{document}
\begin{description}
\item [Keyword\label{key}] This is the description text.
\end{description}
\section{Here it does not work: \nameref{key}}
Here it works: \nameref{key}.
\end{document}
