Hello I want to do an explanation between the items of a enumerate environment, I found this:
\newcounter{saveenumerate}
\makeatletter
\newcommand{\enumeratext}[1]{%
\setcounter{saveenumerate}{\value{enum\romannumeral\the\@enumdepth}}
\end{enumerate}
#1
\begin{enumerate}
\setcounter{enum\romannumeral\the\@enumdepth}{\value{saveenumerate}}%
}
\makeatother
And I thought it work, but the problem is that if I change the numbers of enumerate with letters, it fails, as in the following example:
\documentclass{article}
\usepackage{enumerate}
\newcounter{saveenumerate}
\makeatletter
\newcommand{\enumeratext}[1]{%
\setcounter{saveenumerate}{\value{enum\romannumeral\the\@enumdepth}}
\end{enumerate}
#1
\begin{enumerate}
\setcounter{enum\romannumeral\the\@enumdepth}{\value{saveenumerate}}%
}
\makeatother
\begin{document}
A list:
\begin{enumerate}[a)]
\item number 1
\item things note usefull,
\item hello mom, I am famous;
\enumeratext{Some intertext}
\item not really, so sad.
\end{enumerate}
\end{document}
Any idea would help, I know the use of [resume] in enumitem, but using that package I don't know how to change the numbers for letters. Thanks.