Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

R markdown inline formula (latex) not working

First time markdown user (and LaTex novice).

I'm trying to insert inline formulas using single $ as I have seen demonstrated in several places, including the R Markdown Reference Guide - but it's not working.

inline equation test: $x \leq 5 $ not working

is simply output as

"inline equation test: $x 5 $ not working"

It works fine using $$ to create a new line, but any tips how to get it working inline would be much appreciated.

like image 925
James Avatar asked Jan 26 '18 05:01

James


1 Answers

And as so often happens, as soon as I ask a question, the answer comes to me.

inline equation test: $x \leq 5 $ not working

has a space before the closing $ and does not work.

inline equation test: $x \leq 5$ not working

has the space deleted and works just fine.

like image 97
James Avatar answered Oct 12 '22 20:10

James