I am reporting here an issue that (in a way) has been discovered by the user Blitz of another LaTeX forum here.
Consider the MWE
\documentclass{beamer}
\begin{document}
\begin{frame}
\frametitle{What's going on here?}
\xdef\mytext{\underline{duck}}
\underline{underline is not the problem}
\end{frame}
\end{document}
On my TeXLive 2017 distribution, it throws the error
! Use of \beamer@@frametitle doesn't match its definition.
\new@ifnextchar ...served@d = #1\def \reserved@a {
#2}\def \reserved@b {#3}\f...
l.7 \end{frame}
If I replace \xdef
by \def
, no error occurs, and when I do not use \underline
but nothing or \textbf
, say, everything goes well. After some amount of playing, my impression is that the error appears if \xdef
and \underline
are used simultaneously.
QUESTION: Why is that and how can it be fixed?
\xdef\mytext{\underline{duck}}
is moved to the preamble it seems to work fine.\node[right=2cm of pointer\X.one east,murmel] (murmel\X) { \ifnum\X=4 MSVCRTexhandler \else Exception\underline{~~}handler\X () \fi };
\xdef
isn't a latex command....