IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    Split long equations into multiple lines in LaTeX

    SparkandShine发表于 2016-10-10 09:42:56
    love 0

    This article presents two ways to split long equations into multiple lines with and without alignment.

    1. Split equations

    Use multline or split provided by amsmath package.

    • Use multline to split equations without alignment (first line left, last line right)
    • Use split to split equations with alignment

    Here are examples:

    illustrated-examples-to-split-equations
    Fig. 1: Illustrated examples to split equations.

    For more info, refer to User’s Guide for the amsmath Package.

    2. The source code

    The corresponding source code is as follows:

    (i).Use equation:
    \begin{equation}
    1+2+3+4+8x+7=1+2+3+4+4x+35 \\
    \Rightarrow x=7
    \end{equation}
    
    (ii).Use \emph{multline} to split equations without alignment:
    \begin{multline}
    1+2+3+4+8x+7=1+2+3+4+4x+35 \\
    \Rightarrow x=7
    \end{multline}
    
    (iii).Use \emph{split} to split equations with alignment
    \begin{equation}
    \begin{split}
    1+2+3+4+8x+7 & =1+2+3+4+4x+35 \\
    & \Rightarrow x=7
    \end{split}
    \end{equation}
    

    References:
    [1] StackExchang TeX-LaTeX: How can I split an equation over two lines



沪ICP备19023445号-2号
友情链接