数学环境分隔符错误

数学环境分隔符错误

我希望我的数学方程式位于中心但是!!

\item Vo is calculated as shown:
    \begin{equation}
        Vo = (1 + R1 \(\div\) R2) + (Iadj \(\ast\) R2)
    \end{equation}
    Because Iadj typically is 50\(\mu\)A, it is negligible in most applications.

当我输入这行代码并进行编译时,我总是得到一个Bad math environment delimiter error。我正在使用包amsmath

Bad math environment delimiter. Vo = (1 + R1 \(
Bad math environment delimiter. Vo = (1 + R1 \(\div\)
Bad math environment delimiter. Vo = (1 + R1 \(\div\) R2) + (Iadj \(
Bad math environment delimiter. Vo = (1 + R1 \(\div\) R2) + (Iadj \(\ast\)

我应该怎么办?

当我这样做时:

\item Vo is calculated as shown:
    \begin{equation}
        $$Vo = (1 + R1 \(\div\) R2) + (Iadj \(\ast\) R2)$$
    \end{equation}
    Because Iadj typically is 50\(\mu\)A, it is negligible in most applications.

我没有发现任何错误,但是数学方程没有对齐中心。

答案1

一些建议:

  • equation环境中,您会自动进入(显示)数学模式。没有必要两次进入数学模式。(正如您从痛苦中发现的那样,如果已经处于数学模式,则无法重新进入数学模式……)

  • 不要忘记根据需要使用下标。(我保留了V_o,但我有预感这V_0可能更合适。)

  • 对于乘法和除法,考虑使用\cdotand/而不是\astand \div

  • 为了排版物理量,我建议加载siunitx包并写入\SI{50}{\micro\ampere}而不是50\(\mu\)A


在此处输入图片描述

\documentclass{article}
\usepackage{siunitx}
\begin{document}
\begin{itemize} % or 'enumerate'
\item $V_o$ is calculated as shown:
    \begin{equation}
        V_o = (1 + R_1 / R_2) + (I_{\textnormal{adj}} \cdot R_2)
    \end{equation}
    Because $I_{\textnormal{adj}}$ typically is \SI{50}{\micro\ampere}, it 
    is negligible in most applications.
\end{itemize} % or 'enumerate'
\end{document} 

相关内容