![! LaTeX 错误:\mathbb 仅允许在数学模式下使用](https://linux22.com/image/350237/!%20LaTeX%20%E9%94%99%E8%AF%AF%EF%BC%9A%5Cmathbb%20%E4%BB%85%E5%85%81%E8%AE%B8%E5%9C%A8%E6%95%B0%E5%AD%A6%E6%A8%A1%E5%BC%8F%E4%B8%8B%E4%BD%BF%E7%94%A8%20.png)
你好,我遇到了以下代码错误:
$F(X) = \mathbf{1}_{(c,\infty)} :=
\begin{cases}
1 & if\ x \in [c,\infty) \\
0 & if\ x \not \in [c, \infty)
\end{cases} $
错误说:
! LaTeX Error: \mathbf allowed only in math mode.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.282 \$F(X) = \mathbf{1}
\_\{(c,\infty)\} :=
?
! Emergency stop.
...
l.282 \$F(X) = \mathbf{1}
\_\{(c,\infty)\} :=
! ==> Fatal error occurred, no output PDF file produced!
Transcript written on notebook.log.
希望有人可以帮忙,谢谢!