[Tex/LaTex] Problem with enumerate package in beamer class

#enumeratebeamerlists

I use this in my personal .sty file to change the standard enumerate scheme (when I do homework it better matches the numbering scheme in texts/MSWord):

\usepackage{enumerate}

% Change enumerate numbering scheme
\renewcommand{\theenumi}{(\alph{enumi})} 
\renewcommand{\labelenumi}{\theenumi} 
\renewcommand{\theenumii}{{(}\roman{enumii}{)}} 
\renewcommand{\labelenumii}{\theenumii}

But the other day I created a beamer presentation (that didn't call the enumerate package) and I keep getting these errors:

/etc/texmf/tex/latex/herron.sty|7 error| \labelenumi undefined.
/etc/texmf/tex/latex/herron.sty|9 error| \labelenumii undefined.

It compiles just fine and I have no complaints with the .pdf it generates, but I would like to understand why this happens (and make the error go away, mainly because I'm using Vim anf vimlatexsuite and it's a bit of pain to deal with the panes that split out).

Thanks!

Best Answer

My guess is that the beamer class doesn't define \labelenumi etc., then \renewcommand complains, but nevertheless defines the command so that there is effectively no difference. One possible solution is to use the TeX primitive \def, which creates or overwrites commands without checks:

\def\labelenumi{\theenumi}