如何挤压这些子方程周围的空间?

如何挤压这些子方程周围的空间?

我有两个子方程,如下所示。我需要压缩“and”前后的空格。

梅威瑟:

\documentclass[journal]{IEEEtran}
\usepackage{mathtools}
\usepackage{amsmath}
\begin{document}
    \begin{subequations}
        \begin{align}
        \Gamma_{CT} &=[\Gamma_{CT(1)},\ldots,\Gamma_{CT(i)}, \ldots \Gamma_{CT(n)}] \\
        & \text{where}, \ \Gamma_{CT(i)} = max (sim(i,1), \ldots, sim(i,m) \nonumber \\
        \intertext{and}
        \Gamma_{QT}&=[\Gamma_{QT(1)},\ldots,\Gamma_{QT(i)},\ldots,\Gamma_{QT(m)}] \\
        & \text{where}, \ \Gamma_{QT(j)} = max (sim(1,j), \ldots, sim(n,j) \nonumber
        \end{align}
    \end{subequations}
\end{document}

答案1

您可以使用\shortintertext(需要mathtools)。我还提出了一种不同的方式来排版材料。

注意:simmax应为直立类型;\max是出于此目的而预先定义的,并且是我定义的\opsim(因为\sim已被占用)。

也没有必要\vspace

\documentclass[journal]{IEEEtran}
\usepackage{amsmath,mathtools}

\DeclareMathOperator{\opsim}{sim}

\usepackage{lipsum} % for context

\begin{document}

\lipsum*[2]
\begin{subequations}
\begin{align}
\Gamma_{CT} ={}& [\Gamma_{CT(1)},\dots,\Gamma_{CT(i)},\dots,\Gamma_{CT(n)}] \\
               & \text{where } \Gamma_{CT(i)} = \max (\opsim(i,1),\dots,\opsim(i,m)) \notag
\shortintertext{and}
\Gamma_{QT} ={}& [\Gamma_{QT(1)},\dots,\Gamma_{QT(i)},\dots,\Gamma_{QT(m)}] \\
               & \text{where } \Gamma_{QT(j)} = \max (\opsim(1,j),\dots,\opsim(n,j)) \notag
\end{align}
\end{subequations}
\lipsum*[3]
\begin{subequations}
\begin{align}
\Gamma_{CT} &= [\Gamma_{CT(1)},\dots,\Gamma_{CT(i)},\dots,\Gamma_{CT(n)}] \\
\Gamma_{QT} &= [\Gamma_{QT(1)},\dots,\Gamma_{QT(i)},\dots,\Gamma_{QT(m)}]
\end{align}
\end{subequations}
where
\begin{align*}
\Gamma_{CT(i)} &= \max (\opsim(i,1),\dots,\opsim(i,m)) \\
\Gamma_{QT(j)} &= \max (\opsim(1,j),\dots,\opsim(n,j))
\end{align*}
\lipsum*[4]

\end{document}

在此处输入图片描述

相关内容