How to get rid of those beamer warnings
27 September 2008 by Stefan Kottwitz
Many users of the beamer class are irritated by several beamer warnings at every compiler run that are not caused by themselves, I’m referring to the beamer version 3.07. Those warnings are not really important, but it’s a good habit to debug all warnings instead of just ignoring them, otherwise an important warning could easily be overlooked.
When I compile this really small example:
\documentclass{beamer} \begin{document} \begin{frame} Test \end{frame} \end{document}
I’m getting 6 warnings, after the second compilation of course less, but these 4 warnings remain:
- Package pgf Warning: This package is obsolete and no longer needed on input line 13.
- Package hyperref Warning: Option `pdfpagelabels’ is turned off
(hyperref) because \thepage is undefined.
Hyperref stopped early - LaTeX Font Warning: Font shape `OT1/cmss/m/n’ in size <4> not available
(Font) size <5> substituted on input line 6. - LaTeX Font Warning: Size substitutions with differences
(Font) up to 1.0pt have occurred.
Let’s eliminate those warnings:
- beamer.cls is loading the obsolete package pgfbaseimage.sty that does nothing but loads pgfcore and prints out this warning. If you put a file with the same name pgfbaseimage.sty somewhere into your texmf directory (TEXMFHOME for example) or into the directory of your tex document containing just the line \RequirePackage{pgfcore} the warning will disappear.
- Set pdfpagelabels to false by yourself, by providing a beamer class option: hyperref={pdfpagelabels=false}
- beamerbasefont.sty defines the commands \Tiny and \TINY to choose very small font sizes. Redefine at least \Tiny or load a font providing that size, for instance Latin Modern.
- fixed by 3.
The new file:
\documentclass[hyperref={pdfpagelabels=false}]{beamer} \let\Tiny=\tiny \begin{document} \begin{frame} Test \end{frame} \end{document}
will not cause warnings any more. Using those workarounds you won’t be annoyed by unnecessary warnings during development of presentations. Though the redefinition of \Tiny will fix it for Computer Modern fonts I recommend to consider to use Latin Modern instead:
\usepackage{lmodern}
This entry was posted on 27 September 2008 at 10:23 PM and is filed under Presentations. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.




13 October 2008 at 8:48 PM
Finally got rid of the two fontsize related warnings thanks to this post. Thanks a lot!
20 October 2008 at 11:10 AM
Hi,
Thank you for this workaround. It got on my nerves pretty soon.
Unfortunately I’ve still got another warning in this Mimimal-Example:
\documentclass[hyperref={pdfpagelabels=false}]{beamer}
%\usepackage{default}
\let\Tiny=\tiny
\begin{document}
\author{Max Muster}
\begin{frame}
Test
\end{frame}
\end{document}
This will give the following warning: Package hyperref Warning: Option `pdfauthor’ has already been used,
(hyperref) setting the option has no effect on input line 5.
I use pdfTeX, Version 3.1415926-1.40.9 (MiKTeX 2.7)
Document Class: beamer 2007/03/11 cvs version 3.07 (rcs-revision 1.70)
Do you know why? Or how I can get rid of it?
Thank you a lot!
B-ellanna
20 October 2008 at 4:00 PM
Hi B-ellanna,
just call \author{Max Muster} before \begin{document} and this warning will disappear too.
Stefan
21 October 2008 at 5:29 PM
So easy?
Thank you very much!!
B-ellanna
14 November 2008 at 5:40 AM
wow,
thanks a lot, that was really annoying
16 November 2008 at 6:06 AM
I wonder how could i debug pdfLatex in using beamer. I am preparing slides but when I run it with pdfLatex, it says that”pdfLatex failed to creat a pdf file”. How can I resolve the problem. Thanks
4 March 2009 at 6:44 PM
\RequirePackage{pgfcore} could NOT get rid of the warning: Package pgf Warning: This package is obsolete and no longer needed on input line 13.
5 March 2009 at 1:41 AM
The trick with \RequirePackage{pgfcore} works if you create your own pgfbaseimage.sty as described above.
Stefan
18 March 2009 at 8:20 PM
Thanks, Stefan. It did fix errors from my presentation. Great!
19 March 2009 at 6:08 PM
Great info! Thanks.
24 March 2009 at 9:32 PM
Thank you so much for posting the above.
5 April 2009 at 8:27 PM
Great! Thanks a lot for posting these instructions! These warnings were really annoying.
6 May 2009 at 10:25 AM
Hey!
Thanks a lot. It worked perfectly! Got rid of all the pesky warnings.
I did not make/change the pdfbaseimage.sty file. I just made the changes you mentioned, and the warnings disappeared by themselves.
10 May 2009 at 4:40 AM
Hi, Thank you so much! These fixes helped me clean up all the warnings! Thanks again!
30 May 2009 at 12:05 PM
[…] Re: Beamer: obsolet-Warnhinweis Ja, siehe auch: http://texblog.net/latex-archive/pre…amer-warnings/ […]
19 August 2009 at 5:03 PM
Thanks for this workaround, which finally kept those warnings from bugging me while I prepare my PhD defense presentation !
8 November 2009 at 8:24 PM
[…] Tomado de texblog.net […]
9 November 2009 at 9:52 AM
sorry, I still can’t get rid of everything. In this example:
\documentclass[hyperref={pdfpagelabels=false}]{beamer}
\let\Tiny=\tiny
\author{Max Muster}
\begin{document}
\begin{frame}
Test
\end{frame}
\end{document}
I get this warning:
$ pdflatex example.tex
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
…
(/usr/share/texmf-texlive/tex/latex/oberdiek/kvoptions.sty)
Implicit mode OFF; no redefinition of LaTeX internals
(/usr/share/texmf-texlive/tex/latex/ltxmisc/url.sty)
Hyperref stopped early
)
*hyperref using default driver hpdftex*
(/usr/share/texmf-texlive/tex/latex/hyperref/hpdftex.def)
…