I have the following MWE:
\documentclass{article}
\usepackage{amsthm}
\usepackage{hyperref}
\newtheorem*{definition}{Definition}
\begin{document}
\section{Section Definitions}
\begin{definition}[symmetric matrix]
\label{def:sym.mat}
A quadratic matrix $X$ is called \emph{symmetric}, if $X^{\dagger} = X$.
\end{definition}
This is a reference to \autoref{def:sym.mat}.
\end{document}
The Output of the reference sentence is:
This is a reference to section 1.
I want to get:
This is a reference to Definition (symmetric matrix).
I know how to cross-reference different theorem-like environments like lemma, theorem with the aliascnt package. But my definitions, unlike theorems, are not numbered but instead contain an unique phrase in rectangular brackets on what they define.
Is there a way to overload \label and \ref or \autoref so that the displayed text for the reference is the composite of the environment name (here 'Definition') and the optional argument (here 'symmetrix matrix')? Maybe analog to this answer in Reference name of description list item in LaTeX.
I want to avoid defining a manual reference display text for each definition environment. I guess I somehow have to update \@currentlabel with \thmnote?
If this questions was already asked & answered, I am happy if somebody points me to it.
cleveref
? – Bernard Jul 23 '14 at 12:30