• Home
  • About
    • Ali Noorian photo

      Ali Noorian

      Hi, my name's Ali and I'm a A registered member of IEEE, A Embedded System Designer with +5 years of experience and nowadays taking experienceabout Deep learning and Data science. Capable of working independently with minimum supervision and committed to providing high quality service to every project, with focus on health, safety and environmental issues. Professional, capable, and motivated individual who consistently performs in challenging environment

    • Learn More
    • Email
    • Twitter
    • LinkedIn
    • Instagram
    • Github
  • Posts
    • All Posts
    • All Tags
  • Projects

MathJax Example

10 Aug 2015

Reading time ~1 minute

MathJax is a simple way of including Tex/LaTex/MathML based mathematics in HTML webpages. To get up and running you need to include the MathJax script in the header of your github pages page, and then write some maths. For LaTex, there are two delimiters you need to know about, one for block or displayed mathematics \[ ... \], and the other for inline mathematics \( ... \).

Usage

To enable MathJax support be sure Kramdown is your Markdown flavor of choice and MathJax is set to true in your _config.yml file.

markdown: kramdown
mathjax: true
Here is an example MathJax inline rendering \\( 1/x^{2} \\), and here is a block rendering: 
\\[ \frac{1}{n^{2}} \\]

Here is an example MathJax inline rendering \( 1/x^{2} \), and here is a block rendering: \[ \frac{1}{n^{2}} \]

The only thing to look out for is the escaping of the backslash when using markdown, so the delimiters become \\[ ... \\] and \\( ... \\) for inline and block maths respectively.



markdownmathjaxexampletestjekyll Share Tweet +1