我想要分割的行是:
\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}