如何减少公式下括号中不必要的空间?

如何减少公式下括号中不必要的空间?

以下代码生成

\begin{align}
    S_{12} =\frac{S_{1,21}\, S_{2,21}}{2\, S_{1,22}\, S_{2,22}\, C_{12}} \left(\sqrt{\frac{\begin{aligned}
                {S_{1,21}}^2\, {S_{2,21}}^2 - S_{1,11}\, S_{1,22}\, {S_{2,21}}^2 - {S_{1,21}}^2\, S_{2,11}\, S_{2,22}\\
                + S_{1,22}\, {S_{2,21}}^2\, C_{11} + 4\, S_{1,22}\, S_{2,22}\, {C_{12}}^2 + {S_{1,21}}^2\, S_{2,22}\, C_{22}\\
                + S_{1,11}\, S_{1,22}\, S_{2,11}\, S_{2,22} - S_{1,11}\, S_{1,22}\, S_{2,22}\, C_{22}\\
                - S_{1,22}\, S_{2,11}\, S_{2,22}\, C_{11} + S_{1,22}\, S_{2,22}\, C_{11}\, C_{22}
                \end{aligned}}{\begin{aligned}
                \left({S_{1,21}}^2 + S_{1,22}\, C_{11} - S_{1,11}\, S_{1,22}\right)\, \left({S_{2,21}}^2 + S_{2,22}\, C_{22} - S_{2,11}\, S_{2,22}\right)
                \end{aligned}}} - 1 \right)
    \end{align}

在此处输入图片描述

如何去除括号下方的空白?

答案1

我的建议是:拆分公式。找到更好的名称来代替 $A$ 和 $B$。

\documentclass{article}
\usepackage{newtxtext,newtxmath}
\usepackage{amsmath}

\begin{document}

\begin{equation}
S_{12} =
\frac{S_{1,21} S_{2,21}}{2 S_{1,22} S_{2,22} C_{12}}
\left(\sqrt{\frac{A}{B}} - 1 \right)
\end{equation}
where
\begin{equation*}
\begin{aligned}
A &=
  {S_{1,21}}^2 {S_{2,21}}^2 - S_{1,11} S_{1,22} {S_{2,21}}^2 - {S_{1,21}}^2 S_{2,11} S_{2,22}\\
  &\quad+
  S_{1,22} {S_{2,21}}^2 C_{11} + 4 S_{1,22} S_{2,22} {C_{12}}^2 + {S_{1,21}}^2 S_{2,22} C_{22}\\
  &\quad+
  S_{1,11} S_{1,22} S_{2,11} S_{2,22} - S_{1,11} S_{1,22} S_{2,22} C_{22}\\
  &\quad-
  S_{1,22} S_{2,11} S_{2,22} C_{11} + S_{1,22} S_{2,22} C_{11} C_{22} \\[1ex]
B &=
  ({S_{1,21}}^2 + S_{1,22} C_{11} - S_{1,11} S_{1,22})
  ({S_{2,21}}^2 + S_{2,22} C_{22} - S_{2,11} S_{2,22})
\end{aligned}
\end{equation*}

\end{document}

在此处输入图片描述

我也建议

S_{1,21}^2

而不是{S_{1,21}}^2使指数悬而未决。

相关内容