Latex:输出为斜体

mvh*_*mvh 0 math latex output

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

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

它的输出是:

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

我希望它是这样的:

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

谁知道出了什么问题?谢谢!

Dr.*_*ann 5

错误的论坛,有一个tex.stackexchange

你需要用$符号表示数学模式.如果失败并遇到数学符号/宏,解释器会隐式切换到数学模式,并且没有找到标记来离开它.因此善意使用

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