How can I have linebreaks in my long LaTeX equations?

后端 未结 11 595
广开言路
广开言路 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

    Not yet mentioned here, another choice is environment aligned, again from package amsmath:

    \documentclass{article}
    \usepackage{amsmath}
    
    \begin{document}
    
    \begin{equation}
      \begin{aligned}
        A & = B + C\\
          & = D + E + F\\
          & = G
      \end{aligned}
    \end{equation}
    
    \end{document}
    

    This outputs:

提交回复
热议问题