Using \insertauthor
in \ifthenelse
statement throws an error (no error if it is used elsewhere in the document). \inserttitle
or \insertdate
works fine. Why do I get an error when I use \insertauthor
as below? You can see that I am trying to check if author information is provided.
\documentclass{beamer}
\usepackage{ifthen}
%\title{Title goes here}
\author{me}
\begin{document}
\ifthenelse{\equal{\insertauthor}{}}{empty}{not empty}
\end{document}