How can I have linebreaks in my long LaTeX equations?

后端 未结 11 641
广开言路
广开言路 2020-12-22 20:28

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

11条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-22 21:13

    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}
    

    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}
    

    Both environments require the amsmath package.

    See also aligned as pointed out in an answer below.

提交回复
热议问题