How to escape "$" in R markdown and slidify it?
Asked Answered
K

1

9

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

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: I want to slidify it, so both \$ and \\$ don't work.

Kwei answered 13/4, 2015 at 7:13 Comment(0)
B
9

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

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

Line with \$ escaped dollar signs \$.
Bazaar answered 13/4, 2015 at 7:17 Comment(1)
My fault. I mean \$ and \\$, and I slidify it.Kwei

© 2022 - 2024 — McMap. All rights reserved.