乳胶多线方程 [英] Latex Multiline Equations

查看:223
本文介绍了乳胶多线方程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

时有可能得到multline样的行为在一个聚集 环境?我有一个聚集的环境一组方程,但 其中之一是太长了,我想起来将其分割成两行 其中第一线是左对齐,第二行是右对齐 (就像multline)。如果存在对齐各行的一个方式 在收集或拆分环境(如flushleft或flushright但在 在mathmode功能),这将解决这个问题。

Is it possible to get multline like behavior within a gather environment? I have a set of equations in a gather environment, but one of them is too long, and I'd like to split it up onto two lines where the first line is left-aligned and the second line is right-aligned (just like multline). If there is a way of aligning individual lines within the gather or split environment (like flushleft or flushright but functional 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}

这篇关于乳胶多线方程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆