A convenient way to include a picture in the title page of a beamer document is to use \includegraphics inside the title environment. The drawback is that the filename of the document that shows up in the titlebar of some pdf readers includes also the filename of the picture and some positioning commands.

E.g., for the minimal working example


\title{\hspace{-0.5cm} \includegraphics[width=0.1\textwidth]{pdflogo.pdf}\\ \hspace{0.5cm}\\ \large My Custom Title}




the result is (in Okular under Debian Linux)

Screenshot of minimal working example in Okular

As the Okular handbook writes (on p. 30) "Display document title in titlebar if available. Whether to show the current document title in the titlebar of Okular window. If no meta-data for title found in the document or this item is unchecked Okular shows filename of the document." I believe this is an issue with the meta-data.

However, changing the metadata via hyperref with

    pdftitle={My Custom Title}

or pdfinfo with

\pdfinfo{/Title (My Custom Title)}

or adding a short title with

\title[My Custom Title]{\hspace{-0.5cm} \includegraphics[width=0.1\textwidth]{pdflogo.pdf}\\ \hspace{0.5cm}\\ \large My Custom Title}

does not solve the problem.

Question: Is there a way to change the metadata in a way that one can customize the titlebar entry of the pdf viewer (if taken from metadata)?

Note that this issue does not show up at most pdf viewers as they just use the filename in the titlepage (e.g, Acrobat reader under Windows or Mac, Sumatra under Windows). However, it does not seem to be Okular specific, as I could reproduce it with other viewers/programs (e.g., Evince and Gimp on Debian Linux).

2 Answers 2


Instead of spending time getting around the side effects from misusing the \title command you should better define your own title page template:


\title{My Custom Title}

\defbeamertemplate{title page}{mystyle}[1][]

\setbeamertemplate{title page}[mystyle]




enter image description here

Instead of the combo \defbeamertemplate + \setbeamertemplate you can use \defbeamertemplate* which will activate the new template directly.


As mentioned in this answer, you can pass option usepdftitle=false to beamer (\documentclass[usepdftitle=false,...]{beamer}). After that, \hypersetup{pdftitle=foo} should work as intended.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .