I have some beamer slides for which many commands are defined in the preamble before the document environment. The author setting is defined by an author variable which contains strikethrough text provided by the package ulem
. The author setting is defined using this variable in the preamble for technical reasons.
\documentclass{beamer}
% strikethrough
\usepackage[normalem]{ulem}
\newcommand{\authorSpecification}{
\sout{G.~Aad et.~al.}
}
\title{title}
%\author{test}
\author{\authorSpecification}
\date{\today}
\begin{document}
\frame{\titlepage}
\end{document}
When I try to compile this, I am presented with the following error:
! Argument of \UL@word has an extra }.
<inserted text>
\par
l.11 \author{\authorSpecification}
How can I fix this?