r - 如何在R Markdown 中转义 "$"并滑动它?

标签 r rstudio r-markdown slidify

在 R Markdown 中写一些笔记时,我需要转义美元符号,使两个美元符号内的句子不是公式。

我试过 \$ blah blah blah \$\\$ blah blah blah \\$甚至 <p>$ blah blah blah </p>$ .

有效的是`$`。但我不想强调它。

ps:我想滑动它,所以两个\$\\$不工作。

最佳答案

您只需要使用反斜杠 \逃避,而不是正斜杠:

Line with $\text{Math:} \frac{3}{4}$.

Line with \$ escaped dollar signs \$.

关于r - 如何在R Markdown 中转义 "$"并滑动它?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29599724/

相关文章:

r - 当存在应保留 NA 的 NA 时,在数据框中填充数据

r - 编译最小的knitr示例失败

html - Rmarkdown 无法编织为 pdf、work 或 html

r - 数据必须是向量类型,为 NULL

r - 使用 rstanarm 计算二项式 Logit 的边际效应

python - 是否有相当于 dplyr::summarise 的 Pandas ?

R:安装软件包 UBUNTU 时出错 - dyn.load(file, DLLpath = DLLpath, ...) 中出错:无法加载共享对象

r - 用 knitr markdown 并排的两个 block

在 Google Drive 上的 R 项目中打开时,Rmarkdown 无法渲染内联绘图

R-markdown block 内单行的 HTML 代码