Alexander Zimmermann
2010-04-14 10:29:57 UTC
Hi all,
at one point I want to switch from numbers to custom label in my
enumeration. No problem so far. However, when want to reference the
custom label later on (\ref or \autoref), I get "item (1)" and not
the desired "item (R)". How could I fix it?
Alex
--
\documentclass{article}
\usepackage{enumitem, hyperref}
\pagestyle{empty}
\begin{document}
\begin{enumerate}[label=(\arabic*), ref=(\arabic*),
align=left, font=\bfseries]
\item\label{step:init}
This is step one
\item[(R)]\label{step:RTO}
Waiting for an retransmission timeout
\item\label{step:2}
If something happen, then goto \autoref{step:ende}, else
\autoref{step:RTO}
\item\label{step:ende}
End
\end{enumerate}
\end{document}
--
//
// Dipl.-Inform. Alexander Zimmermann
// Department of Computer Science, Informatik 4
// RWTH Aachen University
// Ahornstr. 55, 52056 Aachen, Germany
// phone: (49-241) 80-21468, fax: (49-241) 80-22220
// email: ***@cs.rwth-aachen.de
// web: http://www.umic-mesh.net
//
at one point I want to switch from numbers to custom label in my
enumeration. No problem so far. However, when want to reference the
custom label later on (\ref or \autoref), I get "item (1)" and not
the desired "item (R)". How could I fix it?
Alex
--
\documentclass{article}
\usepackage{enumitem, hyperref}
\pagestyle{empty}
\begin{document}
\begin{enumerate}[label=(\arabic*), ref=(\arabic*),
align=left, font=\bfseries]
\item\label{step:init}
This is step one
\item[(R)]\label{step:RTO}
Waiting for an retransmission timeout
\item\label{step:2}
If something happen, then goto \autoref{step:ende}, else
\autoref{step:RTO}
\item\label{step:ende}
End
\end{enumerate}
\end{document}
--
//
// Dipl.-Inform. Alexander Zimmermann
// Department of Computer Science, Informatik 4
// RWTH Aachen University
// Ahornstr. 55, 52056 Aachen, Germany
// phone: (49-241) 80-21468, fax: (49-241) 80-22220
// email: ***@cs.rwth-aachen.de
// web: http://www.umic-mesh.net
//