In the following code, if you change \def to \edef the code crashes. Nor can you perform normal string operations or tests. Removing hyperref (and replacing \ref* with \ref) works fine with \edef. Is there a way to convert \ref* into a usable string?
\documentclass{article}
\usepackage{hyperref}
\begin{document}
\section{Section}\label{first}
\def\temp{\ref*{first}}\noindent Section = \temp
%\edef\temp{\ref*{first}}\noindent Section = \temp
\end{document}
usable string? From the [tag:xstring] I'm guessing there is more to this question. – percusse Oct 26 '14 at 20:30