swarm-lab / editR

A Rmarkdown editor with instant preview
GNU General Public License v3.0
350 stars 30 forks source link

Support for LaTeX #7

Closed stared closed 9 years ago

stared commented 9 years ago

Is there support for LaTeX (e.g. via MathJaX)? As of now, I see all LaTeX formula not rendered.

sjmgarnier commented 9 years ago

@stared Can you provide an example? Also, does this happens when you try to render the document, or just in the preview panel?

stared commented 9 years ago

I mean - the preview. For rendering it works fine.

screen shot 2015-05-23 at 17 25 45

sjmgarnier commented 9 years ago

@stared The problem is little more complicated than what I thought originally. I don't have much time to work on this at the moment but I'll come back to it as soon as I can.

sjmgarnier commented 9 years ago

@stared Actually it was pretty easy once I took the time to type "shiny mathjax" in Google to find this: http://shiny.rstudio.com/reference/shiny/latest/withMathJax.html.

I push the modification to the repository (70752e43bfe6517a62f45253cb7901c8533c3c3c). Preview should now render your equations.

stared commented 9 years ago

Now it works like a charm! Thank you, @sjmgarnier.

sjmgarnier commented 9 years ago

No problem @stared. I'm just happy people find editR useful :-)