互文后左对齐方程

互文后左对齐方程

我希望将方程的一部分(方程中使用的变量的描述)在我的互文本之后左对齐,同时保持主方程中心对齐,如下图所示......

尽管我设法使用 {equation} 后跟 {flalign*} 来完成此操作,但这会在居中的主方程式后引入“linebreak”(参见第一个框)。

我也尝试过使用 {flalign} 与 \noalign 但是这会删除公式编号并且在公式(参见第二个框)和文本之间产生很大的间隙,而这正是我希望避免的......

有什么方法可以解决这个问题吗?

在此处输入图片描述

我的代码如下:

\documentclass[a4paper,11pt,oneside]{memoir}    
\usepackage{mathtools}
\usepackage{lipsum}

\begin{document}
Case 1:\\
\lipsum[75]
\begin{equation}
x' = \overline{x} \pm u_{\overline{x}} \qquad(P\%)
\end{equation}
\begin{flalign*}
\shortintertext{where}
\qquad  \overline{x} &= \text{Most probable estimate of } x' \text{ based on the available data}    &\\
\qquad   \pm u_{\overline{x}} &= \text{Uncertainty interval in that estimate at some probability level, } P\%   &\\
\qquad  P &= \text{Probability level or confidence level} &
\end{flalign*}

Case 2:\\
\lipsum[66]
\begin{flalign}
\noalign{\centering $x' = \overline{x} \pm u_{\overline{x}} \qquad(P\%)$}
\shortintertext{where}
\qquad  \nonumber \overline{x} &= \text{Most probable estimate of } x' \text{ based on the available data}  &\\
\qquad  \nonumber \pm u_{\overline{x}} &= \text{Uncertainty interval at some probability level, } P\%   &\\
\qquad   P &= \text{Probability level or confidence level} &    
\end{flalign}


\end{document}

答案1

我建议定义一个附属环境来gather

\documentclass[a4paper,11pt,oneside]{memoir}
\usepackage{amsmath,array,tabularx}
\usepackage{lipsum}

\newlength{\wherewd}
\newenvironment{where}
 {%
  \minipage{\displaywidth}
  \settowidth\wherewd{where }
  where
  \tabularx{\dimexpr\textwidth-\wherewd}[t]{
    @{}
    >{$}r<{={}$}
    @{}
    >{\raggedright\arraybackslash}X
    @{}
  }%
 }
 {\endtabularx\endminipage\notag}

\begin{document}

\lipsum*[75]
\begin{gather}
x' = \overline{x} \pm u_{\overline{x}} \qquad(P\%)
\\
\begin{where}
\overline{x} & Most probable estimate of $x'$ based on the available data \\
\pm u_{\overline{x}} & Uncertainty interval in that estimate at some probability level, $P\%$ \\
P & Probability level or confidence level
\end{where}
\end{gather}
\lipsum[20]

\end{document}

在此处输入图片描述

答案2

有两种可能性:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{mathtools}
\usepackage{lipsum} 

\begin{document}

\lipsum[10]
    \begin{flalign}
    & & x' & = \bar{x}\pm u_{\bar{x}}\qquad(P\,\%) & & \\
\shortintertext{where}
 & \begin{aligned}
  \bar{x} & =\rlap{Most probable estimate of $x'$ based on the available data,} \\
  x' & = \rlap{Uncertainty interval at some probability level, \quad$P\,\%$,}\\
  P & = \rlap{Probability level or confidence level. }
\end{aligned}\notag
    \end{flalign}
\lipsum[5]
    \begin{align}
    x' & = \bar{x}\pm u_{\bar{x}}\qquad(P\,\%) \\
\shortintertext{where
  $ \begin{aligned}[t]
  \bar{x} & =\text{Most probable estimate of $x'$ based on the available data,} \\
  x' & = \text{Uncertainty interval at some probability level, \quad$P\,\%$,}\\
  P & = \text{Probability level or confidence level.}
\end{aligned} $} \notag
    \end{align}\mbox{}\vspace*{-2\baselineskip }\par
\lipsum[11]

\end{document}

在此处输入图片描述

相关内容