This is related to the question asked in Using Description environment with cleveref. I wonder if there is a clean solution to reuse titles of items in the description. E.g. given the following piece of latex:

    \item[TEST\label{itm:test}] test

I need some macro descriptionTitle such that \descriptionTitle{itm:test} produce TEST. I do not mind TEST to be a reference to this description item, but I do not want to replace TEST and others each time someone comes up with a better name than TEST.

Thanks a lot!

1 Answer 1


You can use hyperref and define a marker called \namedlabel:


% definition of environment

% definition of named label


\section{Statements with float}


      \item[\namedlabel{state1}{Statement 1}] This is the first statement.
      \item[\namedlabel{state2}{Statement 2}] This is the second statement. 
      \item[\namedlabel{state3}{Statement 3}] This is the third statement


Reference to whole thing: See Statements \ref{state:example}.

Reference to a single statement: See  \ref{state2}. 

Note that if you refer to the float you get only the number, but if you refer to the description item itself you get the whole label.

\section{Statements without float}

      \item[\namedlabel{state4}{Statement 4}] This is the fourth statement.
      \item[\namedlabel{state5}{Statement 5}] This is the fifth statement. 

See \ref{state4}. 


I put the float environment that I created along with this (with the float package), but as you can see in the second section it works fine without it.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .