I would like to use \insertshortpart
(with some surrounding characters) in a Beamer theme, but only if a short part is actually available. However, if I try to check for emptiness with \ifx...\empty
it turns out that this expression is never true.
Here is a minimal example:
\documentclass{beamer}
\begin{document}
\begin{frame}
\ifx\insertpart\empty
empty part
\else
non-empty part
\fi
\ifx\insertshortpart\empty
empty short part
\else
non-empty short part
\fi
\end{frame}
\end{document}
This results in "empty part" and "non-empty short part".
How can I check if the short part is actually empty?
I had a similar problem with \insertshortdate
, \insertshorttitle
and \insertshortsubtitle
which I could solve by using \beamer@shortdate
, \beamer@shorttitle
and \beamer@shortsubtitle
instead, respectively.
For \insertshortpart
, however, I couldn't find a replacement.
BTW, what's the difference between \empty
and \@empty
? In my style file both seem to work ...
\empty
and\@empty
, see What is the difference between \empty and \@empty?. – You Apr 1 '13 at 10:19