I am getting the following warning when I use beamer
Package hyperref Warning: Option `pdftitle' has already been used
I can recreate the problem with the following MWE based on the article
class
\documentclass{article}
\usepackage[implicit=false]{hyperref}
\AtBeginDocument{\hypersetup{pdftitle=mytitle}}
\begin{document}
Hello world
\end{document}
For reasons that are beyond my understanding (and beyond my desire to know) beamer
requires hyperref
to be loaded with implicit=false
. The \AtBeginDocument{\hypersetup{pdftitle=mytitle}}
occurs in a package written by me. Given that I need to load hyperref
with implicit=false
and I need to set pdftitle
after I load hyperref
, is there a way to avoid this warning (without using the silence
package)? Yes, I know it is only a warning and doesn't really matter.
Potentially helpful, but also potentially misleading is that
\documentclass{article}
\AtBeginDocument{\hypersetup{pdftitle=mytitle}}
\AtBeginDocument{\hypersetup{pdftitle=mytitle}}
\usepackage[implicit=false]{hyperref}
\begin{document}
Hello world
\end{document}
doesn't give the warning even though pdftitle
is given twice.