答案1
由于您未提供 MWE,因此代码比较粗糙。您可以aligned
在 内部使用align
。
\documentclass[11pt]{beamer}
\begin{document}
\begin{frame}{Title}
\begin{align*}
\mathcal{F}_{1}[q]&=\begin{aligned}[t]
\mathcal{H}[q(\theta)] &=-\int q(\theta) \ln q(\theta) d \theta \\
&=-\int \prod_{i} q\left(\theta_{i}\right)\left[\sum_{j} \ln q\left(\theta_{j}\right)\right] \prod_{l} d \theta_{l}
\end{aligned}\\
&=-\sum_{i} \int q\left(\theta_{i}\right) \ln q\left(\theta_{i}\right) d \theta_{i}
\end{align*}
\end{frame}
\end{document}
=
但在我看来,把每行都放在一行上更具有可读性:
\begin{align*}
\mathcal{F}_{1}[q]&=\mathcal{H}[q(\theta)] \\
&=-\int q(\theta) \ln q(\theta) d \theta \\
&=-\int \prod_{i} q\left(\theta_{i}\right)\left[\sum_{j} \ln q\left(\theta_{j}\right)\right] \prod_{l} d \theta_{l} \\
&=-\sum_{i} \int q\left(\theta_{i}\right) \ln q\left(\theta_{i}\right) d \theta_{i}
\end{align*}
答案2
为什么不是这种更简单的布局?
\documentclass[11pt]{beamer}
\begin{document}
\begin{frame}{Title}
\begin{align*}
\mathcal{F}_{1}[q]&=\mathcal{H}[q(\theta)] =-\int q(\theta) \ln q(\theta) d \theta \\
&=-\int \prod_{i} q\left(\theta_{i}\right)\Bigl[\sum_{j} \ln q\left(\theta_{j}\right)\Bigr] \prod_{l} d \theta_{l}\\
&=-\sum_{i} \int q\left(\theta_{i}\right) \ln q\left(\theta_{i}\right) d \theta_{i}
\end{align*}
\end{frame}
\end{document}