Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 737
Rubi Lam Avatar asked Apr 13 '15 07:04

Rubi Lam


1 Answers

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

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

Line with \$ escaped dollar signs \$.
like image 71
Marius Avatar answered Sep 20 '22 01:09

Marius