方程式无法编译

方程式无法编译

上面的等式给出了如下错误Undefined control sequenceMissing number, treated as zeroIllegal unit of measure (pt inserted)

\documentclass{article}
\usepackage {amsmath}
\begin {document}

\begin {equation}
\gamma_{\alpha , \beta} = \int \int' \Gamma [\vec{r},\vec{r}',n_0] \frac {F^{\alpha}_{00}(|\vec{r} - \vec{R_{\alpha} | ) F^{\beta}_{00}(|\vec{r}' - \vec{R_{\beta}} | ) } }{4\pi}
\end {equation}

\end {document}

答案1

您的花括号不匹配...尝试

\documentclass{article}
\usepackage{amsmath}

\begin{document}

\begin{equation}
\gamma_{\alpha , \beta} =
    \int \int' \Gamma [\vec{r},\vec{r'},n_0]
\frac{F^{\alpha}_{00}(|\vec{r}-\vec{R}_{\alpha}|)F^{\beta}_{00}(|\vec{r'}-\vec{R_{\beta}}|)}
     {4\pi}
\end{equation}

\end{document}

在此处输入图片描述

或者

\documentclass{article}
\usepackage{amsmath}

\begin{document}

\begin{equation}
\gamma_{\alpha , \beta} =
    \int \int' \Gamma [\vec{r},\vec{r}\,',n_0]
\frac{F^{\alpha}_{00}(|\vec{r}-\vec{R}_{\alpha}|)F^{\beta}_{00}(|\vec{r}\,'-\vec{R_{\beta}}|)}
        {4\pi}
\end{equation}

\end{document}

在此处输入图片描述

答案2

也许你最好拆分你的方程式

\documentclass{article}%
\usepackage {amsmath}%
\begin {document}%
%
\newcommand{\leftmember}{\gamma_{\alpha , \beta}}%
\newcommand{\numerator}{\utilityF{\alpha} \utilityF{\beta} }%
\newcommand{\utilityF}[1]{F^{#1}_{00}(|\vec{r}-\vec{R}_#1|)}%
% easier to manage and improve when splitted
% for instance :
% \newcommand{\utilityF}[1]{F^{#1}_{00}\left(\left|\vec{r}-\vec{R}_#1\right|\right)}%
%
\begin{equation}
  \leftmember = \int \int' \Gamma [\vec{r},\vec{r}',n_0] \frac{\numerator} {4\pi}
\end{equation}
%
\end{document}

相关内容