Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can left-align math equations in Github markdown using MathJax by adding the following code before the equation:

```{=latex} \begin{aligned}


And then adding the following code after the equation:

```{=latex}
\end{aligned}

For example, consider the following equation:

$$f(x) = \frac{1}{x^2 + 1}$$

To left-align this equation using MathJax, you can modify the code as follows:

```{=latex} \begin{aligned} f(x) &= \frac{1}{x^2 + 1} \ &= \frac{1}{(x+i)(x-i)} \end{aligned}


This will produce the following left-aligned equation using MathJax:

\begin{aligned} f(x) &= \frac{1}{x^2 + 1} \ &= \frac{1}{(x+i)(x-i)} \end{aligned} ```