有没有办法使用像 \equiv 这样的命令而不声明函数?

有没有办法使用像 \equiv 这样的命令而不声明函数?

我只想在句子中添加 \equiv,但在 texmaker 中尝试编译时一直出错。似乎我需要做的是将其包装在 \begin{equation} 中,但我不想这样处理它。

答案1

方法

\documentclass{article}
\usepackage{mathtools}
\begin{document}
There are many ways to enter maths mode.
  \begin{equation}
    \text{equation} = \text{one way}
  \end{equation}
but
\[
  \text{equation} \not\equiv \text{maths mode}
\]
If $\{x_1,...,x_n\} = \{\text{ways}\}$ then $n \equiv \text{many}$.
\end{document}

相关内容