首页 > 解决方案 > 方程式未显示在乳胶中

问题描述

下面的等式不显示在乳胶中。此外,介绍性文本无法正确显示(所有单词一起没有空格和斜体)

A common form of this potential is the 12-6 Lennard Jones (LJ) potential 
expressed as equation 2.7

\begin{align}
    U_{ij}= 4\epsilon_{ij}[(\frac{\sigma_{ij}}{r_{ij})^12-
                (\frac{\sigma_{ij}}{r_{ij})^6]
\end{align}

此外,在下面的文本中,所有单词都放在一起,没有空格并用斜体表示。

Where \epsilon_{ij} and  \sigma{ij} represent well depth and diameter of 
the atom respectively. \epsilon_{ij} and  \sigma_{ij} for unlike atoms 
are determined using Lorentz-Berthelot combination rules [44] given in 
equations 2.8 and 2.9

感谢您的帮助。我在这里附上输出的图片。

在此处输入图像描述

标签: latex

解决方案


这是因为您没有正确使用内联数学模式。在您发布的图片中

它表明您的文本前面是 (what looks like) \epsilon_{ij}\epsilon 需要数学字体,因此您应该使用$\epsilon_{ij}$. 您想要排版的任何内联数学也是如此。这将是建议/正确的编码:

A common form of this potential is the 12-6 Lennard Jones (LJ) potential 
expressed as equation~\eqref{eq:lj-potential},
\begin{equation}
  U_{ij} = 4 \epsilon_{ij} [ (\frac{\sigma_{ij}}{r_{ij})^{12} 
            - (\frac{\sigma_{ij}}{r_{ij})^6 ] \label{eq:lj-potential}
\end{equation}
where $\epsilon_{ij}$ and $\sigma{ij}$ represent well depth and diameter of 
the atom respectively. $\epsilon_{ij}$ and $\sigma_{ij}$ for unlike atoms 
are determined using Lorentz-Berthelot combination rules~\cite{lorentz-berthelot}
given in equations~\eqref{eq:epsilon} and~\eqref{eq:sigma}.

请注意以下事项:

  1. 用于equation单行编号方程;align适用于多线方程(可能需要对齐)。

  2. 之前没有空行(分段符)equation

  3. 使用\labels 和\refs (或者\eqref,因为你正在使用amsmath),因为方程编号可以改变。让 TeX 负责存储和调用这些数字。

  4. 用于\cite引用参考书目中的内容。

  5. 使用$... $(或\(... \))进行内联数学(上面已经讨论过)。


推荐阅读