我使用多行拆分方程,但在第二行它转到末尾。我们不能将第二行移得更靠前吗?
\documentclass[12pt,a4paper]{thesis}
\usepackage{amsmath}\usepackage{amssymb}
\usepackage{graphicx}
\usepackage[left=1.25in, right=1.0in, top=1.25in, bottom=1.0in]{geometry}
\newcommand{\piRsquare}{\pi r^2}
\title{{Study x}}
\date{August 24, 2013}
%
\begin{document} \baselineskip=22pt
\begin{multline}
\mathcal{A}(\phi + h) - \mathcal{A}(\phi) = c_d \int_0^T \left\{\int_0^\infty \left(-\ddot{\phi} + \frac{1}{r^{d-1}}\frac{\partial}{\partial r}\left(r^{d-1} \frac{\partial \phi}{\partial r}\right) - 2m^2\phi\right)hr^{d-1}dr\right\}dt \\
+ \mbox{ Boundary Terms } + O\left(\|h^2\|\right),
\end{multline}
\end{document}
答案1
multline
如果您不希望最后一行与右侧齐平,则我不会使用它。请改用equation
+ split
。
添加\raisetag{\normalbaselineskip}
后\end{split}
得到与最后一项在同一行的方程式编号。
代码
\documentclass[12pt,a4paper]{thesis}
\usepackage{amsmath}
\usepackage[left=1.25in, right=1.0in, top=1.25in, bottom=1.0in]{geometry}
\newcommand*{\hpheq}{\hphantom{{}={}}}
\begin{document}
\begin{equation}
\begin{split}
\mathcal{A}(\phi + h) - \mathcal{A}(\phi) &
= c_d \int_0^T
\left\{ \int_0^\infty
\left(-\ddot{\phi} + \frac{1}{r^{d-1}}\frac{\partial}{\partial r}
\left(r^{d-1} \frac{\partial \phi}{\partial r}\right)
- 2m^2\phi\right)
hr^{d-1} dr
\right\} dt \\
& \hpheq + \mbox{ Boundary Terms } + O\left(\|h^2\|\right),
\end{split}
\end{equation}
\end{document}
输出
答案2
你的等式的主线超出了右边距,所以我把它分成了三行。也许这更接近你想要的。
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{multline}
\mathcal{A}(\phi + h) - \mathcal{A}(\phi)\\
= c_d \int_0^T
\left\{\int_0^\infty \left(-\ddot{\phi} +
\frac{1}{r^{d-1}}\frac{\partial}{\partial r}\left(r^{d-1}
\frac{\partial \phi}{\partial r}\right) -
2m^2\phi\right)hr^{d-1}dr\right\}dt \\
\hfil+ \mbox{ Boundary Terms } + O\left(\|h^2\|\right)~~,\hfil\hfil\hfil
\end{multline}
\end{document}