如何给一些文本添加方程编号

如何给一些文本添加方程编号

我希望能够用 LaTeX 编写以下内容

    We make the further assumption that
\begin{equation} \label{eqn:assumption} There is a bounded linear operator
    $B:X\to X^*$ such that $B^*=B$ and the operator $JB$ is an extension of $T'(0)$\end{equation}

并得到一个不错的输出,这样以后就可以引用这整段文本以及数学运算。当然,我可以使用 在方程环境中编写文本\text{},但当我尝试这样做时,间距完全不对。有人能提出解决方案吗?

答案1

用一个minipage

\documentclass{article}
\usepackage{amsmath}
\begin{document}
  We make the further assumption that
  \begin{equation}\label{eqn:assumption}
    \begin{minipage}{0.9\textwidth}
    There is a bounded linear operator
    $B:X\to X^*$ such that $B^*=B$ and the operator $JB$ is an
    extension of $T'(0)$
    \end{minipage}
  \end{equation}
\end{document}

在此处输入图片描述

答案2

例如(该值仅供参考):

\documentclass{article}
\usepackage{amsmath}


\begin{document}

We make the further assumption that
\begin{equation} \label{eqn:assumption} 
\text{\begin{tabular}{p{0.85\linewidth}}
There is a bounded linear operator
    $B\colon X\to X^*$ such that $B^*=B$ and the operator $JB$ is an extension of $T'(0)$
\end{tabular}
}
\end{equation}

\end{document}

相关内容