How to get rid of those beamer warnings
September 27th, 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 Samstag, September 27th, 2008 at 22:23 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.





Oktober 13th, 2008 at 20:48
Finally got rid of the two fontsize related warnings thanks to this post. Thanks a lot!
Oktober 20th, 2008 at 11:10
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
Oktober 20th, 2008 at 16:00
Hi B-ellanna,
just call \author{Max Muster} before \begin{document} and this warning will disappear too.
Stefan
Oktober 21st, 2008 at 17:29
So easy?
Thank you very much!!
B-ellanna
November 14th, 2008 at 05:40
wow,
thanks a lot, that was really annoying
November 16th, 2008 at 06:06
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
März 4th, 2009 at 18:44
\RequirePackage{pgfcore} could NOT get rid of the warning: Package pgf Warning: This package is obsolete and no longer needed on input line 13.
März 5th, 2009 at 01:41
The trick with \RequirePackage{pgfcore} works if you create your own pgfbaseimage.sty as described above.
Stefan
März 18th, 2009 at 20:20
Thanks, Stefan. It did fix errors from my presentation. Great!
März 19th, 2009 at 18:08
Great info! Thanks.
März 24th, 2009 at 21:32
Thank you so much for posting the above.
April 5th, 2009 at 20:27
Great! Thanks a lot for posting these instructions! These warnings were really annoying.
Mai 6th, 2009 at 10:25
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.
Mai 10th, 2009 at 04:40
Hi, Thank you so much! These fixes helped me clean up all the warnings! Thanks again!
Mai 30th, 2009 at 12:05
[…] Re: Beamer: obsolet-Warnhinweis Ja, siehe auch: http://texblog.net/latex-archive/pre…amer-warnings/ […]
August 19th, 2009 at 17:03
Thanks for this workaround, which finally kept those warnings from bugging me while I prepare my PhD defense presentation !
November 8th, 2009 at 20:24
[…] Tomado de texblog.net […]
November 9th, 2009 at 09:52
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)
…
Februar 22nd, 2010 at 02:47
Thanks for this information. I found the solution here! Now making my pro. slideshows. So long
April 7th, 2010 at 15:41
Where do I put the pgfbaseimage.sty file (if I don’t want to put it in the the directory of the tex document)? I can’t figure out how to put it “somewhere into your texmf directory”. I have tried several places in:
C:\Program Files\MiKTeX 2.8
C:\Documents and Settings\~\Application Data\MiKTeX\2.8
C:\Documents and Settings\~\Local Settings\Application Data\MiKTeX\2.8
Thank you.
April 7th, 2010 at 16:52
Hi Bob,
below C:\Program Files\MiKTeX 2.8 (perhaps deeper in texmf or tex subdirectory, I dont use MiKTeX) should work.
But refresh the package database afterwards: open MiKTeX settings and click the button Refresh FNDB.
Stefan
April 7th, 2010 at 19:55
Thanks for your reply. I have saved it several places below C:\Program Files\MiKTeX 2.8. I wasn’t refreshing but I have now and still don’t get rid of the error. Thoughts? Thanks.
Mai 14th, 2010 at 04:09
Stefan,
Thanks much! I just started using Beamer today, and I appreciate the advice.
A note on warning #2: when I opened pdfbaseimage.sty, I found the following line:
\PackageWarning{pgf}{This package is obsolete and no longer needed}
Just commenting out this line and saving the file also eliminates the error for me.
Mai 14th, 2010 at 21:43
Hi Justin,
yes, that’s an easy way. I just would not recommend to modify package files of the TeX distribution directly, that’s why I’ve described that workaround.
Btw. I expect that the beamer warnings will go away soon, because there’s a new maintainer for the beamer package and the development will continue.
Stefan
Mai 26th, 2010 at 18:18
[…] etwas längerer Recherche fand ich hier heraus, dass diese Fehlermeldung aus den beamer classes stammt, und mit der simplen Zeile: […]
Juni 2nd, 2010 at 13:16
I got rid of the pfg warning as indicated, however my code is still not running, I got the message:
finished with exit code 70
and no output is produced… I am new at latex and I am using kile, any suggestion?
Thanks!
Juni 2nd, 2010 at 21:24
Hi Anna,
have a closer look at the lower part of the Kile window: at the “Log and Messages” tab and also at the “Output” tab. They should show more information. Or open the .log file generated by Kile/LaTeX. You could also post this file here, or a relevant part of it, if you want to discuss it further.
Best regards,
Stefan
Juni 24th, 2010 at 16:10
No longer necessary to manually set pdfpagelabels to off (generate weird output).
[package of 2010:06:18]
August 24th, 2010 at 17:30
Thank you!! Works fine!
August 27th, 2010 at 15:32
Hi all,
this should (must?) be disabled with beamer 3.10.
Those of you who use beamerposter in combination with beamer should (must?) change their poster TeX files:
\documentclass[final]{beamer} % beamer 3.10: do NOT use option hyperref={pdfpagelabels=false} !
%\documentclass[final,hyperref={pdfpagelabels=false}]{beamer} % beamer 3.07: get rid of beamer warnings
\mode { %% check http://www-i6.informatik.rwth-aachen.de/~dreuw/latexbeamerposter.php for examples
\usetheme{Berlin} %% you should define your own theme e.g. for big headlines using your own logos
}
\usepackage[orientation=portrait,size=a0,scale=1.4,debug]{beamerposter} % e.g. for DIN-A0 poster
Oktober 1st, 2010 at 04:50
Great Job… Thanks a lot
Januar 15th, 2011 at 12:50
Good tips! Finally I can compile without warnings!
Januar 22nd, 2011 at 18:33
Cheers, this fixed my LaTeX font warning instantly.
“LaTeX Font Warning: Font shape `OT1/cmss/m/n’ in size not available” — gone
März 15th, 2011 at 18:36
Hello Stefan,
Finally removed those annoying warnings.
Many thanks for your post.
BM
April 14th, 2011 at 08:48
Great!
This fixes all warnings in a minute.
Thank You,
Robert
Mai 11th, 2011 at 21:08
THX!!! Great Help
Juni 13th, 2011 at 22:24
Thanks so much! The warnings were driving me nuts!
Juni 15th, 2011 at 09:26
thanks … it works
Juni 16th, 2011 at 12:06
Thanks a lot!!
Juli 13th, 2011 at 05:39
THX a lot!
August 5th, 2011 at 13:55
Very helpful! Thank you very much!
September 25th, 2011 at 21:48
Very well done! Thank you very much!
Oktober 21st, 2011 at 09:37
over is the time of those annoying warnings—thanks a lot!
März 8th, 2012 at 05:53
Thanks! No more annoying warnings.
Juni 26th, 2012 at 14:28
Thanks a lot, great help!
Juli 10th, 2012 at 10:10
Perfect! Your entry is almost four years old, but still dead-on. Thanks a lot!