Skip to content

Learn Numerical method

Crated date: 2022-02-22

1 Introduction

With the help of remark-math and rehype-katex, the math notation is supported.

1.1 Inline math

Some inline math, coming right up. $T_n = a + (n-1)d$

Some inline math, coming right up. \(T_n = a + (n-1)d\)

1.2 Math block

Or math block:

$$
T_n = a + (n-1)d
$$
\[
T_n = a + (n-1)d
\]

Using begin align

$$
\begin{aligned}
\nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} & = \frac{4\pi}{c}\vec{\mathbf{j}} \\[1em]   
\nabla \cdot \vec{\mathbf{E}} & = 4 \pi \rho \\[0.5em]
\nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} & = \vec{\mathbf{0}} \\[1em]
\nabla \cdot \vec{\mathbf{B}} & = 0 \end{aligned}
$$
\[
\begin{aligned}
\nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} & = \frac{4\pi}{c}\vec{\mathbf{j}} \\[1em]   
\nabla \cdot \vec{\mathbf{E}} & = 4 \pi \rho \\[0.5em]
\nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} & = \vec{\mathbf{0}} \\[1em]
\nabla \cdot \vec{\mathbf{B}} & = 0 \end{aligned}
\]

To add latex to Gatsby 4, I followed this website https://kxxt.vercel.app/blog/using-katex-with-mdx-in-gatsby/

2 References

No other pages link to this page.



Created : Feb 22, 2022