[Tex/LaTex] Beamer error when using ‘\usepackage{beamerthemeshadow}’

beamer

I'm testing some examples with Beamer, and when I run this example, I have this error message.

> \ProvidesPackageRCS=macro:
->\def \pgfrcs@marshal {\ProvidesPackage {\pgf@rcsfile }}\pgfrcs@parserest .
l.1 \show\ProvidesPackageRCS

I just ignore it, and return to get the pdf file anyway.

This line causes the problem

\usepackage{beamerthemeshadow}

As replacing with this line, I have no error message at all.

\usetheme{Warsaw}
  • What's wrong with this beamerthemeshadow?
  • What's the difference between using \usepackage{} and \usetheme{} in Beamer?

I use MacTeX 2009.

Best Answer

Shadow is an old style theme, and the manual suggests using Warsaw instead. The file you're citing is dated 2007, which means maybe the original author was used to the old conventions of \usepackage versus \usetheme.

However, the message you quote is not an error. The first line of whatever file you're actually compiling must have \show\ProvidesPackageRCS in it, and the normal behavior of \show is to interrupt compiling and output the next token's definition. As you note, ignoring the message doesn't cause any further compile problems.

I have MacTeX 2009 installed as well, and my beamerthemeshadow.sty doesn't have that in it, but maybe the one you're reading does.

Anyway, long story short, don't worry about a non-error when using an obsolescent theme. Just use Warsaw and go about your business. :-D