[Tex/LaTex] LaTeX Beamer: Enumerate with manual numbers

#enumeratebeamer

I'd like to do the following enumeration in beamer;

1. First Item
2. Second Item
3. Third Item
3'. Alternative Version of Third Item.

However, if I do this:

  \begin{enumerate}
    \item First Item
    \item Second Item
    \item Third Item
    \item[3'] Alternative Third Item
  \end{enumerate}

then the last item doesn't appear with the usual bullet style.

enter image description here

Help?
Thanks!

Best Answer

The following solution is independent of the theme used and will always produced the appropriate format for the items in the first level of enumerate (the minipages in the example are just for brevity and are not relevant for the solution):

\documentclass{beamer}
\usetheme{Warsaw}
\usepackage{etoolbox}

\newcommand\Pitem{%
  \addtocounter{enumi}{-1}%
  \renewcommand\theenumi{\arabic{enumi}'}%
  \item%
  \renewcommand\theenumi{\arabic{enumi}}%
}

\begin{document}

\begin{frame}
\begin{minipage}{.5\linewidth}
\begin{enumerate}
\item First.
\item Second.
\item Third.
\Pitem Third prime.
\item Fourth.
\item Fifth.
\item Sixth.
\Pitem Sixth prime.
\item Seventh.
\end{enumerate}
\end{minipage}%
\begin{minipage}{.5\linewidth}
\setbeamertemplate{enumerate item}[square]
\begin{enumerate}
\item First.
\Pitem First prime.
\item Second.
\item Third.
\item Fourth.
\Pitem Fourth prime.
\item Fifth.
\item Sixth.
\item Seventh.
\end{enumerate}
\end{minipage}%
\end{frame}

\end{document}

enter image description here

Use \Pitem for the item(s) that will be "primed".