2

I have two subequations as follows. I need to squeeze space before and after "and".

MWE:

\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}
4

You can use \shortintertext (requires mathtools). I also propose a different way to typeset the material.

Note: sim and max should be in upright type; \max is predefined for the purpose and I defined \opsim (because \sim is already taken).

Also there should be no need for \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}

enter image description here

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.