我有一个很长的方程式,但长到足以占据两行。 我想把它断开以提高可读性。我怎样才能打断它呢?
\begin{equation}
F = \{F_{x} \in F_{c} : (|S| > |C|) \cap
(minPixels < |S| < maxPixels) \cap
(|S_{conected}| > |S| - \epsilon)
\}
\end{equation}
我想在 "cap "后分3行断开。但是或
n``没有作用。
使用amsmath
包提供的split
环境。
\begin{equation}
\begin{split}
F = \{F_{x} \in F_{c} &: (|S| > |C|) \\
&\quad \cap (\text{minPixels} < |S| < \text{maxPixels}) \\
&\quad \cap (|S_{\text{conected}}| > |S| - \epsilon) \}
\end{split}
\end{equation}
mathtools
包提供了multlined
环境。
\begin{equation}
\begin{multlined}
F = \{F_{x} \in F_{c} : (|S| > |C|) \\
\shoveleft[1cm]{\cap (\mathrm{minPixels} < |S| < \mathrm{maxPixels})} \\
\cap (|S_{\mathrm{connected}}| > |S| - \epsilon) \}
\end{multlined}
\end{equation}