LaTeX Tweaking Latex rendering (for GitHub pages)

  • Thread starter Thread starter ibkev
  • Start date Start date
  • Tags Tags
    Latex
AI Thread Summary
The discussion focuses on using GitHub Pages with Jekyll for a blog that incorporates LaTeX equations, highlighting issues with spacing in rendered output, particularly with the \frac command. The user seeks configuration settings similar to those used by PhysicsForums to improve LaTeX rendering. MathJax is mentioned as a preferred rendering tool, with a note that WordPress adds unwanted drop-shadows to equations unless upgraded. Participants suggest viewing the source code of PhysicsForums pages to find the necessary configuration details. The conversation emphasizes the learning curve associated with LaTeX and web development.
ibkev
Messages
131
Reaction score
60
Hi there - I'm experimenting with using GitHub pages in combination with Jekyll to make a blog that allows me to write Latex equations. I've noticed is that the rendered output looks slightly different, spacing-wise, from latex rendering here. In particular I find that a \frac will actually touch what follows it when there needs to be a bit of space in between.

To solve I've used a \<space> after the \frac but does anyone know what config setting physicsforums use? I'd like to dig around to see what tweaking is possible on GitHub pages but I'm not sure what to look for.

It's worth mentioning that I'm a total Latex newb as well.
 
Physics news on Phys.org
Perhaps @Greg Bernhardt can answer this question.

Our site uses MathPad for latex rendering so that's another place where you can look for answers.
 
jedishrfu said:
Our site uses MathPad for latex rendering so that's another place where you can look for answers.
I think you mean MathJax :wink:
 
  • Like
Likes Greg Bernhardt
Check Wordpress, they have a good implementation for LaTeX
 
I played around with Wordpress but by default they add drop-shadows to all equations whether they're mid-paragraph or not (!) I've learned that to remove the shadows you have to pay in order to get the level of control you need. So I switched to Github Pages - which is pretty slick actually, especially since everything you write is in a git repo and therefore you can have a local copy at all times. I like it because you write in a simplified grammar called "Markdown" which is much like editing a wiki but adding MathJax equations is similar to adding equations here on PhysicsForums ... use $$ <equation> $$

Anyways, does anyone know what little tweaks to the default MathJax rendering configuration were done here at physicsforums? @Greg Bernhardt?
 
ibkev said:
Anyways, does anyone know what little tweaks to the default MathJax rendering configuration were done here at physicsforums?
The config is available by viewing the source of any PF page (nearly). It's between the head tags.
 
Greg Bernhardt said:
The config is available by viewing the source of any PF page (nearly). It's between the head tags.

Doh! Thanks - as you can see I'm still learning how all this www stuff works LOL!
 

Similar threads

Replies
6
Views
3K
Replies
3
Views
4K
Replies
3
Views
2K
Replies
8
Views
2K
Replies
11
Views
5K
Replies
2
Views
2K
Replies
3
Views
2K
Replies
39
Views
4K
Back
Top