Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

LaTeX Tweaking Latex rendering (for GitHub pages)

  1. Sep 27, 2016 #1

    ibkev

    User Avatar
    Gold Member

    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.
     
  2. jcsd
  3. Sep 28, 2016 #2

    jedishrfu

    Staff: Mentor

    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.
     
  4. Sep 29, 2016 #3

    DrClaude

    User Avatar

    Staff: Mentor

    I think you mean MathJax :wink:
     
  5. Sep 29, 2016 #4

    Dr Transport

    User Avatar
    Science Advisor
    Gold Member

    Check Wordpress, they have a good implementation for LaTeX
     
  6. Oct 1, 2016 #5

    ibkev

    User Avatar
    Gold Member

    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?
     
  7. Oct 2, 2016 #6
    The config is available by viewing the source of any PF page (nearly). It's between the head tags.
     
  8. Oct 2, 2016 #7

    ibkev

    User Avatar
    Gold Member

    Doh! Thanks - as you can see I'm still learning how all this www stuff works LOL!
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted



Similar Discussions: Tweaking Latex rendering (for GitHub pages)
  1. Cover page in latex (Replies: 3)

Loading...