如何在我的长 LaTeX 方程中有换行符? [英] How can I have linebreaks in my long LaTeX equations?

查看:15
本文介绍了如何在我的长 LaTeX 方程中有换行符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的方程式很长.如何让它在下一行继续而不是离开页面?

My equation is very long. How do I get it to continue on the next line rather than go off the page?

推荐答案

如果你的方程不适合单行,那么 multline 环境可能就是你需要的:

If your equation does not fit on a single line, then the multline environment probably is what you need:

egin{multline}
    first part of the equation \
    = second part of the equation
end{multline}

如果您还需要对第一部分进行一些对齐,您可以使用 split:

If you also need some alignment respect to the first part, you can use split:

egin{equation}
    egin{split}
        first part &= second part #1 \
        &= second part #2
    end{split}
end{equation}

两种环境都需要 amsmath 包.

Both environments require the amsmath package.

另请参阅 在下面的答案中指出的 aligned.

See also aligned as pointed out in an answer below.

这篇关于如何在我的长 LaTeX 方程中有换行符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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