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

查看:311
本文介绍了如何在长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:

\begin{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:

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

两个环境都需要amsmath软件包.

Both environments require the amsmath package.

另请参阅aligned,如在下面的答案中指出的那样.

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

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