首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >方程未在latex中显示

方程未在latex中显示
EN

Stack Overflow用户
提问于 2019-01-29 00:28:54
回答 2查看 53关注 0票数 0

下面的方程式在latex中不显示。此外,介绍性文本不能正确显示(所有单词一起显示,不带空格和斜体)

代码语言:javascript
复制
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}

另外,在下面的文本中,所有的单词都在一起,没有空格,并且是斜体。

代码语言:javascript
复制
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

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

EN

回答 2

Stack Overflow用户

发布于 2019-01-29 03:16:02

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

它显示您的文本前面有(看起来像是) \epsilon_{ij}\epsilon需要数学字体,因此您应该使用$\epsilon_{ij}$。对于要排版的任何内联数学也是如此。这将是建议/正确的编码:

代码语言:javascript
复制
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用于多行方程式(这可能需要在alignment).
  2. No aligns和\refs之前使用空行(换行符)(或\eqref,因为您使用的是amsmath)。让TeX负责存储和调用这些数字。
  3. 使用\cite

$中引用某些内容...$(或\(...\))用于内联数学(上面已经讨论过)。

票数 0
EN

Stack Overflow用户

发布于 2019-01-30 08:44:33

代码语言:javascript
复制
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align}
U_{ij}= 4\epsilon_{ij}[
                (\frac{
                    \sigma_{ij}
                     }{
                       (r_{ij})^{12} -
                    \frac{
                    \sigma_{ij} 
                    }{(r_{ij})^6
                      }
                      }]
\end{align}   
\end{document}

  • 等式中有三个组没有正确闭合。
  • 阅读了关于amsmath的文章。
  • 我建议你尽量写得干净。

Output

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/54406338

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档