答案1
multline
包装的环境amsmath
具有\shoveleft
并\shoveright
用于左右齐平:
\documentclass[a5paper]{article}
\usepackage{amsmath}
\begin{document}
\begin{multline*}
% First line is flush left
A(x) = \\
% Move to the right, default is centered
\shoveright{B(x)} \\
% Last line is flush right
+ C(x)
\end{multline*}
\end{document}
变化
为关系运算符设置对齐点,小号左边部分右对齐,对齐点右边部分左对齐:
\documentclass[a5paper]{article}
\usepackage{amsmath}
\begin{document}
\begin{align*}
A(x) & \leq \\
B(x) \\
{} + C(x) & < 3 \epsilon
\end{align*}
\end{document}
答案2
我会避免“向右冲洗”:
\documentclass{article}
\usepackage{amsmath}
\newcommand\diff{\mathop{}\!\mathrm{d}}
\begin{document}
\begin{align*}
& \biggl|
\int_{[0,1]^n}
f\Bigl(\frac{x_1+\dots+x_n}{n}\Bigr)
\diff x_1 \dots \diff x_n
-f(1/2)
\biggr|
\\
&\qquad\le
\int_{[0,1]^n}
\biggl|
(f-p)\Bigl(\frac{x_1+\dots+x_n}{n}\Bigr)
\biggr|
\diff x_1 \dots \diff x_n
\\
&\qquad\qquad+\lvert p(1/2)-f(1/2)\rvert\vphantom{\int}
\\
&\qquad\qquad+
\biggl|
\int_{[0,1]^n}
p\Bigl(\frac{x_1+\dots+x_n}{n}\Bigr)
\diff x_1 \dots \diff x_n
-p(1/2)
\biggr|
\\
&\qquad<3\varepsilon
\end{align*}
\end{document}