Latex:输出为斜体

Latex: output is in italic

如果我在 Latex 中输入此代码:

Using this method, one has to make relative-frequency estimations of P( c ) and P( f_{i} \mid c ), using add-one smoothing.

它的输出是:

使用这种方法,必须进行相对频率估计 P( c ) 和 P( fi | c) 的,usingadd−onesmoothing.

我希望它是这样的:

使用这种方法,必须进行相对频率估计 P( c ) 和 P( fi | c),使用加一平滑。

有人知道出了什么问题吗?谢谢!

发错论坛了,有tex.stackexchange

您需要用 $ 符号表示数学模式。如果失败并遇到数学 symbol/macro,解释器隐式切换到数学模式并且没有找到离开它的标记。因此请使用

Using this method, one has to make relative-frequency 
estimations of $P( c )$ and $P( f_{i} \mid c )$, 
using add-one smoothing.