I've been searching the web for a solution for this problem for some time now. I couldn't find a solution, so I thought I'd post it here.
So here goes:
I have an enumerated list 4 levels deep. I labeled all the items, because I want to use the references in a table somewhat later. Only the format of the \ref is wrong. It now displays as: 2(e)iiiA
whereas I would like it to be: 2.e.iii-A (or 2.e.iii.A if that is easier).
I hope someone can help me resolve this problem, because it shouldn't be that difficult, I guess...
Code: Select all
\documentclass{article}
\begin{document}
\begin{enumerate}
\item One \label{one}
\begin{enumerate}
\item One.a \label{onea}
\begin{enumerate}
\item One.a.one \label{oneaone}
\begin{enumerate}
\item One.a.one-A \label{oneaonea}
\end{enumerate}
\end{enumerate}
\end{enumerate}
\end{enumerate}
\ref{one} should be 1\\
\ref{onea} should be 1.a\\
\ref{oneaone} should be 1.a.i\\
\ref{oneaonea} should be 1.a.i-A (or 1.a.i.A)\\
\end{document}