This has been a known issue with a workaround for years (see URL). The workaround is this patch, and the fix is texlive-2009 (more precisely, a newer version of the 'caption' package). There's a note about the real fix in the Debian mailing list. Index: latex-beamer-3.07/base/beamerbasecompatibility.sty =================================================================== --- latex-beamer-3.07.orig/base/beamerbasecompatibility.sty 2008-07-18 04:30:30.144652041 +0800 +++ latex-beamer-3.07/base/beamerbasecompatibility.sty 2008-07-18 04:31:18.850651546 +0800 @@ -146,6 +146,11 @@ \providecommand\l@part{} \providecommand\l@chapter{} +% +% Fix for subfig +% +\providecommand\ext@table{} +\providecommand\ext@figure{} =========3 blank lines above========== Reproducible: Always Steps to Reproduce: I'll attach a file that causes failure with an unpatched latex-beamer.
Created attachment 212590 [details] beamer_fail.tex Running the test: $ pdflatex beamer_fail You'll need to have a file 'img.png' in the current directory.
Created attachment 216143 [details] latex-beamer-3.07.ebuild So I updated to TeXLive 2009 finally, and I am sad to say that the newer version of 'caption' does not fix anything. I'm attaching an ebuild and later the patch to hopefully move things along a bit quicker.
Created attachment 216144 [details, diff] subfig-compatibility.patch What was promised.
This patch has been incorporated to beamer 3.08. Unfortunately I failed to modify latex-beamer-3.07.ebuild for beamer 3.08 (new beamer maintainer renamed root directory in a tarball, and I suppose that some eclass function should be overriden in the ebuild to handle this correctly, but I haven't got my arms around it yet).
So let's make this a bump request to fix the problem once and for all.
Bumped to 3.10 - this should solve the problem