1

I'm working on a beamer theme in which the title page should have the graphic on top. By reading beamerinnerthemedefault.sty I thought I could accomplish this by setting the title page template.

Here is an MWE:

\documentclass{beamer}
\title{Lorem Ipsum}
\subtitle{Ut molestie eros sed enim}
\author{Aspasius Protus}
\date{June 26, 2023} 
\usepackage{lipsum}
\titlegraphic{graphic}

\setbeamertemplate{title page}{
  \vbox{}
  \usebeamertemplate{titlegraphic}
  \vfill
  \begingroup
    \centering
    \usebeamertemplate{title}
    \vskip1em\par
    \usebeamertemplate{author}
    \usebeamertemplate{institute}
    \usebeamertemplate{date}
  \endgroup
}


\begin{document}
\maketitle
\end{document}

The document compiles successfully with no errors or warnings, but the title page comes out blank. Here is the log file.

I must be misunderstanding something about how \setbeamertemplate works without a predefined option. But what?

4
  • Can you show your .log file? This is the result I get with your mwe i.stack.imgur.com/Pl3as.png Jun 29 at 11:19
  • @samcarter_is_at_topanswers.xyz That's strange. I tried Overleaf as well as my own machine (TeXShop on a mac). I can't paste the log into the question because it's too long, but I added a pastebin link. Jun 29 at 11:45
  • Try with beamer v3.70, the titlegraphic, title, author, institute and date templates are new. Jun 29 at 11:56
  • Aha, that sounds promising. I'll check that out. Jun 29 at 12:01

1 Answer 1

1

The titlegraphic, title, author, institute and date templates were recently added in https://github.com/josephwright/beamer/commit/5a06df06cf88917234dfe86f7e06b064808fc618 . You will need at least beamer v3.70 to use these templates in your title page.

Alternatively you could define them yourself:

\documentclass{beamer}
\title{Lorem Ipsum}
\subtitle{Ut molestie eros sed enim}
\author{Aspasius Protus}
\date{June 26, 2023} 
\usepackage{lipsum}
\titlegraphic{graphic}

\setbeamertemplate{title}{%
  \begin{beamercolorbox}[sep=8pt,center]{title}
    \usebeamerfont{title}\inserttitle\par%
    \ifx\insertsubtitle\@empty%
    \else%
      \vskip0.25em%
      {\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle\par}%
    \fi%     
  \end{beamercolorbox}%
}

\setbeamertemplate{author}{%
  \begin{beamercolorbox}[sep=8pt,center]{author}
    \usebeamerfont{author}\insertauthor
  \end{beamercolorbox}
}

\setbeamertemplate{institute}{%
  \begin{beamercolorbox}[sep=8pt,center]{institute}
    \usebeamerfont{institute}\insertinstitute
  \end{beamercolorbox}
}

\setbeamertemplate{date}{%
    \begin{beamercolorbox}[sep=8pt,center]{date}
      \usebeamerfont{date}\insertdate
    \end{beamercolorbox}
}

\setbeamertemplate{titlegraphic}{%
  {\usebeamercolor[fg]{titlegraphic}\inserttitlegraphic\par}
}

\setbeamertemplate{title page}{
  \vbox{}
  \usebeamertemplate{titlegraphic}
  \vfill
  \begingroup
    \centering
    \usebeamertemplate{title}
    \vskip1em\par
    \usebeamertemplate{author}
    \usebeamertemplate{institute}
    \usebeamertemplate{date}
  \endgroup
}


\begin{document}
\maketitle
\end{document}

enter image description here

2
  • Thanks! I can confirm that updating my local version of beamer to 3.70 worked for me. This workaround is good for people (i.e., Overleaf users) who can't update their TeX-live unilaterally. Jun 29 at 12:08
  • @MatthewLeingang You're welcome! Jun 29 at 12:09

You must log in to answer this question.

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