Introduction to LaTeX with  MathJax

Introduction to LaTeX with MathJax

Here are some basics to get you started with $\LaTeX$ equations in this Jekyll installation. This post assumes that you already know how to write an equation in LaTeX and how to add a post on this website using markdown syntax.

Starting a new markdown file

You will need to set the variable use_math to true in the front matter of the file (header of the markdown). In this case, the front matter looks like that:

---
layout: article
title: "Introduction to LaTeX with  MathJax"
categories: articles
tags: [howto, latex, jekyll]
use_math: true
---

Writing equations

In-line equation:

This is a test with $ A = B_x $ as an inline equation.

Result:

This is a test with $ A = B_x $ as an inline equation.


Equation without numbers:

$$
 A_1 = B_x 
$$

Result:


Equations with numbers

$$
\begin{equation}  
 A = \frac{1}{n} \sum_i^n B_i 
\end{equation}
$$

Result:

How to change the configuration of MathJax

We store the configuration of MathJax in /includes/mathjax_support.html.