A similar question has been already asked here, but has not been answered yet for fragile commands such as eg. \@author
?
What would be the right way to detect if \author
has been called with a value:
\usepackage{ifthen}
\usepackage{xifthen}
\usepackage{etoolbox}
\makeatletter
\ifXXXXXX{\@author}%
{%
author set \par
}{%
author not set at all \par
or set to \{\} () \par
or to {\textbackslash}empty
}%
\makeatother