0

In my online Github site, using Github pages, I have troubles displaying LaTeX expressions, for example:

$ Reward(x) = \frac{1}{(1 + exp(-x*A+B))}*C $

Should show this (once compiled):

enter image description here

But it does not. You can also see the problem on the page I am constructing

ailauli69
  • 522
  • 6
  • 19
  • 2
    unrelated to your problems with github, you should never set whole words in math mode, this messes up the kerning. Use the amsmath macro `\text{Reward}` instead. Also use `\exp` to get the proper upright font for it and in most disciplines, you don't want `*` for multiplications, use e.g. `\cdot` instead (or whatever you discipline and culture uses for multiplication) – samcarter_is_at_topanswers.xyz Oct 23 '22 at 16:28
  • Do you have a build step for LaTeX? I don't believe it's supported – 0xLogN Oct 23 '22 at 16:29
  • 1
    Have you already seen https://stackoverflow.com/questions/26275645/how-to-support-latex-in-github-pages ? – Bob__ Oct 23 '22 at 16:33
  • @Bob__ I used Option 3 of this post, it's working indeed. For other people, you need to add a script tag in the header (see documentation: https://docs.mathjax.org/en/latest/web/configuration.html) – ailauli69 Oct 23 '22 at 16:45

0 Answers0