我正在使用收集方法根据方程进行描述这页。
\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}