2

I am planning to start a blog using Githug Pages. I want to write the blogs using R markdown and there will be a lot of latex math in them.

I have tried so many times but failed. I have used mathjax, pandoc and this and that. Nothing has worked. I have been able to get myusername.github.io up and running but the latex math portions are not rendered. Part of the reason for my failure may have something to do with my limited understanding of how a website is generated in general.

Can someone please provide a step-by-step guide to write a blog, that has latex math, in Github Pages using R Markdown?

arjun
  • 39
  • 2
  • You might want to add a link to your GitHub-pages page. – Peter Krautzberger Aug 15 '16 at 06:06
  • You can read http://tinyheero.github.io/2015/12/06/rmd-to-jekyll-protect-eqn.html – David Jacquel Aug 15 '16 at 08:18
  • @PeterKrautzberger https://arjunpoddar.github.io//2016/01/01/Finding-k/ The reason I did not add it was because I was rebuilding the pages time and time again. I followed many solutions, but nothing worked. – arjun Aug 15 '16 at 14:09
  • @DavidJacquel I have read and tried tinyheero's instructions. For a person who is not well-versed in building websites and webpages, it did not help much. What I am a looking for is a beginner's guide. – arjun Aug 15 '16 at 14:12

1 Answers1

2

R Markdown is not supported by default by Jekyll 3. There's an open issue on the R Markdown repository.

Other static site generator like Nikola offer math support by default.

Kramdown Jekyll's default Markdownn engine supports Math blocks though.

DirtyF
  • 661
  • 7
  • 10
  • Thank you. I will definitely give Nikola a try. There are few places/blogs where people have shed some light on how to render latex in Jekyll but those are not enough for someone as illiterate as me in building websites. – arjun Aug 15 '16 at 20:09
  • Perhaps you could give [GitLab](https://about.gitlab.com) a try: you can use any Jekyll version / configuration with it. Also, any Static Site Gen, with [GitLab Pages](https://pages.gitlab.io). Just an idea though :) – Virtua Creative Aug 16 '16 at 06:34