我在我的RMarkdown文件(* .Rmd)中有一个等式,在它下面我想添加一个标题,使最终结果都居中,部分文字用斜体字表示。我很沮丧,我无法谷歌答案,所以我确保对我所尝试的内容非常具有描述性。我希望最终的代码看起来像这样。 我的markdown文件中代码的代码是
was defined as:
$$\mathrm{Impact\; Density = \sum_{i=1}^{20} \frac{Acceleration_i}
{Time\;from\;previous\;impact_i}}$$
这是我到目前为止所尝试的内容。
选项1
<center>
_Note:_ Acceleration can be linear or rotational.
</center>
结果选项1
'注意'是斜体,但标题不居中。
选项2 取自here
<i>
Note:
</i>
结果选项2
这没有任何作用。
选项3 取自here
\begin{center}
\begin{texit}
Note:
\end{texit}
Acceleration can be linear or rotational.
\end{center}
结果选项3
不编织,导致错误
选项4 取自here
\begin{center}
\begin{texit}
Note:
\end{texit}
Acceleration can be linear or rotational.
\end{center}
结果选项4
它会使文本居中,但它不会使“注意”斜体,它也会导致此错误