![这条线该如何分割?](https://linux22.com/image/375401/%E8%BF%99%E6%9D%A1%E7%BA%BF%E8%AF%A5%E5%A6%82%E4%BD%95%E5%88%86%E5%89%B2%EF%BC%9F.png)
我想要分割的行是:
\begin{equation}
ds^2=-\bigg(\alpha^2 r^2-\frac{4M}{\alpha r}\bigg)dt^2+\bigg(\alpha^2 r^2-\frac{4M}{\alpha r}\bigg)^{-1} dr^2+r^2d\phi^2+\alpha^2r^2dz^2,
%\label{77}
\end{equation}
它穿过了左侧的页面。我该如何拆分它?
答案1
该包amsmath
提供了很多用于拆分数学方程的环境,例如:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
\begin{aligned}
ds^2=
&\;{-}\biggl(\alpha^2 r^2-\frac{4M}{\alpha r}\biggr)dt^2\\
&+\biggl(\alpha^2 r^2-\frac{4M}{\alpha r}\biggr)^{\!-1} dr^2\\
&+r^2d\phi^2\\
&+\alpha^2r^2dz^2,
\end{aligned}
%\label{77}
\end{equation}
\end{document}