将等式左对齐

将等式左对齐

我有以下等式:

\begin{align}
\frac{1}{4}\left[\frac{\partial{(u^n+u^*)(u^n+u^*)}}{\partial{x}}\right]_p 
&=\nonumber\\
\dfrac{u_{fe}\dfrac{\dfrac{u_{i,j,k}^n+u_{i,j,k}^{*}}{2}+
\dfrac{u_{i+1,j,k}^n+u_{i+1,j,k}^{*}}{2}}{2}-u_{fw}
\dfrac{\dfrac{u_{i,j,k}^n+u_{i,j,k}^{*}}{2}
+\dfrac{u_{i-1,j,k}^n+u_{i-1,j,k}^{*}}{2}}{2}}{dx_i + dx_{i+1}}\quad ,
\end{align}

这给了我这个在此处输入图片描述

现在,我想知道如何将它对齐到左侧?我尝试了 eqnarray、aligned 和 flalign,但它们没有帮助。

提前致谢

答案1

环境multline可以提供帮助:

\documentclass{article}
\usepackage[a4paper,hmargin=30mm]{geometry}
\usepackage{amsmath}

\begin{document}
\begin{multline}
\frac{1}{4}\left[\frac{\partial{(u^n+u^*)(u^n+u^*)}}{\partial{x}}\right]_p
=\\
\dfrac{u_{fe}\dfrac{\dfrac{u_{i,j,k}^n+u_{i,j,k}^{*}}{2}+
\dfrac{u_{i+1,j,k}^n+u_{i+1,j,k}^{*}}{2}}{2}-u_{fw}
\dfrac{\dfrac{u_{i,j,k}^n+u_{i,j,k}^{*}}{2}
+\dfrac{u_{i-1,j,k}^n+u_{i-1,j,k}^{*}}{2}}{2}}{dx_i + dx_{i+1}}\quad ,
\end{multline}
\end{document}

结果

答案2

我会这样做:

\documentclass{article}

\usepackage{mathtools}

\begin{document}
\begin{align}
\frac{1}{4}\biggl[\frac{\partial{(u^n+u^*)(u^n+u^*)}}{\partial{x}}\biggr]_p
&=\dfrac{u_{fe}\biggl(\!\!\dfrac{A+B}
{2}\biggr)-u_{fw}
\biggl(\!\!\dfrac{A + C}{2}\biggr)}{dx_i + dx_{i+1}}
\shortintertext{where}
  A &= \frac{u_{i,j,k}^n+u_{i,j,k}^{*}}{2}, \notag\\
  B &= \frac{u_{i+1,j,k}^n+u_{i+1,j,k}^{*}}{2}, \notag\\
  C &= \frac{u_{i-1,j,k}^n+u_{i-1,j,k}^{*}}{2}. \notag
\end{align}

\end{document}

在此处输入图片描述

此外,最好使用\biggl\biggr构造\left\right

相关内容