公式转移到新生产线

公式转移到新生产线

我如何才能将较长的数学公式转移到新行?我想至少有两种方法:手动操作和调整数学容器以自动执行。你能向我展示这两种方法吗?

答案1

如果要创建一个以其自身线为中心的方程,请将其放在 里面\[...\]

如果你想把一个长方程拆分成多行,align包中的环境amsmath是一个很好的工具。

这是一个基本的例子:

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\noindent Here is an equation centered on its own line:
\[ ax + by + cz = 2x + 3y + 4z \]
And here is an equation broken across multiple lines:
\begin{align*}
ax + by + cz
& = 2x + 3y + 4z \\
& = z \left( 2\frac{x}{z} + 3\frac{y}{z} + 4 \right)
\quad \text{(as long as $z \neq 0$)} \\
& = 0
\end{align*}
\end{document}

在此处输入图片描述

相关内容