barryclark / jekyll-now

Build a Jekyll blog in minutes, without touching the command line.
MIT License
8.27k stars 35.23k forks source link

Is Latex supported? #583

Open MenglaiWang opened 8 years ago

MenglaiWang commented 8 years ago

I wonder whether latex is supported.Or how can I get my bolg support latex?

act65 commented 8 years ago

Yea, you can get it working with mathjax. Steal some code from mine if you like. You just have to add some lines of code to one of the includes files and index... i forget what i did.

Although, the reason I am here is that when someone else forked my blog the mathjax stopped working. Anyone?

changkaizhao commented 8 years ago

hi @act65 , After I fork your blog. my page looks like thismy site .. mathjax does not work..

act65 commented 8 years ago

hey, yea. I think there is something wrong with my blog... Although it seems to work fine for me. As mentioned above, mathjax doesnt work when others try to fork it...

Although, the reason I am here is that when someone else forked my blog the mathjax stopped working. Anyone?

I got mine working by including this into my default page layout with {% include mathjax.html %}. Good luck...

changkaizhao commented 8 years ago

@act65 unluckily it fails. I fork your project , the mathjax.html is included in every html file in layouts. I spent several days on this issue.... unluckily no answer at all...

changkaizhao commented 8 years ago

@act65 your site is failed to show math correctly on my browser (safari and chrome on MAC)... https://act65.github.io

act65 commented 8 years ago

hmm. sorry man, I had to battle with it to get it to work as well. To be honest I dont really know I am doing either...

otherwise, try reloading my blog?!? use this link http://act65.github.io/FAT/

screen shot 2016-09-12 at 4 19 49 pm

changkaizhao commented 8 years ago

@act65 are you sure your page link is http:// not https:// ? without s the page could not be opened. with s it's ok. but math equations do not show correctly. your page shows in my browser

act65 commented 8 years ago

Hmm...

Ok, I tried another script (see here). Does this work for you? https://act65.github.io

changkaizhao commented 8 years ago

@act65 yes, I finally figure out what is wrong with it. the src = https:// is work for https:// not http:// my browser not work with http:// I don't know why.. if I use https:// the Disqus does not work.. I am totally mixed up...

changkaizhao commented 8 years ago

@act65 jekyll not redirect http:// to https:// automatically. My browser could not open http:// .. what's wrong with it?

act65 commented 8 years ago

No idea...

changkaizhao commented 8 years ago

@act65 I solved this problem ! I brought a custom domain. use my own domain I could uncheck Enforce HTTPS in settings. everything goes well. the only problem left is Disqus not show in Safari.

jinzhenfan commented 7 years ago

Just want to say thank you! I get the Latex working!