Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Commit 241c990

Browse files
committed
Add MathJax test post
1 parent 304e8d7 commit 241c990

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
title: "MathJax Example"
3+
date: 2015-08-10T08:08:50-04:00
4+
---
5+
6+
[MathJax](http://www.mathjax.org/) 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 `\( ... \)`.
7+
8+
## Usage
9+
10+
To enable MathJax support be sure Kramdown is your Markdown flavor of choice and MathJax is set to true in your `_config.yml` file.
11+
12+
```yaml
13+
markdown: kramdown
14+
mathjax: true
15+
```
16+
17+
$$a^2 + b^2 = c^2$$
18+
19+
Here is an example MathJax inline rendering \\( 1/x^{2} \\), and here is a block rendering:
20+
21+
\\[ \frac{1}{n^{2}} \\]
22+
23+
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.
24+
25+
$$ \mathbf{X}\_{n,p} = \mathbf{A}\_{n,k} \mathbf{B}\_{k,p} $$

0 commit comments

Comments
 (0)