如何转义“$"在 R markdown 和 slidify 中吗? [英] How to escape "$" in R markdown and slidify it?

查看:42
本文介绍了如何转义“$"在 R markdown 和 slidify 中吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

When write some notes in R Markdown, I need to escape the dollar sign, making sentence within two dollar sign not a formula.

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

I have tried \$ blah blah blah \$ and \\$ blah blah blah \\$ or even <p>$ blah blah blah </p>$.

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

What works is `$`. But I don't want to highlight it.

ps:我想滑动它,所以 \$\\$ 都不起作用.

ps: I want to slidify it, so both \$ and \\$ don't work.

推荐答案

你只需要使用反斜杠 \ 来转义,而不是正斜杠:

You just need to use backslashes \ to escape, not forward slashes:

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

Line with \$ escaped dollar signs \$.

这篇关于如何转义“$"在 R markdown 和 slidify 中吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆