是否可以通过保留“flalign 环境”来减少突出显示的断言之间的垂直空间?

是否可以通过保留“flalign 环境”来减少突出显示的断言之间的垂直空间?

\phantom注意:---我可以通过使用来减少垂直空间eqnarray environment,,但如果我使用它,不必要的水平空间发生在等号和数学陈述之间,如 (02) 图中所示。因此我想保留flalign environment.

 \documentclass[11pt,a4paper]{article}
 \usepackage{blindtext}
 \usepackage{mathtools}
 \usepackage{amsmath}
 \usepackage{IEEEtrantools}
 \newcommand\commenteq[1]{\text{\footnotesize(#1)}}


\begin{document}
\begin{flalign*}
E&=\times(\times a^{3}b^{2}c^{5})\times (\times a^{5}b^{6}c^{11})\div (\times a^{4}b^{3}c^{15}).&
\\
&=\times a^{3}\times b^{2}\times c^{5}\times a^{5}\times b^{6}\times c^{11}\div a^{4}\div b^{3}\div c^{15};\,\shortintertext{\hspace{+2em}(The law of association for multiplication and division)}&
\\
&=\times a^{5}\times a^{3}\div a^{4}\times b^{6}\times b^{2}\div b^{3}\times c^{11}\times c^{5}\div c^{15};\,\shortintertext{\hspace{+2em}(The law of commutation for multiplication and division)}&
\\
E&=\times [\times (\times a^{5}\times a^{3})\div a^{4}]\times [\times (\times b^{6}\times b^{2})\div b^{3}]\times [\times (\times c^{4}\times c^{3})\div c^{5}];\,\shortintertext{\hspace{+2em}(The law of association for multiplication and division)}&
\end{flalign*}
\end{document}

在此处输入图片描述

图(02)。 在此处输入图片描述

答案1

像这样:

在此处输入图片描述

\documentclass{article}
\usepackage{mathtools}

    \begin{document}

\begin{flalign*}
E & = \times(\times a^{3}b^{2}c^{5})\times 
        (\times a^{5}b^{6}c^{11})\div (\times a^{4}b^{3}c^{15}).  &   \\
  & = \times a^{3}\times b^{2}\times c^{5}\times a^{5}\times b^{6}\times c^{11}\div a^{4}\div b^{3}\div c^{15};\,
%
\shortintertext{\hspace{+2em}(The law of association for multiplication and division)}
%
&=\times a^{5}\times a^{3}\div a^{4}\times b^{6}\times b^{2}\div b^{3}\times c^{11}\times c^{5}\div c^{15};\,
%
\shortintertext{\hspace{+2em}(The law of commutation for multiplication and division)}
E&=\times [\times (\times a^{5}\times a^{3})\div a^{4}]\times [\times (\times b^{6}\times b^{2})\div b^{3}]\times [\times (\times c^{4}\times c^{3})\div c^{5}];\,
%
\shortintertext{\hspace{+2em}(The law of association for multiplication and division)}&
\end{flalign*}
\end{document}

& \\之后您强制使用的额外垂直空间\shortintertext

答案2

我发现数学符号非常很奇怪。无论如何,你使用不当,\shortintertext而且比这更简单:

\documentclass[11pt,a4paper]{article}
\usepackage{amsmath,mathtools}
\usepackage{lipsum}

\newcommand{\pad}{\hphantom{={}}}

\begin{document}

\lipsum*[2]
\begin{flalign*}
E&=
  \times(\times a^{3}b^{2}c^{5})\times (\times a^{5}b^{6}c^{11})
  \div (\times a^{4}b^{3}c^{15}).&
\\
&=
  \times a^{3}\times b^{2}\times c^{5}\times a^{5}\times b^{6}\times c^{11}
  \div a^{4}\div b^{3}\div c^{15};&
\\
&\pad
  \text{(The law of association for multiplication and division)}&
\\
&=
  \times a^{5}\times a^{3}\div a^{4}\times b^{6}\times b^{2}\div b^{3}\times c^{11}
  \times c^{5}\div c^{15};&
\\
&\pad
  \text{(The law of commutation for multiplication and division)}&
\\
E&=
  \times [\times (\times a^{5}\times a^{3})\div a^{4}]
  \times [\times (\times b^{6}\times b^{2})\div b^{3}]
  \times [\times (\times c^{4}\times c^{3})\div c^{5}];&
\\
&\pad
  \text{(The law of association for multiplication and division)}&
\end{flalign*}
\end{document}

在此处输入图片描述

相关内容