\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align*}
y ={}& \frac{1}{n!} \left\lbrace \int + f(a) \right. \\
&\left. \vphantom{\int} + [h(u)+\phi(x)] + C \right\rbrace
\end{align*}
\end{document}
如何将加号与分数对齐?谢谢。
答案1
对齐其实并不必要,而且multline
可能有用。如果您认为对齐很重要,这里有三个建议。
\documentclass{article}
\usepackage{amsmath}
\begin{document}
The following aligns the + with the fraction
\begin{equation*}
\begin{split}
y ={} & \frac{1}{n!} \biggl\lbrace \int + f(a) \\
& {} + [h(u)+\phi(x)] + C \biggr\rbrace
\end{split}
\end{equation*}
but with a slight offset; with the following the
offset is removed
\begin{equation*}
\begin{split}
y ={} & \frac{1}{n!} \biggl\lbrace \int + f(a) \\
& {\mspace{-\medmuskip}} + [h(u)+\phi(x)] + C \biggr\rbrace
\end{split}
\end{equation*}
However, I'd align with the integral sign
\begin{equation*}
\begin{split}
y = \frac{1}{n!} \biggl\lbrace &\!\int + f(a) \\
& {\mspace{-\medmuskip}} + [h(u)+\phi(x)] + C \biggr\rbrace
\end{split}
\end{equation*}
\end{document}
答案2
尝试
\begin{align*}
y &= \frac{1}{n!} \left\lbrace \int + f(a) \right. \\
&\phantom{=} \left. \vphantom{\int} + [h(u)+\phi(x)] + C \right\rbrace
\end{align*}