The space that appears in the PDF above and below my align* environment is way to large. According to Remove vertical space around align, one of the two commented-out lines should remove it (at least the above space) but they change nothing.
- How can I remove the unwanted space, preferably globally?
- Why is this space so big? Is this a bug or a feature?
MWE:
\documentclass{beamer}
\usepackage{mathtools}
\newtheorem{question}{Question}
\newtheorem{answer}{Answer}
%\addtobeamertemplate{theorem begin}{\setlength\abovedisplayskip{0pt}\setlength\abovedisplayshortskip{0pt}}
\DeclareMathOperator{\argmax}{arg\,max}
\DeclarePairedDelimiter{\norm}{\lVert}{\rVert}
\begin{document}
\begin{frame}{Vector offsets}
We assume that a linguistic relationship between two words corresponds to a constant, cosine distance based offset.
\begin{question}[Syntactic test]
$a\:b\ c\:\_$?
\end{question}
\begin{answer}
%\setlength\abovedisplayskip{0pt}\setlength\abovedisplayshortskip{0pt}
\begin{align*}
y &= x_b-x_a+x_c \\
d^* &= \argmax_d \frac{x_dy}{\norm{x_d}\norm{y}}
\end{align*}
\end{answer}
%
\begin{question}[Semantic test]
How valid is $a\:b\ c\:d$?
\end{question}
\begin{answer}
\end{answer}
\end{frame}
\end{document}

