问题描述
时有可能得到multline样的行为在一个聚集环境?我有一个聚集的环境一组方程,但其中之一是太长了,我想起来将其分割成两行其中第一线是左对齐,第二行是右对齐(就像multline)。如果存在对齐各行的一个方式在收集或拆分环境(如flushleft或flushright但在在mathmode功能),这将解决这个问题。
Is it possible to get multline like behavior within a gatherenvironment? I have a set of equations in a gather environment, butone of them is too long, and I'd like to split it up onto two lineswhere the first line is left-aligned and the second line is right-aligned(just like multline). If there is a way of aligning individual lineswithin the gather or split environment (like flushleft or flushright butfunctional in mathmode) this would solve the problem.
推荐答案
在 mathtools
包装具有内 multlined
类似于环境聚集
和喜欢,但它需要少量的手动调整的:
The mathtools
package has an inner multlined
environment similar to gathered
and the likes, but it required a small amount of manual tweaking:
\documentclass{article}
\usepackage{amsmath}
\usepackage{mathtools}
\begin{document}
% \begin{multline}
% \framebox[0.65\linewidth]{\strut} \\
% \framebox[0.6\linewidth]{\strut} \\
% \framebox[0.65\linewidth]{\strut} \\
% \framebox[0.6\linewidth]{\strut}
% \end{multline}
\begin{gather}
\framebox[0.8\linewidth]{\strut} \\
\begin{multlined}[b][\linewidth-3\multlinegap]
\framebox[0.65\linewidth]{\strut} \\
\framebox[0.6\linewidth]{\strut} \\
\framebox[0.65\linewidth]{\strut} \\
\framebox[0.6\linewidth]{\strut}
\end{multlined} \\
\framebox[0.4\linewidth]{\strut}
\end{gather}
\end{document}
这篇关于乳胶多线方程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!