Tweaking Latex rendering (for GitHub pages)

  • Context: LaTeX 
  • Thread starter Thread starter ibkev
  • Start date Start date
  • Tags Tags
    Latex
Click For Summary

Discussion Overview

The discussion revolves around the rendering of LaTeX equations on GitHub Pages using Jekyll, with a focus on differences in output compared to Physics Forums. Participants explore configuration settings and potential tweaks to improve the appearance of LaTeX, particularly regarding spacing issues with commands like \frac.

Discussion Character

  • Exploratory, Technical explanation, Debate/contested

Main Points Raised

  • One participant notes that the rendered output on GitHub Pages differs from Physics Forums, specifically mentioning spacing issues with \frac.
  • Another participant suggests that MathPad is used for LaTeX rendering on Physics Forums, while a third corrects this to MathJax.
  • A participant shares their experience with WordPress, mentioning that it adds drop-shadows to equations and requires payment for better control over rendering.
  • There is a request for information on specific tweaks made to the MathJax configuration used by Physics Forums.
  • One participant indicates that the configuration can be found by viewing the source of any Physics Forums page.
  • A participant expresses their inexperience with web technologies, indicating they are still learning.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the specific configuration settings used by Physics Forums, and there are competing views regarding the rendering tools (MathPad vs. MathJax). The discussion remains unresolved regarding the exact tweaks needed for GitHub Pages.

Contextual Notes

Limitations include the participants' varying levels of experience with LaTeX and web technologies, as well as the lack of detailed information about the specific MathJax configuration used by Physics Forums.

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   Reactions: 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 5 ·
Replies
5
Views
5K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 11 ·
Replies
11
Views
6K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 39 ·
2
Replies
39
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K