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

本文系Spark & Shine原创,转载需注明出处本文最近一次修改时间 2022-04-09 09:51

results matching ""

    No results matching ""