Using the titling package for a beamer class document results in an error even for the simplest possible setup (see example below). I did not find any documentation that would rule out using titling in a beamer class document. My question thus is:
Can you help me getting the titling package to work?
If not, are there good alternatives to make commands like
\thetitle
,\theauthor
,\thedate
available in a beamer document?
Description: The following MWE
\documentclass[10pt]{beamer}
\usepackage{titling} %
%
\title{Some title}
\author{A.N. Author}
\date{Some Day}
%
\begin{document}
\frame{\titlepage}
\end{document}
results in an error
! Undefined control sequence.
l.35 \if@titlepage
While the same code compiles fine when the titling package is not loaded. It also runs fine with the titling package when using the article class.
I am using pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017/Debian) and compile in TeXStudio.