Git Product home page Git Product logo

Comments (7)

rcalsaverini avatar rcalsaverini commented on May 23, 2024 9

Well, I managed to make it work for me by just adding the following snippet to the file _includes/head/custom.html:

<script type="text/x-mathjax-config"> MathJax.Hub.Config({ TeX: { equationNumbers: { autoNumber: "all" } } }); </script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    tex2jax: {
      inlineMath: [ ['$','$'], ["\\(","\\)"] ],
      processEscapes: true
    }
  });
</script>
<script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script>

from academicpages.github.io.

jasonyanglu avatar jasonyanglu commented on May 23, 2024 6

Hi @rcalsaverini, thanks for you quick response. I tried and found that it works only if the latex content is in the same line with $$ like:

$$z_{1-\alpha/2}\sigma\sqrt{2/n}$$

If it is writen as

$$
z_{1-\alpha/2}\sigma\sqrt{2/n}
$$

Then it does not work. However, there still a problem that the align environment does not work:

$$\begin{aligned}H_0:&\mu_0-\mu_1=0\\H_1:&\mu_0-\mu_1=\delta\end{aligned}$$

Can you help figure it out? Thanks a lot.

from academicpages.github.io.

JayanthRR avatar JayanthRR commented on May 23, 2024

@rcalsaverini Thanks for the above snippet.

from academicpages.github.io.

jasonyanglu avatar jasonyanglu commented on May 23, 2024

This snippet doesn't work for the display math which starts and ends with $$. Anyone can fix it ?

from academicpages.github.io.

rcalsaverini avatar rcalsaverini commented on May 23, 2024

Hi @jasonyanglu, the snippet above should work for display math using $$math here$$. I use this in my personal blog, so I know it works there. Can you please check if there are trailing spaces before or after your equation? Maybe this is the problem.

from academicpages.github.io.

rcalsaverini avatar rcalsaverini commented on May 23, 2024

Ok, I just tested here and my setup works even with trailing spaces. It's probably another problem. Can you check if equations do get rendered if they're enclosed in $...$, \[...\] and \(...\)?

from academicpages.github.io.

rjzupkoii avatar rjzupkoii commented on May 23, 2024

MathJax has been bumped to version 3.0 and I've added some notes to the template's guide page since markdown causes some minor issues with it.

from academicpages.github.io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.