STAT545-UBC / Discussion

Public discussion
38 stars 20 forks source link

Using math formulas in the GitHub markdown #509

Open trinity-shuxianfan opened 6 years ago

trinity-shuxianfan commented 6 years ago

I was trying to add a math formula using the Rmarkdown with the output being the GitHub markdown file. It works well when I use, for example, $$x^2$$ when generating the pdf or HTML files. But the font became weird when I knitted my file to be the GitHub document. Is there a convenient way to include latex style or any normal font style math formula into the GitHub markdown output?

ChadFibke commented 6 years ago

Hey @ShuxianFan,

I was browsing the web and there doesn't seem to be an easy fix, but you could look into readme2tex. Hope this helps!

Chad

zeeva85 commented 6 years ago

@ShuxianFan

There is an old tread in stats545 about this. The link is below

https://github.com/STAT545-UBC/Discussion/issues/102

trinity-shuxianfan commented 6 years ago

Thank you so much @ChadFibke @zeeva85 The old posted issue is very helpful! Also, I found another problem with showing the double subscripts like $x{ij}$. The md file generating from the Rmd will give something like $x{i*j}$ and if you delete the extra "" in the md file the math formula actually works in the right way.