如何防止浮动进入聚集环境

如何防止浮动进入聚集环境

我正在使用收集方法根据方程进行描述页。

\begin{gather}\label{eq:1}
R=\rho \frac{l}{A},
\intertext{Where:}
  \begin{tabular}{>{$}r<{$}@{\ :\ }l}
    P_{xi} & is the predicted rate for user~$x$ on item~$i$ \\
    S_{ki} & is the rate of song~$i$ given by user~$k$ \\
    D_{kx} & the correlation between user~$x$ and user~$k$ \\
    \overline{U}_x & the average rate over user~$x$ \\
    \overline{U}_k & the average rate over user~$k$ \\
    \sigma_x & is the standard deviation of all the rates of user~$x$
  \end{tabular}\nonumber
\end{gather}

结果在方程式和描述之间出现了一些浮动图像。有什么方法可以将一些块保持在一起,而不允许将浮动图像放置在其中?

答案1

将表格\intertext也放入:

\noindent\begin{minipage}{\linewidth}
\begin{gather}\label{eq:1}
    R=\rho \frac{l}{A},
    \intertext{Where:
      \begin{tabular}[t]{>{$}r<{$}@{\ :\ }l}
        P_{xi} & is the predicted rate for user~$x$ on item~$i$ \\
        S_{ki} & is the rate of song~$i$ given by user~$k$ \\
        D_{kx} & the correlation between user~$x$ and user~$k$ \\
        \overline{U}_x & the average rate over user~$x$ \\
        \overline{U}_k & the average rate over user~$k$ \\
        \sigma_x & is the standard deviation of all the rates of user~$x$
    \end{tabular}}\nonumber
\end{gather}
\end{minipage}

在此处输入图片描述

相关内容